/* ==========================================================================
   Samaky — site styles
   Tokens follow the Figma file / brand book:
   Headline: Balgin Display Bold (lowercase) · Title: Poppins Bold · Body: Poppins Medium/Regular
   ========================================================================== */

@font-face { font-family: "Poppins"; src: url("../assets/fonts/poppins-400.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Poppins"; src: url("../assets/fonts/poppins-500.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Poppins"; src: url("../assets/fonts/poppins-600.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Poppins"; src: url("../assets/fonts/poppins-700.woff2") format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Balgin Display"; src: url("../assets/fonts/balgin-display-bold.woff2") format("woff2"); font-weight: 700; font-display: swap; }

:root {
  --dark: #004643;
  --green: #3e8957;
  --mint: #1bda87;
  --cream: #fcf5ed;
  --ink: #101613;
  --orange: #f16838;
  --yellow: #fefd99;
  --navy: #001b7f;
  --sky: #99c2ff;
  --grey: #737373;
  --grey-2: #6b7a72;
  --white: #ffffff;

  --font-body: "Poppins", system-ui, sans-serif;
  --font-head: "Balgin Display", "Poppins", system-ui, sans-serif;

  --container: 1200px;
  --gutter: 60px;
  --nav-h: 86px;

  /* Motion — Emil Kowalski's curves */
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);
  --ease-drawer: cubic-bezier(0.32, 0.72, 0, 1);
}

@media (max-width: 900px) {
  :root { --gutter: 24px; --nav-h: 64px; }
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; overflow-x: clip; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-weight: 500;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  overflow-x: clip;        /* clip (not a scroll container) keeps the sticky nav working */
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
p { margin: 0; }
h1, h2, h3, h4 { margin: 0; font-weight: 700; }
:focus-visible { outline: 3px solid var(--mint); outline-offset: 3px; }

.container { width: 100%; max-width: calc(var(--container) + var(--gutter) * 2); margin: 0 auto; padding: 0 var(--gutter); }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Type ---------- */
.headline {                               /* Balgin headlines — lowercase per brand */
  font-family: var(--font-head);
  font-weight: 700;
  text-transform: lowercase;
  letter-spacing: 0;
  line-height: 1.12;
  font-size: clamp(44px, 6vw, 72px);
  color: var(--dark);
}
.headline--xl { font-size: clamp(52px, 8vw, 112px); line-height: 0.9; }
.headline--lg { font-size: clamp(48px, 7vw, 94px); line-height: 0.9; }
.title { font-family: var(--font-body); font-weight: 700; font-size: clamp(36px, 5vw, 72px); line-height: 1.12; color: var(--dark); }
.lede { font-size: 18px; line-height: 24px; font-weight: 500; color: #1b1818; max-width: 340px; }
.eyebrow { font-size: 12px; line-height: 14px; font-weight: 700; color: var(--mint); }

.section-head { display: flex; flex-wrap: wrap; gap: 24px 60px; align-items: flex-start; }
.section-head > :first-child { flex: 1 1 520px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  height: 44px; padding: 0 18px;
  font-size: 16px; font-weight: 500; line-height: 20px; white-space: nowrap;
  border: 1px solid var(--green);
  transition: transform 160ms var(--ease-out), box-shadow 200ms var(--ease-out), background-color 200ms ease, color 200ms ease;
}
.btn--primary { background: var(--green); color: #fdf0f1; }
.btn--outline { color: var(--green); background: var(--white); }
.btn--mint { background: var(--mint); border-color: var(--mint); color: var(--dark); }
.btn--cream { background: var(--cream); border: 2px solid var(--cream); color: var(--dark); font-weight: 600; height: auto; padding: 18px 30px; }
.btn--ghost-light { border: 2px solid var(--white); color: var(--white); font-weight: 600; height: auto; padding: 18px 30px; }
.btn .arrow { width: 24px; height: 24px; transition: transform 200ms var(--ease-out); }
.btn:active { transform: scale(0.97); }
@media (hover: hover) and (pointer: fine) {
  .btn:hover { transform: translateY(-2px); box-shadow: 0 8px 18px -8px rgba(0, 70, 67, 0.45); }
  .btn:hover .arrow, .btn:hover .arrow-txt { transform: translateX(3px); }
  .btn--outline:hover { background: var(--green); color: #fdf0f1; }
}
.arrow-txt { display: inline-block; transition: transform 200ms var(--ease-out); }

/* ---------- Navigation ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  height: var(--nav-h);
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: saturate(1.4) blur(10px);
  -webkit-backdrop-filter: saturate(1.4) blur(10px);
  transition: box-shadow 250ms ease;
  view-transition-name: site-nav;
}
.nav.is-scrolled { box-shadow: 0 1px 0 rgba(16, 22, 19, 0.08), 0 8px 24px -16px rgba(16, 22, 19, 0.25); }
.nav__inner { height: 100%; display: flex; align-items: center; gap: 40px; max-width: 1520px; margin: 0 auto; padding: 0 var(--gutter); }
.nav__logo { display: flex; align-items: center; gap: 11px; flex-shrink: 0; }
.nav__logo .mark { width: 30px; height: 30px; transition: transform 400ms var(--ease-out); }
.nav__logo .word { width: 104px; height: 22px; }
@media (hover: hover) and (pointer: fine) { .nav__logo:hover .mark { transform: rotate(90deg); } }
.nav__links { display: flex; gap: 30px; }
.nav__link { position: relative; padding: 4px 0 10px; font-size: 14px; line-height: 16px; font-weight: 500; color: var(--dark); transition: color 200ms ease; }
.nav__link::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 2px; height: 2px; background: var(--green);
  transform: scaleX(0); transform-origin: left; transition: transform 250ms var(--ease-out);
}
.nav__link[aria-current="page"] { font-weight: 700; }
.nav__link[aria-current="page"]::after { transform: scaleX(1); }
@media (hover: hover) and (pointer: fine) {
  .nav__link:hover { color: var(--green); }
  .nav__link:hover::after { transform: scaleX(1); }
}
.nav__actions { margin-left: auto; display: flex; gap: 10px; }
.nav__burger { display: none; margin-left: auto; width: 44px; height: 38px; position: relative; }
.nav__burger span { position: absolute; left: 9px; width: 26px; height: 2px; background: var(--dark); transition: transform 300ms var(--ease-out), opacity 200ms ease; }
.nav__burger span:nth-child(1) { top: 11px; }
.nav__burger span:nth-child(2) { top: 18px; }
.nav__burger span:nth-child(3) { top: 25px; }
.nav.is-open .nav__burger span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav.is-open .nav__burger span:nth-child(2) { opacity: 0; }
.nav.is-open .nav__burger span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.menu {
  position: fixed; inset: var(--nav-h) 0 auto 0; z-index: 49;
  background: var(--white);
  padding: 24px var(--gutter) 32px;
  box-shadow: 0 24px 40px -24px rgba(16, 22, 19, 0.35);
  transform: translateY(-12px); opacity: 0; visibility: hidden;
  transition: transform 350ms var(--ease-drawer), opacity 250ms ease, visibility 0s linear 350ms;
}
.nav.is-open + .menu { transform: none; opacity: 1; visibility: visible; transition: transform 350ms var(--ease-drawer), opacity 250ms ease, visibility 0s; }
.menu__link {
  display: flex; justify-content: space-between; align-items: center;
  padding: 18px 0; border-bottom: 1px solid rgba(0, 70, 67, 0.15);
  font-size: 30px; font-weight: 700; color: var(--dark);
  opacity: 0; transform: translateY(12px);
  transition: opacity 300ms ease, transform 400ms var(--ease-out);
}
.menu__link span { color: var(--green); font-weight: 500; font-size: 24px; }
.menu__actions { display: grid; gap: 12px; margin-top: 28px; opacity: 0; transition: opacity 300ms ease; }
.menu__actions .btn { justify-content: center; }
.nav.is-open + .menu .menu__link { opacity: 1; transform: none; }
.nav.is-open + .menu .menu__link:nth-child(1) { transition-delay: 60ms; }
.nav.is-open + .menu .menu__link:nth-child(2) { transition-delay: 110ms; }
.nav.is-open + .menu .menu__link:nth-child(3) { transition-delay: 160ms; }
.nav.is-open + .menu .menu__link:nth-child(4) { transition-delay: 210ms; }
.nav.is-open + .menu .menu__actions { opacity: 1; transition-delay: 260ms; }

@media (max-width: 1100px) {
  .nav__links, .nav__actions { display: none; }
  .nav__burger { display: block; }
}
@media (min-width: 1101px) { .menu { display: none; } }

/* ---------- Marquee ---------- */
.marquee { overflow: hidden; border-block: 3px solid var(--ink); background: var(--green); color: #fcf5ed; }
.marquee--orange { background: var(--orange); border-top: 0; }
.marquee__track { display: flex; width: max-content; animation: marquee 40s linear infinite; }
.marquee--reverse .marquee__track { animation-direction: reverse; }
.marquee__group { display: flex; align-items: center; gap: 34px; padding: 13px 34px 13px 0; }
.marquee__group span { font-weight: 700; font-size: 24px; line-height: 38px; white-space: nowrap; }
.marquee__group img { width: 22px; height: 22px; }
@media (hover: hover) and (pointer: fine) { .marquee:hover .marquee__track { animation-play-state: paused; } }
@keyframes marquee { to { transform: translateX(-50%); } }
@media (max-width: 900px) { .marquee__group span { font-size: 18px; line-height: 30px; } .marquee__group { gap: 22px; padding-right: 22px; } }

/* ---------- Footer ---------- */
.footer { background: var(--dark); color: #fcfcfc; padding: 80px 0 34px; }
.footer__grid { display: grid; grid-template-columns: 350px repeat(3, 1fr); gap: 50px; }
.footer__brand .mark { width: 46px; height: 46px; }
.footer__brand .word { width: 150px; margin-top: 14px; }
.footer__brand .tag { width: 132px; margin-top: 12px; }
.footer__col h5 { margin: 6px 0 12px; font-size: 11px; line-height: 17.6px; font-weight: 700; color: var(--mint); }
.footer__col a { display: block; padding: 5px 0; font-size: 16px; line-height: 20px; font-weight: 400; color: #fcfcfc; opacity: 0.92; transition: color 200ms ease, transform 200ms var(--ease-out); }
@media (hover: hover) and (pointer: fine) { .footer__col a:hover { color: var(--mint); transform: translateX(4px); } }
.footer__bottom { display: flex; justify-content: space-between; gap: 20px; margin-top: 64px; padding-top: 25px; border-top: 1px solid rgba(252, 245, 237, 0.2); font-size: 14px; line-height: 16px; font-weight: 400; }
.footer__bottom nav { display: flex; gap: 20px; }
.footer__bottom a:hover { color: var(--mint); }
@media (max-width: 900px) {
  .footer__grid { grid-template-columns: 1fr; gap: 36px; }
  .footer__bottom { flex-direction: column; }
}

/* ---------- Reveal-on-scroll (progressive: only hides when JS is running) ---------- */
.js [data-reveal] { opacity: 0; transform: translateY(24px); transition: opacity 700ms var(--ease-out), transform 800ms var(--ease-out); transition-delay: var(--d, 0ms); }
.js [data-reveal].is-in { opacity: 1; transform: none; }
.js [data-reveal="fade"] { transform: none; }
.js [data-reveal="scale"] { transform: scale(0.96); }
.js [data-reveal="left"] { transform: translateX(-24px); }

/* ---------- Page entrance (hero) ---------- */
.js [data-enter] { opacity: 0; transform: translateY(28px); }
.js.is-loaded [data-enter] { opacity: 1; transform: none; transition: opacity 700ms var(--ease-out), transform 900ms var(--ease-out); transition-delay: var(--d, 0ms); }

/* ==========================================================================
   HOME
   ========================================================================== */
.hero { position: relative; background: var(--white); overflow: hidden; }
.hero__inner { position: relative; max-width: 1320px; margin: 0 auto; padding: 64px var(--gutter) 90px; display: grid; grid-template-columns: 1fr 380px; gap: 40px 60px; align-items: start; }
.hero__eyebrow { grid-column: 1 / -1; display: flex; align-items: center; gap: 14px; font-size: 14px; font-weight: 700; color: var(--green); margin-left: 120px; }
.hero__eyebrow .dot { width: 9px; height: 9px; border-radius: 50%; background: var(--mint); }
.colorbar { display: flex; width: 170px; height: 6px; }
.colorbar i { flex: 1; }
.colorbar i:nth-child(1) { background: var(--orange); }
.colorbar i:nth-child(2) { background: var(--yellow); }
.colorbar i:nth-child(3) { background: var(--navy); }
.colorbar i:nth-child(4) { background: var(--sky); }
.hero__title { margin-left: 120px; font-size: clamp(40px, 5.2vw, 72px); line-height: 1.25; font-weight: 700; color: var(--dark); }
.hero__title .line { display: flex; align-items: center; gap: 26px; }
.hero__title .accent { color: var(--green); }
.pill-img { flex: 0 0 auto; width: 250px; height: 74px; padding: 3px; border: 3px solid var(--ink); overflow: hidden; rotate: -1.6deg; background: var(--white); transition: transform 400ms var(--ease-out), rotate 400ms var(--ease-out); }
.pill-img--green { width: 212px; height: 70px; border-color: var(--green); rotate: 2deg; }
.pill-img img { width: 100%; height: 100%; object-fit: cover; }
@media (hover: hover) and (pointer: fine) { .pill-img:hover { rotate: 0deg; transform: scale(1.04); } }
.hero__photo { width: 378px; height: 500px; border: 3px solid var(--green); rotate: 3deg; overflow: hidden; margin-top: -20px; }
.hero__photo img { width: 100%; height: 100%; object-fit: cover; }
.search {
  grid-column: 1 / -1; justify-self: center; width: min(960px, 100%); margin-top: 40px;
  background: var(--white); border: 3px solid var(--ink); box-shadow: 12px 12px 0 var(--green);
  padding: 43px;
}
.search label { display: block; font-size: 32px; line-height: 1.2; font-weight: 700; color: var(--green); margin-bottom: 29px; }
.search__field { display: flex; border: 2px solid var(--ink); padding: 2px; transition: box-shadow 200ms ease; }
.search__field:focus-within { box-shadow: 0 0 0 4px rgba(27, 218, 135, 0.35); }
.search__field input { flex: 1; min-width: 0; height: 72px; border: 0; padding: 0 15px; font: 400 20px/20px var(--font-body); color: var(--ink); outline: none; background: transparent; }
.search__field input::placeholder { color: var(--grey); }
.search__field button { width: 140px; background: var(--green); color: #fdf0f1; font-size: 20px; font-weight: 500; transition: background-color 200ms ease; }
.search__field button:hover { background: var(--dark); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 30px; }
.chip { height: 30px; padding: 0 12px; border: 1px solid var(--green); color: var(--green); font-size: 14px; font-weight: 500; transition: background-color 180ms ease, color 180ms ease, transform 160ms var(--ease-out); }
.chip:active { transform: scale(0.96); }
.chip[aria-pressed="true"] { background: var(--green); color: #fdf0f1; }
@media (hover: hover) and (pointer: fine) { .chip:hover { background: rgba(62, 137, 87, 0.1); } .chip[aria-pressed="true"]:hover { background: var(--dark); } }

@media (max-width: 1100px) {
  .hero__inner { grid-template-columns: 1fr; padding-top: 40px; }
  .hero__eyebrow, .hero__title { margin-left: 0; }
  .hero__photo { display: none; }
}
@media (max-width: 700px) {
  .hero__title .line { gap: 12px; }
  .pill-img { width: 120px; height: 44px; padding: 2px; border-width: 2px; }
  .pill-img--green { width: 104px; height: 40px; }
  .search { padding: 22px 18px; box-shadow: 8px 8px 0 var(--green); margin-top: 8px; }
  .search label { font-size: 20px; margin-bottom: 14px; }
  .search__field { flex-direction: column; }
  .search__field input { height: 52px; font-size: 16px; }
  .search__field button { width: 100%; height: 48px; font-size: 16px; }
  .chips { margin-top: 16px; }
}

/* Collage */
.cool { padding: 120px 0 160px; background: var(--white); overflow: hidden; overflow: clip; }
.collage { position: relative; margin-top: 56px; aspect-ratio: 1200 / 1238; }
.collage > * { position: absolute; }
/* Scroll-driven "shuffle → straighten": JS sets --sx/--sy/--sr; hover lift uses the separate `translate` property */
.frame { border: 3px solid var(--ink); overflow: hidden; background: var(--ink); transform: translate(var(--sx, 0px), var(--sy, 0px)) rotate(var(--sr, 0deg)); will-change: transform; transition: translate 400ms var(--ease-out), box-shadow 400ms var(--ease-out); }
.frame img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform 900ms var(--ease-out); }
@media (hover: hover) and (pointer: fine) {
  .frame:hover { translate: -4px -4px; box-shadow: 8px 8px 0 var(--dark); z-index: 3; }
  .frame:hover img { transform: scale(1.05); }
}
.collage .c1 { left: 0; top: 0; width: 32.4%; height: 26.7%; }
.collage .c2 { left: 33.8%; top: 4.5%; width: 32.4%; height: 20.2%; }
.collage .c3 { left: 67.6%; top: 0; width: 32.4%; height: 26.7%; }
.collage .t1 { left: 0; top: 28.8%; width: 41%; font-size: clamp(32px, 5vw, 60px); line-height: 0.9; color: var(--green); font-weight: 700; }
.collage .c4 { left: 42.2%; top: 27.9%; width: 24%; height: 24.2%; }
.collage .c5 { left: 67.6%; top: 26.8%; width: 32.4%; height: 18.6%; }
.collage .c6 { left: 0; top: 53.5%; width: 24%; height: 22.6%; }
.collage .t2 { left: 26.7%; top: 53.5%; width: 39.6%; font-size: clamp(28px, 4.3vw, 52px); line-height: 0.9; color: var(--orange); font-weight: 700; }
.collage .c7 { left: 67.6%; top: 53.5%; width: 32.4%; height: 24.2%; }
.collage .t3 { left: 0; top: 79%; width: 49.3%; font-size: clamp(24px, 4vw, 48px); line-height: 0.9; color: var(--dark); font-weight: 700; }
.collage .c8 { left: 50.7%; top: 79%; width: 49.3%; height: 21%; }
.float { width: 8%; aspect-ratio: 1; pointer-events: none; z-index: 2; animation: float 3.2s ease-in-out infinite alternate; }
.float.f1 { left: 28.25%; top: 6.1%; animation-duration: 3.2s; }
.float.f2 { left: 70.9%; top: 37.3%; width: 6.2%; animation-duration: 4.1s; animation-delay: -1s; }
.float.f3 { left: 47.2%; top: 83.6%; width: 7.5%; animation-duration: 3.6s; animation-delay: -2s; }
@keyframes float { from { transform: translateY(0) rotate(0deg); } to { transform: translateY(-14px) rotate(8deg); } }

@media (max-width: 800px) {
  .cool { padding: 72px 0 96px; }
  .collage { aspect-ratio: auto; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
  .collage > * { position: relative; left: auto !important; top: auto !important; width: auto !important; height: auto !important; }
  .collage .frame { aspect-ratio: 4 / 3; }
  .collage .c3, .collage .c6, .collage .c7 { grid-column: 1 / -1; aspect-ratio: 16 / 10; }
  .collage .t1, .collage .t2, .collage .t3 { grid-column: 1 / -1; padding: 14px 0 6px; }
  .collage .c8 { grid-column: 1 / -1; aspect-ratio: 16 / 9; }
  .float { position: absolute !important; width: 54px !important; }
  .float.f1 { left: 40% !important; top: 4% !important; }
  .float.f2 { left: 82% !important; top: 36% !important; }
  .float.f3 { left: 6% !important; top: 86% !important; }
}

/* ==========================================================================
   WHO WE SERVE — bridge selector
   ========================================================================== */
.bridge-sec { position: relative; padding: 130px 0; background: var(--white) url("../assets/img/pattern-flowers.webp") center top / 340px auto repeat; }
.bridge { margin-top: 70px; }
.bridge__pill { display: flex; align-items: center; justify-content: center; gap: 14px; width: 309px; margin: 0 auto; padding: 18px 33px; background: var(--dark); border: 3px solid var(--ink); color: var(--cream); }
.bridge__pill img { width: 30px; height: 30px; }
.bridge__pill b { font-size: 23px; line-height: 1.6; }
.bridge__pill small { font-size: 12px; opacity: 0.7; font-weight: 400; }
.bridge__lines { display: block; width: 100%; height: 150px; transform: scaleY(-1); }
.bridge__lines path { stroke: var(--ink); stroke-width: 3; fill: none; transition: stroke 300ms ease, stroke-width 300ms var(--ease-out); }
.bridge[data-active="0"] .bridge__lines .l0,
.bridge[data-active="1"] .bridge__lines .l1,
.bridge[data-active="2"] .bridge__lines .l2 { stroke: var(--green); stroke-width: 6; }
.bridge__cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.aud {
  display: flex; flex-direction: column; align-items: flex-start; justify-content: flex-start;
  text-align: left; min-height: 213px; padding: 35px 27px 29px;
  background: var(--white); border: 3px solid var(--ink);
  transition: background-color 300ms ease, box-shadow 350ms var(--ease-out), transform 350ms var(--ease-out);
}
.aud .star { display: block; flex-shrink: 0; width: 30px; height: 30px; margin: 5px; background: #cfd6d1; -webkit-mask: url("../assets/img/star.svg") center / contain no-repeat; mask: url("../assets/img/star.svg") center / contain no-repeat; transition: background-color 300ms ease, transform 500ms var(--ease-out); }
.aud h3 { margin-top: 16px; font-size: 27px; line-height: 43px; color: var(--dark); transition: color 300ms ease; }
.aud p { margin-top: 5px; font-size: 13.5px; line-height: 21.6px; font-weight: 400; color: var(--grey-2); transition: color 300ms ease; }
.aud[aria-selected="true"] .star { background: var(--green); transform: rotate(45deg); }
/* Hover (desktop) and the tapped card (touch) share the "active" look: green, white type, orange shadow */
.aud:focus-visible { background: var(--green); box-shadow: 10px 10px 0 var(--orange); transform: translate(-3px, -3px); }
.aud:focus-visible .star { background: var(--mint); }
.aud:focus-visible h3, .aud:focus-visible p { color: var(--white); }
@media (hover: none) {
  .aud[aria-selected="true"] { background: var(--green); box-shadow: 6px 6px 0 var(--orange); transform: translate(-2px, -2px); }
  .aud[aria-selected="true"] .star { background: var(--mint); }
  .aud[aria-selected="true"] h3, .aud[aria-selected="true"] p { color: var(--white); }
}
@media (hover: hover) and (pointer: fine) {
  .aud:hover { background: var(--green); box-shadow: 10px 10px 0 var(--orange); transform: translate(-3px, -3px); }
  .aud:hover .star { background: var(--mint); }
  .aud:hover h3, .aud:hover p { color: var(--white); }
}
.aud:active { transform: scale(0.98); }
.bridge__list { margin-top: 56px; border-top: 3px solid var(--ink); display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.benefit { padding-top: 28px; border-bottom: 1px solid rgba(16, 22, 19, 0.16); padding-bottom: 16px; }
.benefit .num { font-size: 44px; line-height: 70px; font-weight: 700; color: var(--orange); }
.benefit h4 { margin-top: 12px; font-size: 36px; line-height: 44px; color: var(--dark); }
.benefit p { margin-top: 10px; font-size: 18px; line-height: 22px; font-weight: 400; color: var(--grey); }
.bridge__list.is-swapping .benefit { opacity: 0; transform: translateY(10px); }
.benefit { transition: opacity 220ms ease, transform 300ms var(--ease-out); }
.bridge__list .benefit:nth-child(2) { transition-delay: 40ms; }
.bridge__list .benefit:nth-child(3) { transition-delay: 80ms; }

@media (max-width: 900px) {
  .bridge-sec { padding: 72px 0; }
  .bridge__lines { height: 90px; }
  .bridge__cards { gap: 8px; }
  .aud { min-height: 0; padding: 14px 10px; text-align: center; align-items: center; }
  .aud .star { width: 16px; height: 16px; margin: 0 auto; }
  .aud h3 { margin-top: 6px; font-size: 14px; line-height: 18px; }
  .aud p { display: none; }
  .bridge__list { grid-template-columns: 1fr; gap: 0; }
  .benefit { display: grid; grid-template-columns: 52px 1fr; gap: 0 12px; }
  .benefit .num { font-size: 28px; line-height: 40px; grid-row: span 3; }
  .benefit h4 { margin-top: 4px; font-size: 24px; line-height: 30px; }
  .benefit p { font-size: 15px; }
}

/* ==========================================================================
   WHY SAMAKY — profile card
   ========================================================================== */
.profile-sec { padding: 130px 0; background: var(--white); }
.profile-wrap { position: relative; margin-top: 74px; display: flex; justify-content: flex-end; }
.profile {
  width: min(880px, 100%); background: var(--white); border: 3px solid var(--ink); border-radius: 12px; padding: 3px;
  box-shadow: 16px 16px 0 var(--green);
  transition: transform 500ms var(--ease-out), box-shadow 500ms var(--ease-out);
}
@media (hover: hover) and (pointer: fine) { .profile:hover { transform: translate(-4px, -4px) rotate(-0.4deg); box-shadow: 22px 22px 0 var(--green); } }
.profile__head { display: flex; align-items: center; gap: 18px; padding: 24px 28px 27px; border-bottom: 3px solid var(--ink); }
.profile__avatar { width: 70px; height: 70px; border: 3px solid var(--green); background: var(--cream); padding: 4px; }
.profile__avatar img { width: 100%; height: 100%; object-fit: contain; }
.profile__name { flex: 1; }
.profile__name b { display: block; font-size: 30px; line-height: 38px; color: var(--dark); }
.profile__name span { font-size: 14px; line-height: 16px; font-weight: 400; color: #5c6a62; }
.verified { display: inline-flex; align-items: center; gap: 7px; padding: 8px 13px; background: rgba(62, 137, 87, 0.12); color: var(--green); font-size: 12px; font-weight: 700; }
.verified img { width: 15px; height: 15px; }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); border-bottom: 3px solid var(--ink); }
.stat { padding: 26px 28px; border-right: 2px solid rgba(16, 22, 19, 0.13); }
.stat:last-child { border-right: 0; background: rgba(27, 218, 135, 0.13); }
.stat b { display: block; font-size: 48px; line-height: 60px; font-weight: 500; color: var(--dark); }
.stat span { font-size: 12px; line-height: 14px; font-weight: 700; color: var(--grey); }
.growth { padding: 30px 28px 33px; border-bottom: 3px solid var(--ink); }
.growth > p { font-size: 12px; font-weight: 600; color: var(--grey-2); }
.stages { display: flex; align-items: center; padding-top: 20px; }
.stage { width: 76px; flex: 0 0 76px; display: flex; flex-direction: column; align-items: center; gap: 9px; font-size: 12px; font-weight: 600; color: var(--dark); }
.stage img { width: 38px; height: 38px; }
.stage--seed img { width: 29px; height: 29px; margin: 4.5px; }
.stage--current { color: var(--orange); }
.stage--todo { color: #a9b3ad; }
.track { flex: 1; height: 3px; background: #e2e6e2; position: relative; overflow: hidden; margin-bottom: 23px; }
.track i { position: absolute; inset: 0; background: var(--green); transform-origin: left; transform: scaleX(var(--p, 1)); }
.js .profile:not(.is-in) .track i { transform: scaleX(0); }
.track i { transition: transform 900ms var(--ease-out); }
.track:nth-of-type(2) i { transition-delay: 150ms; }
.track:nth-of-type(3) i { transition-delay: 300ms; }
.track:nth-of-type(4) i { transition-delay: 450ms; }
.log { padding: 6px 16px 18px; }
.log li { display: flex; align-items: center; gap: 11px; padding: 12px 0 13px; border-bottom: 1px solid rgba(16, 22, 19, 0.1); }
.log ul { list-style: none; margin: 0; padding: 0; }
.log img { width: 18px; height: 18px; }
.log .what { flex: 1; }
.log .what b { display: block; font-size: 14px; line-height: 16px; font-weight: 600; color: var(--ink); }
.log .what span { font-size: 12px; line-height: 14px; font-weight: 400; color: #77857d; }
.log .hrs { font-size: 24px; line-height: 32px; font-weight: 400; color: var(--dark); }
.notes { position: absolute; left: 0; top: 0; height: 100%; width: 196px; }
.note { position: absolute; left: 0; width: 196px; padding: 10px 15px; border: 2px solid var(--ink); font-size: 12.5px; line-height: 16.9px; font-weight: 600; color: var(--dark); }
.note::after { content: ""; position: absolute; left: 100%; top: 50%; width: 44px; height: 2px; background: var(--ink); }
.note--y { top: 108px; background: var(--yellow); }
.note--b { top: 298px; background: var(--sky); }
.note--g { top: 662px; background: var(--mint); }
.service-row { display: flex; justify-content: space-between; align-items: flex-start; gap: 40px; padding-top: 96px; }
.service-row .big { max-width: 600px; font-size: clamp(36px, 4.5vw, 60px); line-height: 1.2; color: var(--dark); font-weight: 700; }
.tagline-stack { padding-top: 12px; display: grid; gap: 4px; font-size: clamp(26px, 2.6vw, 36px); line-height: 1.22; font-weight: 700; }
.tagline-stack span:nth-child(1) { color: var(--green); }
.tagline-stack span:nth-child(2) { color: var(--orange); }
.tagline-stack span:nth-child(3) { color: var(--dark); }
@media (max-width: 1100px) {
  .notes { display: none; }
  .profile-wrap { justify-content: center; }
}
@media (max-width: 700px) {
  .profile-sec { padding: 72px 0; }
  .profile-wrap { margin-top: 40px; }
  .profile { box-shadow: 8px 8px 0 var(--green); }
  .profile__head { padding: 16px; gap: 12px; flex-wrap: wrap; }
  .profile__avatar { width: 52px; height: 52px; }
  .profile__name b { font-size: 22px; line-height: 28px; }
  .stats { grid-template-columns: 1fr 1fr; }
  .stat { padding: 16px; border-bottom: 2px solid rgba(16, 22, 19, 0.13); }
  .stat:nth-child(2) { border-right: 0; }
  .stat b { font-size: 34px; line-height: 44px; }
  .growth { padding: 18px 12px; }
  .stage { width: 50px; flex-basis: 50px; font-size: 10px; }
  .stage img { width: 28px; height: 28px; }
  .stage--seed img { width: 22px; height: 22px; margin: 3px; }
  .log .hrs { font-size: 18px; }
  .service-row { flex-direction: column; padding-top: 56px; gap: 20px; }
}

/* I got you */
.igot { padding: 130px 0; background: var(--cream); }
.igot__grid { display: grid; grid-template-columns: 320px 1fr; gap: 70px; align-items: center; padding: 52px 56px; }
.igot__maky { width: 100%; transform-origin: 50% 100%; transition: transform 600ms var(--ease-out); }
@media (hover: hover) and (pointer: fine) { .igot__maky:hover { transform: rotate(-4deg) translateY(-6px); } }
.bubble { position: relative; display: inline-block; margin: 8px 0 30px 10px; padding: 12px; background: var(--green); color: var(--white); font-size: 24px; line-height: 32px; font-weight: 700; }
.bubble::after { content: ""; position: absolute; left: 16px; top: 100%; border: 11px solid transparent; border-top-color: var(--green); border-bottom: 0; }
.igot h2 { font-size: clamp(40px, 5vw, 72px); line-height: 1.12; color: var(--dark); }
.igot p { max-width: 520px; padding: 24px 0 26px; font-size: 18px; line-height: 24px; color: var(--grey); }
@media (max-width: 800px) {
  .igot { padding: 64px 0; }
  .igot__grid { grid-template-columns: 1fr; gap: 24px; padding: 0; }
  .igot__maky { max-width: 220px; margin: 0 auto; }
}

/* Ready to catalyze */
.ready { position: relative; overflow: hidden; padding: 122px 0; background: var(--green); color: var(--white); }
.ready .headline { color: var(--white); }
.ready__ctas { display: flex; flex-wrap: wrap; gap: 14px; padding-top: 34px; }
.ready__note { margin-top: 52px; max-width: 470px; }
.ready__note p { font-size: 12.5px; font-weight: 700; opacity: 0.82; }
.notify { display: flex; margin-top: 13px; height: 58px; padding: 2px; border: 2px solid var(--white); }
.notify input { flex: 1; min-width: 0; border: 0; padding: 0 15px; background: rgba(255, 255, 255, 0.12); color: var(--white); font: 400 15px var(--font-body); outline: none; }
.notify input::placeholder { color: rgba(255, 255, 255, 0.6); }
.notify button { padding: 0 22px; background: var(--white); color: var(--green); font-size: 14px; font-weight: 700; transition: background-color 200ms ease, color 200ms ease; }
.notify button:hover { background: var(--mint); color: var(--dark); }
.notify-msg { margin-top: 10px; font-size: 14px; min-height: 20px; }
.ready__deco { position: absolute; right: -420px; top: 140px; width: 1000px; opacity: 0.09; pointer-events: none; animation: spin 120s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
@media (max-width: 800px) { .ready { padding: 72px 0; } .ready__deco { width: 520px; right: -50%; top: auto; bottom: -120px; } }

/* ==========================================================================
   WHAT WE DO
   ========================================================================== */
.friction { padding: 100px 0; background: var(--dark); color: #fcfcfc; }
.friction .headline, .friction .lede { color: #fcfcfc; }
.civic { margin: 87px auto; width: min(388px, 100%); background: var(--cream); padding: 25px; box-shadow: 0 42px 49px rgba(0, 0, 0, 0.42); color: var(--ink); transition: transform 600ms var(--ease-out); }
@media (hover: hover) and (pointer: fine) { .civic:hover { transform: translateY(-6px) rotate(-1deg); } }
.civic__head { display: flex; gap: 17px; align-items: center; padding-bottom: 22px; }
.civic__head img { width: 53px; height: 53px; }
.civic__head b { display: block; font-size: 21px; line-height: 34px; }
.civic__head span { font-size: 16.8px; font-weight: 400; opacity: 0.6; }
.civic li { display: flex; align-items: center; gap: 12.6px; height: 56px; border-top: 1.4px solid rgba(16, 22, 19, 0.12); font-size: 18px; font-weight: 400; }
.civic ul { list-style: none; margin: 0; padding: 0; }
.civic li img { width: 22.5px; height: 22.5px; }
.pillars { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 2px solid rgba(252, 245, 237, 0.3); }
.pillar { padding: 32px 32px 32px 30px; border-right: 2px solid rgba(252, 245, 237, 0.3); }
.pillar:last-child { border-right: 0; }
.pillar h4 { font-size: 36px; line-height: 44px; color: var(--mint); }
.pillar p { padding-top: 10px; max-width: 270px; font-size: 16px; line-height: 20px; font-weight: 400; color: rgba(252, 245, 237, 0.76); }
@media (max-width: 800px) {
  .friction { padding: 64px 0; }
  .civic { margin: 48px auto; }
  .pillars { grid-template-columns: 1fr; }
  .pillar { border-right: 0; border-bottom: 2px solid rgba(252, 245, 237, 0.3); padding: 24px 0; }
  .pillar h4 { font-size: 28px; line-height: 36px; }
}

.programs { padding: 130px 0 120px; background: var(--mint); }
.programs .title { color: var(--dark); }
.cards { margin-top: 74px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; align-items: stretch; }
.program {
  position: relative; display: flex; flex-direction: column; min-height: 625px; overflow: hidden;
  border: 3px solid var(--ink); box-shadow: 10px 10px 0 var(--dark);
  transition: transform 450ms var(--ease-out), box-shadow 450ms var(--ease-out);
}
@media (hover: hover) and (pointer: fine) {
  .program:hover { transform: translate(-6px, -6px); box-shadow: 16px 16px 0 var(--dark); }
  .program:hover .program__img img { transform: scale(1.06); }
  .program:hover .program__cta .arrow-txt { transform: translateX(4px); }
}
.program__bg { position: absolute; inset: 0; width: 100%; height: auto; pointer-events: none; }
.program__body { position: relative; display: flex; flex-direction: column; flex: 1; padding: 28px 26px 0; }
.program__kicker { font-size: 11px; font-weight: 700; opacity: 0.72; }
.program__logo { height: 52px; width: auto; margin-top: 14px; align-self: flex-start; }
.program__body > p { padding-top: 18px; max-width: 290px; font-size: 14.5px; line-height: 21.75px; font-weight: 400; }
.program__meta { padding-top: 18px; display: grid; gap: 5px; }
.program__meta b { font-size: 16px; }
.program__meta span { font-size: 13.5px; font-weight: 400; }
.tags { display: flex; flex-wrap: wrap; gap: 7px; padding-top: 18px; }
.tags span { padding: 6px 11px; border: 1.5px solid rgba(153, 194, 255, 0.5); font-size: 12px; font-weight: 600; }
.program__img { margin: 22px -26px 0; flex: 1; min-height: 170px; border-top: 3px solid var(--ink); overflow: hidden; }
.program__img img { width: 100%; height: 100%; object-fit: cover; transition: transform 900ms var(--ease-out); }
.program__cta { position: relative; display: flex; align-items: center; gap: 11px; padding: 24px 26px 26px; font-size: 13px; font-weight: 700; }
.program__cta .colorbar { width: 82px; }
.program--studios { background: var(--orange); color: var(--white); }
.program--day { background: var(--cream); color: var(--dark); }
.program--clubs { background: var(--navy); color: var(--sky); }
@media (max-width: 1000px) { .cards { grid-template-columns: 1fr; max-width: 460px; margin-inline: auto; } .program { min-height: 0; } }
@media (max-width: 800px) { .programs { padding: 72px 0; } .cards { margin-top: 40px; gap: 32px; } }

/* ==========================================================================
   ABOUT US
   ========================================================================== */
.identity { padding: 150px 0; background: var(--dark); color: #fcfcfc; }
.identity .headline { color: var(--cream); max-width: 1000px; }
.facts { margin-top: 90px; padding-top: 58px; border-top: 2px solid rgba(252, 245, 237, 0.28); display: grid; grid-template-columns: 1fr 1fr; gap: 80px 90px; }
.fact p { padding-top: 16px; font-size: 24px; line-height: 32px; font-weight: 700; }
@media (max-width: 800px) { .identity { padding: 72px 0; } .facts { grid-template-columns: 1fr; gap: 36px; margin-top: 48px; padding-top: 36px; } .fact p { font-size: 20px; line-height: 28px; } }

.values { padding: 60px 0 150px; background: var(--cream); }
.values ol { list-style: none; margin: 96px 0 0; padding: 0; border-top: 2px solid rgba(0, 70, 67, 0.25); }
.value { display: grid; grid-template-columns: 60px 1fr 330px; align-items: center; min-height: 114px; border-bottom: 1px solid rgba(0, 70, 67, 0.25); color: var(--dark); cursor: default; }
.value .n { font-size: 12px; font-weight: 700; opacity: 0.55; transition: color 220ms ease, opacity 220ms ease; }
.value h3 { font-size: 48px; line-height: 60px; transition: transform 300ms var(--ease-out), color 220ms ease; }
.value p { text-align: right; font-size: 16px; line-height: 20px; opacity: 0.7; }
@media (hover: hover) and (pointer: fine) {
  .value:hover h3 { transform: translateX(18px); color: var(--green); }
  .value:hover .n { color: var(--green); opacity: 1; }
}
@media (max-width: 800px) {
  .values { padding: 40px 0 80px; }
  .values ol { margin-top: 40px; }
  .value { grid-template-columns: 1fr; gap: 4px; padding: 18px 0; min-height: 0; }
  .value h3 { font-size: 30px; line-height: 38px; }
  .value p { text-align: left; }
}

.giver { padding-top: 130px; background: var(--dark); color: #fcfcfc; }
.giver__head { display: flex; justify-content: space-between; align-items: flex-end; gap: 40px; }
.giver__head .headline { color: #fcfcfc; font-size: clamp(48px, 7vw, 90px); line-height: 0.8; max-width: 677px; }
.giver__head p { max-width: 290px; padding-bottom: 10px; font-size: 15.5px; line-height: 24.8px; font-weight: 400; }
.houses { display: flex; height: 530px; margin-top: 66px; }
.house {
  position: relative; flex: 1 1 0; min-width: 0; overflow: hidden; text-align: left;
  display: flex; flex-direction: column; justify-content: flex-end; padding: 30px 26px;
  transition: flex-grow 550ms var(--ease-in-out);
}
.house.is-open { flex-grow: 2.28; }
.house__flower { position: absolute; right: 4px; top: -46px; width: 230px; height: 230px; transition: transform 900ms var(--ease-out); }
.house.is-open .house__flower { transform: rotate(16deg) scale(1.2); }
.house small { font-size: 12px; font-weight: 600; opacity: 0.72; padding-bottom: 11px; }
.house h3 { font-size: 48px; line-height: 60px; }
.house dl { display: grid; grid-template-columns: 112px 1fr; gap: 9px 16px; margin: 0; max-height: 0; opacity: 0; overflow: hidden; transition: max-height 550ms var(--ease-in-out), opacity 300ms ease, padding 550ms var(--ease-in-out); }
.house.is-open dl { max-height: 200px; opacity: 1; padding-top: 20px; transition-delay: 0ms, 200ms, 0ms; }
.house dt { font-size: 12px; font-weight: 600; opacity: 0.68; padding-top: 3px; }
.house dd { margin: 0; font-size: 14px; line-height: 16px; font-weight: 400; }
.house--metthos { background: var(--orange); color: var(--white); }
.house--karunos { background: var(--yellow); color: var(--navy); }
.house--pragnos { background: var(--navy); color: var(--sky); }
.house--bodhios { background: var(--sky); color: var(--navy); }
.discover { display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 26px 0; }
.discover b { font-size: 30px; line-height: 38px; }
@media (max-width: 900px) {
  .giver { padding-top: 72px; }
  .giver__head { flex-direction: column; align-items: flex-start; }
  .houses { flex-direction: column; height: auto; margin-top: 40px; }
  .house { min-height: 0; padding: 28px 24px; }
  .house dl { max-height: none; opacity: 1; padding-top: 16px; grid-template-columns: 90px 1fr; }
  .house h3 { font-size: 36px; line-height: 44px; }
  .house__flower { width: 160px; height: 160px; top: -30px; }
  .discover { flex-direction: column; align-items: flex-start; }
  .discover b { font-size: 24px; }
}

.meet { padding: 140px 0; background: var(--cream); text-align: center; }
.meet h2 { font-size: clamp(40px, 5vw, 72px); color: var(--dark); }
.meet p { margin: 24px auto 0; max-width: 560px; font-size: 22px; line-height: 1.5; font-weight: 400; color: var(--dark); }
.faces { display: flex; flex-wrap: wrap; justify-content: center; align-items: flex-end; gap: 24px; margin-top: 64px; }
.face { width: 110px; height: 120px; display: grid; place-items: end center; }
.face img { max-width: 100%; max-height: 100%; transition: transform 450ms cubic-bezier(0.34, 1.56, 0.64, 1); }
@media (hover: hover) and (pointer: fine) { .face:hover img { transform: translateY(-14px) rotate(-6deg); } .face:nth-child(even):hover img { transform: translateY(-14px) rotate(6deg); } }
@media (max-width: 800px) { .meet { padding: 72px 0; } .meet p { font-size: 17px; } .faces { gap: 18px; margin-top: 36px; } .face { width: 92px; height: 92px; } }

/* ==========================================================================
   404 / under construction
   ========================================================================== */
.uc { background: var(--cream); padding: 120px 0 140px; }
.uc__grid { display: grid; grid-template-columns: 560px 1fr; gap: 100px; align-items: center; }
.uc__maky { width: 100%; animation: bob 3.4s ease-in-out infinite alternate; transform-origin: 50% 100%; }
@keyframes bob { from { transform: rotate(-1.5deg); } to { transform: rotate(1.5deg) translateY(-6px); } }
.uc .eyebrow { color: var(--green); font-size: 16px; }
.uc h1 { margin-top: 24px; max-width: 640px; }
.uc p { margin-top: 24px; max-width: 560px; font-size: 20px; line-height: 1.5; color: var(--dark); }
.uc__ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
@media (max-width: 1000px) { .uc { padding: 56px 0 80px; } .uc__grid { grid-template-columns: 1fr; gap: 32px; } .uc__maky { max-width: 340px; margin: 0 auto; } .uc__ctas .btn { flex: 1; justify-content: center; } }

/* ---------- Page transitions (cross-document View Transitions, progressive) ---------- */
@view-transition { navigation: auto; }
::view-transition-old(root) { animation: 220ms ease both vt-out; }
::view-transition-new(root) { animation: 420ms var(--ease-out) both vt-in; }
@keyframes vt-out { to { opacity: 0; } }
@keyframes vt-in { from { opacity: 0; transform: translateY(12px); } }

/* ---------- Reduced motion: keep fades, drop movement ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; }
  .js [data-reveal], .js [data-enter] { transform: none !important; }
  .marquee__track { animation: none; }
  .float, .uc__maky, .ready__deco { animation: none; }
}
