/* ==========================================================
   Tanyag v2 — one-page site (Home · What we do · About · Contact)
   Builds on base.css (colors, fonts, buttons, cursor, menu).
   ========================================================== */
:root { --ribbon-h: 64px; }
html { scroll-padding-top: var(--ribbon-h); }
.section-pad { padding-block: clamp(90px, 14vh, 170px); }
.sec-head { display: grid; gap: 22px; max-width: 900px; margin-bottom: clamp(48px, 7vw, 90px); }
.sec-head .t-lead { max-width: 46ch; }

/* ---------- Top ribbon ---------- */
.ribbon {
  position: fixed; inset: 0 0 auto; z-index: 500; height: var(--ribbon-h);
  display: flex; align-items: center; gap: 20px; padding: 0 var(--gutter);
  background: var(--rust); color: #fff;
  box-shadow: 0 10px 30px -18px rgba(0, 0, 0, .6);
}
.ribbon__brand { display: inline-flex; align-items: center; gap: 10px; font-family: var(--font-display); font-weight: 700; font-size: 1.4rem; letter-spacing: -.02em; }
.ribbon__brand img { width: 28px; filter: brightness(0) invert(1); transition: transform .6s var(--ease-out); }
.ribbon__brand:hover img { transform: rotate(-12deg) scale(1.1); }
.ribbon__nav { margin-left: auto; display: flex; gap: 4px; }
.ribbon__nav a {
  position: relative; padding: 9px 16px; border-radius: 999px; font-weight: 700; font-size: .95rem;
  transition: background-color .35s, color .35s;
}
.ribbon__nav a:hover { background: rgba(255, 255, 255, .14); }
.ribbon__nav a.is-active { background: var(--gatas); color: var(--rust); }
.ribbon__tools { display: flex; align-items: center; gap: 8px; }
.ribbon__icon { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; border: 1px solid rgba(255, 255, 255, .35); transition: background-color .3s, transform .5s var(--ease-out); }
.ribbon__icon:hover { background: rgba(255, 255, 255, .15); transform: rotate(-20deg); }
.ribbon__icon svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.ribbon__menu { display: none; align-items: center; gap: 10px; height: 42px; padding: 0 16px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, .35); font-weight: 700; }
.menu { background: var(--gabi); padding-top: calc(var(--ribbon-h) + 40px); }
.menu__list a:hover, .menu__list a[aria-current="page"] { color: #E8845A; }
@media (max-width: 860px) {
  .ribbon__nav { display: none; }
  .ribbon__tools { margin-left: auto; }
  .ribbon__menu { display: inline-flex; }
}

/* ---------- Buttons used on rust backgrounds ---------- */
.btn--light-on-rust { --b-bg: var(--gatas); --b-fg: var(--rust); }
.btn--light-on-rust::before { background: var(--gabi); }
.btn--light-on-rust .btn__icon { background: var(--rust); color: #fff; }
.btn--outline-light { --b-bg: transparent; --b-fg: #fff; box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .7); }
.btn--outline-light::before { background: var(--gatas); }
.btn--outline-light:hover { color: var(--rust); }
.btn--outline-light .btn__icon { background: #fff; color: var(--rust); }
.btn--outline-light:hover .btn__icon { background: var(--rust); color: #fff; }

/* ==========================================================
   HERO — the Panay circle with pop-ups
   ========================================================== */
.hero { position: relative; }
.hero__stage {
  position: relative; height: 100svh; min-height: 560px; overflow: hidden;
  background: radial-gradient(70% 60% at 50% 50%, var(--bg-2) 0%, var(--bg) 70%);
}
.hero__stripes {
  position: absolute; inset: 0; pointer-events: none; opacity: .55;
  background: repeating-linear-gradient(90deg, transparent 0 26px, color-mix(in srgb, var(--leaf) 16%, transparent) 26px 28px);
  -webkit-mask-image: radial-gradient(closest-side, #000 20%, transparent 100%);
          mask-image: radial-gradient(closest-side, #000 20%, transparent 100%);
  animation: drift 26s linear infinite;
}
:root[data-theme="dark"] .hero__stripes { background: repeating-linear-gradient(90deg, transparent 0 26px, rgba(232, 132, 90, .08) 26px 28px); }
@keyframes drift { to { background-position: 280px 0; } }

.orb {
  position: absolute; left: 50%; top: calc(50% + var(--ribbon-h) / 2); translate: -50% -50%;
  width: min(74vmin, 640px); aspect-ratio: 1;
}
.orb__ring { position: absolute; inset: 0; width: 100%; height: 100%; animation: spin 90s linear infinite; } /* home.js takes over the speed */
.orb__ring text { font-family: var(--font-display); font-weight: 700; font-size: 17px; letter-spacing: 3px; text-transform: uppercase; fill: var(--rust); }
:root[data-theme="dark"] .orb__ring text { fill: #C9653D; }
@keyframes spin { to { transform: rotate(360deg); } }
.orb__disc {
  position: absolute; inset: 17%; border-radius: 50%; background: #fff; display: grid; place-items: center; overflow: hidden;
  box-shadow: 0 40px 80px -30px rgba(26, 18, 13, .45), 0 0 0 1px rgba(26, 18, 13, .04);
}
:root[data-theme="dark"] .orb__disc { box-shadow: 0 40px 90px -20px rgba(0, 0, 0, .8), 0 0 0 10px rgba(255, 255, 255, .03); }
.orb__disc img { width: 76%; }

/* Pop-ups: JS places each one in a "slot" around the circle */
.pops { position: absolute; inset: 0; pointer-events: none; }
.pop {
  --x: 50%; --y: 50%;
  position: absolute; left: var(--x); top: var(--y); translate: -50% -50%;
  display: inline-flex; align-items: center; gap: 10px; white-space: nowrap;
  padding: 14px 22px 14px 16px; border-radius: 999px;
  background: var(--gabi); color: var(--gatas); font-weight: 800; font-size: clamp(.9rem, .8rem + .35vw, 1.15rem);
  box-shadow: 0 18px 40px -16px rgba(26, 18, 13, .55);
  opacity: 0; visibility: hidden;
}
:root[data-theme="dark"] .pop { background: #2A1F19; box-shadow: 0 18px 40px -12px rgba(0, 0, 0, .8), inset 0 0 0 1px rgba(255, 255, 255, .06); }
.pop svg { width: 22px; height: 22px; fill: none; stroke: #E8845A; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.pop[data-c="leaf"] svg { stroke: #9CC25E; }
.pop[data-c="sea"] svg { stroke: #6FC2C9; }
.pop[data-c="sun"] svg { stroke: #F2C46B; }
.pop.is-on { animation: bob 4s ease-in-out infinite; }
.is-static .pop:nth-child(-n+6) { opacity: 1; visibility: visible; } /* no animation: show six at once */
@keyframes bob { 50% { margin-top: -8px; } }

/* Slot positions (center of each pop-up, as % of the screen) */
.pop[data-slot="0"] { --x: 20%; --y: 30%; }
.pop[data-slot="1"] { --x: 80%; --y: 26%; }
.pop[data-slot="2"] { --x: 84%; --y: 62%; }
.pop[data-slot="3"] { --x: 16%; --y: 66%; }
.pop[data-slot="4"] { --x: 32%; --y: 88%; }
.pop[data-slot="5"] { --x: 68%; --y: 88%; }
/* Pop-ups hug the circle's left and right edges (placed by home.js).
   Portrait screens: a bigger circle, centred between the ribbon and the dots. */
@media (max-aspect-ratio: 1/1) {
  .orb {
    top: calc((var(--ribbon-h) + 100% - 70px) / 2);
    width: min(96vw, 600px, calc(100svh - var(--ribbon-h) - 150px));
  }
  .pop { padding: 11px 16px 11px 12px; }
  .pop svg { width: 18px; height: 18px; }
}
@media (max-aspect-ratio: 1/1) and (max-width: 420px) {
  .pop { gap: 7px; padding: 9px 13px 9px 10px; font-size: .84rem; }
  .pop svg { width: 16px; height: 16px; }
}

.hero__dots { position: absolute; left: 50%; bottom: 24px; translate: -50% 0; display: flex; gap: 8px; }
.hero__dots i { width: 8px; height: 8px; border-radius: 999px; background: var(--line); transition: width .5s var(--ease-out), background-color .4s; }
.hero__dots i.is-done { background: color-mix(in srgb, var(--accent) 45%, transparent); }
.hero__dots i.is-on { width: 28px; background: var(--accent); }
.hero__hint {
  position: absolute; left: 50%; bottom: 48px; translate: -50% 0; display: flex; align-items: center; gap: 10px;
  font-weight: 800; font-size: .8rem; letter-spacing: .2em; text-transform: uppercase; color: var(--fg-2);
}
.hero__mouse { width: 22px; height: 34px; border: 2px solid currentColor; border-radius: 12px; position: relative; }
.hero__mouse i { position: absolute; left: 50%; top: 6px; width: 3px; height: 7px; margin-left: -1.5px; border-radius: 2px; background: var(--accent); animation: wheel 1.6s var(--ease-in-out) infinite; }
@keyframes wheel { 0% { transform: translateY(0); opacity: 1; } 80% { transform: translateY(10px); opacity: 0; } 100% { opacity: 0; } }
.hero__caption {
  position: absolute; left: var(--gutter); bottom: 22px; margin: 0; max-width: 20ch;
  font-family: var(--font-display); font-weight: 700; font-size: clamp(.95rem, 1.2vw, 1.15rem); line-height: 1.25; color: var(--fg-2);
}
@media (max-width: 700px) { .hero__caption { display: none; } }

/* ==========================================================
   WHAT WE DO — flip cards
   ========================================================== */
.svc-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(14px, 2vw, 24px); } /* max 4 per row so card backs always fit */
@media (max-width: 1100px) { .svc-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .svc-grid { grid-template-columns: 1fr; } }
.svc { perspective: 1400px; min-height: 500px; cursor: pointer; border-radius: 26px; outline-offset: 6px; }
.svc__inner { position: relative; height: 100%; min-height: inherit; transform-style: preserve-3d; transition: transform .9s var(--ease-out); }
.svc.is-flipped .svc__inner { transform: rotateY(180deg); }
.svc__face {
  position: absolute; inset: 0; border-radius: 26px; padding: 28px; display: flex; flex-direction: column; gap: 14px;
  -webkit-backface-visibility: hidden; backface-visibility: hidden; overflow: hidden;
}
.svc__front { background: var(--bg-2); border: 1px solid var(--line); transition: background-color .4s; }
.svc:hover .svc__front { background: color-mix(in srgb, var(--rust) 10%, var(--bg-2)); }
.svc__back { background: var(--rust); color: #fff; transform: rotateY(180deg); }
.svc:nth-child(2) .svc__back { background: var(--leaf); }
.svc:nth-child(3) .svc__back { background: var(--sea); }
.svc:nth-child(4) .svc__back { background: var(--gabi); }
.svc__num { font-family: var(--font-display); font-weight: 700; color: var(--fg-2); }
.svc__icon { width: 64px; height: 64px; border-radius: 20px; background: var(--rust); display: grid; place-items: center; margin: 18px 0 auto; transition: transform .6s var(--ease-out); }
.svc:hover .svc__icon { transform: rotate(-8deg) scale(1.08); }
.svc:nth-child(2) .svc__icon { background: var(--leaf); }
.svc:nth-child(3) .svc__icon { background: var(--sea); }
.svc:nth-child(4) .svc__icon { background: var(--gabi); }
:root[data-theme="dark"] .svc:nth-child(4) .svc__icon, :root[data-theme="dark"] .svc:nth-child(4) .svc__back { background: #3A2B22; }
.svc__icon svg { width: 32px; height: 32px; fill: none; stroke: #fff; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.svc__front p { color: var(--fg-2); margin: 0; }
.svc__flip { display: inline-flex; align-items: center; gap: 8px; font-weight: 800; font-size: .9rem; margin-top: 6px; }
.svc__flip svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; transition: transform .6s var(--ease-out); }
.svc:hover .svc__flip svg { transform: rotate(180deg); }
.svc__back ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 7px; font-size: .9rem; line-height: 1.4; }
.svc__back .t-h3 { font-size: clamp(1.2rem, 1.5vw, 1.45rem); }
.svc__back { gap: 10px; overflow-y: auto; }
.svc__sub { margin: 4px 0 0; font-weight: 800; font-size: .72rem; letter-spacing: .16em; text-transform: uppercase; opacity: .75; }
.svc__back li { position: relative; padding-left: 30px; font-weight: 600; }
.svc__back li::before {
  content: ""; position: absolute; left: 0; top: .2em; width: 20px; height: 20px; border-radius: 50%;
  background: rgba(255, 255, 255, .95) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 12.5l4 4L18 8' fill='none' stroke='%231A120D' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 13px no-repeat;
}
.svc--soon { cursor: default; border: 2px dashed var(--line); display: grid; place-items: center; text-align: center; padding: 28px; }
.svc__soon svg { width: 48px; height: 48px; margin: 0 auto 16px; fill: none; stroke: var(--accent); stroke-width: 2; stroke-linecap: round; animation: spin 10s linear infinite; }
.svc__soon p:not(.t-h3) { color: var(--fg-2); margin: 10px auto 22px; max-width: 26ch; }
.svc__contact { margin-inline: auto; }

/* ==========================================================
   SAMPLE SITES — sideways scroll
   ========================================================== */
.works { position: relative; height: 100svh; overflow: hidden; background: var(--bg-2); color: var(--fg); transition: background-color .5s; }
.works__track { display: flex; height: 100%; width: max-content; will-change: transform; }
.works__intro, .work { width: 100vw; height: 100%; flex: none; position: relative; }
@media (min-width: 861px) {
  /* samples sit closer together on wide screens: every panel is the same width, and the row is
     padded so the stopper (which steps one panel width at a time) still lands each one centred */
  .works { --panel: min(100vw, 1180px); }
  .works__track { padding-inline: calc((100vw - var(--panel)) / 2); }
  .works__intro, .work { width: var(--panel); }
  .is-static .works__track { padding-inline: 0; }
}
.works__intro { display: grid; align-content: center; padding: calc(var(--ribbon-h) + 20px) var(--gutter) 60px; }
.works__intro .t-display { max-width: 9ch; }
.works__label { color: var(--accent); margin-bottom: 24px; }
.works__note { color: var(--fg-2); max-width: 30ch; margin-top: 24px; }
.works__arrows { display: flex; align-items: center; gap: 2px; margin-top: 34px; color: var(--accent); }
.works__arrows span { display: block; opacity: .5; } /* medium opacity; home.js fades them in during the pause */
.works__arrows svg { width: clamp(34px, 3.4vw, 52px); height: auto; fill: none; stroke: currentColor; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; animation: arrowWave 1.6s ease-in-out infinite; }
.works__arrows span:nth-child(2) svg { animation-delay: .18s; }
.works__arrows span:nth-child(3) svg { animation-delay: .36s; }
@keyframes arrowWave { 0%, 100% { opacity: .55; transform: translateX(0); } 50% { opacity: 1; transform: translateX(6px); } }
.work {
  /* text and screenshot sit close together, centred on the screen */
  display: grid; grid-template-columns: minmax(0, 420px) minmax(0, 620px); justify-content: center;
  gap: clamp(32px, 4vw, 64px); align-items: center;
  padding: calc(var(--ribbon-h) + 30px) var(--gutter) 90px;
}
.work__idx { font-weight: 800; font-size: .8rem; letter-spacing: .2em; text-transform: uppercase; color: var(--fg-2); }
.work__name { font-size: clamp(2.8rem, 5vw, 5.4rem); line-height: .9; letter-spacing: -.05em; margin: 16px 0 22px; }
.work__copy p { color: var(--fg-2); max-width: 38ch; }
.work__tags { list-style: none; padding: 0; margin: 20px 0 26px; display: flex; flex-wrap: wrap; gap: 8px; }
.work__tags li { padding: 7px 14px; border-radius: 999px; border: 1px solid var(--line); background: var(--bg); font-weight: 700; font-size: .85rem; }
.work__cta { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; color: var(--accent); }
.work__cta::before { content: ""; width: 26px; height: 2px; background: currentColor; }

.browser { border-radius: 18px; overflow: hidden; background: #fff; box-shadow: 0 50px 100px -40px rgba(26, 18, 13, .5), 0 0 0 1px rgba(26, 18, 13, .06); transform: rotate(-2deg); }
:root[data-theme="dark"] .browser { box-shadow: 0 50px 100px -30px rgba(0, 0, 0, .8); }
.work:nth-child(odd) .browser { transform: rotate(2deg); }
.browser__bar { display: flex; align-items: center; gap: 7px; padding: 12px 16px; background: #EFE8DF; }
.browser__bar i { width: 11px; height: 11px; border-radius: 50%; background: #E3786A; }
.browser__bar i:nth-child(2) { background: #E9B95B; }
.browser__bar i:nth-child(3) { background: #8DB84A; }
.browser__bar span { margin-left: 14px; flex: 1; background: #fff; color: #7A6A5E; border-radius: 999px; padding: 4px 14px; font-size: .8rem; font-weight: 700; }
.browser__screen { aspect-ratio: 16 / 10; overflow: hidden; background: #FBF7F2; }
.mock { height: 118%; display: grid; grid-template-rows: 1.2fr auto auto; gap: 14px; padding: 14px; }
.mock__hero {
  border-radius: 12px; padding: 22px; display: flex; flex-direction: column; justify-content: flex-end; color: #fff; position: relative; overflow: hidden;
  background: radial-gradient(60% 80% at 85% 20%, rgba(255, 230, 180, .45), transparent 60%), linear-gradient(150deg, var(--w1), var(--w2));
}
.mock__hero b { font-family: var(--font-display); font-size: clamp(1.4rem, 2.6vw, 2.6rem); letter-spacing: -.03em; line-height: 1; }
.mock__hero small { opacity: .9; font-weight: 700; margin-top: 6px; }
.mock__avatar { position: absolute; right: 22px; top: 50%; translate: 0 -50%; width: 28%; aspect-ratio: 1; border-radius: 50%; background: rgba(255, 255, 255, .35); border: 4px solid rgba(255, 255, 255, .7); }
.mock__row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.mock__row i { height: 70px; border-radius: 10px; background: color-mix(in srgb, var(--w1) 30%, #fff); }
.mock__lines { display: grid; gap: 8px; }
.mock__lines i { height: 10px; border-radius: 5px; background: #E6DDD2; }
.mock__lines i:nth-child(2) { width: 80%; } .mock__lines i:nth-child(3) { width: 60%; }
.mock__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.mock__grid i { aspect-ratio: 3 / 4; border-radius: 10px; background: linear-gradient(160deg, color-mix(in srgb, var(--w1) 40%, #fff), color-mix(in srgb, var(--w2) 30%, #fff)); }

/* Live sample sites */
.work__concept { display: inline-block; margin-left: 10px; padding: 3px 9px; border-radius: 999px; background: var(--bg); border: 1px solid var(--line); color: var(--accent); letter-spacing: .12em; font-size: .7rem; vertical-align: 1px; }
.work__cta--live { gap: 12px; padding: 12px 20px; border-radius: 999px; background: var(--rust); color: #fff; transition: transform .5s var(--ease-out), background-color .3s; }
.work__cta--live::before { display: none; }
.work__cta--live svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; transition: transform .5s var(--ease-out); }
.work__cta--live:hover { background: var(--gabi); transform: translateY(-2px); }
:root[data-theme="dark"] .work__cta--live:hover { background: var(--leaf); }
.work__cta--live:hover svg { transform: translate(2px, -2px); }
.browser--live { display: block; transition: box-shadow .5s var(--ease-out); }
/* Give moving parts their own GPU layer so the big shadows aren't repainted every frame */
.browser, .work__copy { will-change: transform; backface-visibility: hidden; }
.browser--live:hover { box-shadow: 0 60px 110px -40px rgba(26, 18, 13, .6), 0 0 0 3px var(--rust); }
.browser__screen { position: relative; }
.browser__shot { width: 100%; height: 100%; object-fit: cover; /* screenshots are cropped to 16:10, shown whole */ object-position: top center; transition: transform 1.2s var(--ease-out); }
.browser--live:hover .browser__shot { transform: scale(1.04); }

.works__hud { position: absolute; left: var(--gutter); right: var(--gutter); bottom: 30px; display: flex; align-items: center; gap: 18px; font-weight: 800; z-index: 2; }
.works__bar { flex: 1; height: 2px; background: var(--line); overflow: hidden; }
.works__bar i { display: block; height: 100%; background: var(--accent); transform-origin: left; transform: scaleX(0); }
/* Phones & small tablets: a swipeable row of samples (swipe left/right) instead of a pinned scroll */
@media (max-width: 860px) {
  .works { height: auto; overflow: hidden; padding: clamp(70px, 12vw, 100px) 0 44px; }
  .works__track {
    width: auto; transform: none !important; gap: 14px; align-items: stretch;
    overflow-x: auto; scroll-snap-type: x mandatory; overscroll-behavior-x: contain; scrollbar-width: none;
    padding: 8px var(--gutter) 18px; scroll-padding-inline: var(--gutter);
  }
  .works__track::-webkit-scrollbar { display: none; }
  .works__intro, .work { flex: 0 0 min(84vw, 420px); width: auto; height: auto; min-height: 0; scroll-snap-align: start; }
  .works__intro { padding: 10px 6px 0 0; align-content: start; }
  .works__intro .t-display { font-size: clamp(2.6rem, 12vw, 3.6rem); }
  .works__arrows span { opacity: .5 !important; visibility: visible !important; transform: none !important; }
  .work { grid-template-columns: 1fr; align-content: start; gap: 22px; padding: 0; justify-content: stretch; }
  .browser, .work:nth-child(odd) .browser { order: -1; transform: none; }
  .work__name { font-size: clamp(2rem, 9vw, 2.8rem); margin: 8px 0 10px; }
  .work__copy p { font-size: .95rem; }
  .work__tags { margin: 12px 0 16px; }
  .works__hud { position: static; margin: 10px var(--gutter) 0; }
}
/* Without scroll animation, the samples simply stack */
.is-static .works { height: auto; }
.is-static .works__track { flex-direction: column; width: auto; }
.is-static .works__intro, .is-static .work { width: 100%; height: auto; min-height: 80vh; }
.is-static .works__hud { display: none; }

/* ==========================================================
   WHO WE HELP — anyone can afford us
   ========================================================== */
.who-head { margin-bottom: clamp(36px, 5vw, 64px); }
.who-head .t-h1 { max-width: 16ch; }
.who-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(12px, 1.4vw, 20px); }
.who {
  display: flex; flex-direction: column; gap: 12px; padding: clamp(22px, 2.2vw, 30px);
  background: var(--bg-2); border: 1px solid var(--line); border-radius: 26px;
  transition: transform .6s var(--ease-out), box-shadow .6s var(--ease-out), background-color .4s;
}
.who:hover { transform: translateY(-6px); box-shadow: 0 36px 60px -40px rgba(26, 18, 13, .5); background: color-mix(in srgb, var(--rust) 8%, var(--bg-2)); }
.who h3 { font-size: clamp(1.2rem, 1.4vw, 1.45rem); letter-spacing: -.02em; line-height: 1.15; }
.who p { margin: 0; color: var(--fg-2); font-size: .97rem; }
.who__icon { width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center; background: var(--rust); margin-bottom: 6px; transition: transform .6s var(--ease-out); flex: none; }
.who:hover .who__icon { transform: rotate(-8deg) scale(1.08); }
.who__icon svg { width: 26px; height: 26px; fill: none; stroke: #fff; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.who:nth-child(3n+2) .who__icon { background: var(--leaf); }
.who:nth-child(3n) .who__icon { background: var(--sea); }
/* Schools card: wide and highlighted */
.who--wide { grid-column: span 2; flex-direction: row; align-items: flex-start; gap: 22px; background: var(--rust); color: #fff; border-color: var(--rust); }
.who--full { grid-column: 1 / -1; }
.who--leaf { background: var(--leaf); border-color: var(--leaf); }
.who--leaf:hover { background: #3F6512 !important; }
.who--leaf .who__icon svg { stroke: var(--leaf) !important; }
.who--leaf p { color: #EAF3DC !important; }
.who--wide:hover { background: var(--rust-deep); }
.who--wide .who__icon { background: var(--gatas) !important; }
.who--wide .who__icon svg { stroke: var(--rust); }
.who--wide h3 { font-size: clamp(1.4rem, 2vw, 2rem); margin-bottom: 10px; }
.who--wide p { color: #FFE6DA; font-size: 1.05rem; max-width: 62ch; }
.who-cta {
  display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap;
  margin-top: clamp(18px, 2vw, 26px); padding: clamp(22px, 2.6vw, 34px); border-radius: 26px; background: var(--gabi); color: var(--gatas);
}
:root[data-theme="dark"] .who-cta { background: #2A1F19; }
.who-cta p { margin: 0; max-width: 60ch; }
.who-cta b { color: #E8845A; }
@media (max-width: 1180px) { .who-grid { grid-template-columns: repeat(2, 1fr); } .who--wide { grid-column: 1 / -1; } }
@media (max-width: 640px) {
  .who-grid { grid-template-columns: 1fr; }
  .who--wide { grid-column: auto; flex-direction: column; }
  .who-cta .btn { width: 100%; justify-content: space-between; }
}
/* ==========================================================
   ABOUT
   ========================================================== */
.about { background: var(--bg); }
.vmarq { overflow: hidden; padding-block: clamp(12px, 1.4vw, 20px); background: var(--rust); color: #fff; }
.vmarq__track { display: flex; width: max-content; }
.vmarq__item { display: flex; align-items: center; gap: 3vw; padding-right: 3vw; font-family: var(--font-display); font-weight: 700; font-size: clamp(1.9rem, 5vw, 5rem); line-height: 1; letter-spacing: -.045em; white-space: nowrap; }
.vmarq__item img { width: .62em; filter: brightness(0) invert(1); }
.vmarq__item .o { color: transparent; -webkit-text-stroke: 1.5px #fff; }
.about__lead { max-width: 40ch; }

.mv { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(14px, 2vw, 24px); }
.mvcard { background: var(--bg-2); border: 1px solid var(--line); border-radius: 30px; padding: clamp(28px, 3.5vw, 48px); transition: transform .5s var(--ease-out), box-shadow .5s var(--ease-out); }
.mvcard:hover { transform: translateY(-8px); box-shadow: 0 40px 70px -40px rgba(26, 18, 13, .45); }
.mvcard p { color: var(--fg-2); }
.mvcard .t-label { color: var(--fg); margin: 0 0 14px; }
.mvcard__big { font-family: var(--font-display); font-weight: 700; font-size: clamp(1.5rem, 2.4vw, 2.2rem); line-height: 1.15; letter-spacing: -.02em; color: var(--fg) !important; }
.mvcard__icon { width: 60px; height: 60px; border-radius: 18px; background: var(--rust); display: grid; place-items: center; margin-bottom: 26px; }
.mvcard--vision .mvcard__icon { background: var(--leaf); }
.mvcard__icon svg { width: 30px; height: 30px; fill: none; stroke: #fff; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.mvcard:hover .mvcard__icon svg { animation: spin 3s linear infinite; }
.rise { display: flex; align-items: flex-end; gap: 10px; height: 110px; margin-top: 18px; }
.rise i { flex: 1; border-radius: 10px 10px 4px 4px; background: linear-gradient(0deg, var(--leaf), #9CC25E); height: 8%; transition: height 1.2s var(--ease-out); }
.mvcard.is-risen .rise i { height: var(--h); }
.rise i:nth-child(1) { --h: 35%; transition-delay: .1s; } .rise i:nth-child(2) { --h: 50%; transition-delay: .2s; }
.rise i:nth-child(3) { --h: 62%; transition-delay: .3s; } .rise i:nth-child(4) { --h: 75%; transition-delay: .4s; }
.rise i:nth-child(5) { --h: 88%; transition-delay: .5s; }
.rise i:nth-child(6) { --h: 100%; transition-delay: .6s; position: relative; overflow: hidden; }
.rise i:nth-child(6)::after { /* rust layer on the tallest bar; fades to reveal green when scrolled past */
  content: ""; position: absolute; inset: 0; border-radius: inherit;
  background: linear-gradient(0deg, var(--rust), #E0874F); opacity: var(--rust-o, 1);
}
.rise.is-scrubbed i { transition: none; } /* scroll drives the heights directly */

.team-head { display: grid; gap: 18px; margin: clamp(90px, 12vw, 150px) 0 clamp(40px, 5vw, 64px); }
.team { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(20px, 3vw, 40px); align-items: start; }
.person { display: grid; gap: 26px; }
.person__photo { position: relative; width: 100%; aspect-ratio: 4 / 5; border-radius: 30px; overflow: hidden; cursor: pointer; isolation: isolate; }
.person__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 30%; transform: scale(1.02); transition: transform 1.6s var(--ease-out), filter 1.2s; }
.person__photo { background: var(--bg-2); -webkit-touch-callout: none; user-select: none; -webkit-user-select: none; }
/* Make the team photos hard to save: the image itself can't be clicked, dragged or long-pressed,
   so there's no "Save image" option (right-click / press lands on the frame, not the picture). */
.person__img { pointer-events: none; -webkit-user-drag: none; user-select: none; -webkit-user-select: none; -webkit-touch-callout: none; }
.person:hover .person__img { transform: scale(1.05); }
.person__photo--ph {
  display: grid; place-items: center; align-content: center; gap: 14px; color: rgba(255, 255, 255, .85); font-weight: 800; font-size: .8rem; letter-spacing: .16em; text-transform: uppercase;
  background: repeating-linear-gradient(90deg, transparent 0 20px, rgba(255, 255, 255, .07) 20px 22px), linear-gradient(160deg, #D9894F, var(--rust) 55%, #6E2C14);
  transition: transform .8s var(--ease-out);
}
.person__photo--leaf { background: repeating-linear-gradient(90deg, transparent 0 20px, rgba(255, 255, 255, .07) 20px 22px), linear-gradient(160deg, #9CC25E, var(--leaf) 55%, #243A0A); }
.person__ph-mark { width: 34%; filter: brightness(0) invert(1); animation: bob 5s ease-in-out infinite; }

/* Bio sits on the photo: hidden until hover (mouse) or tap (phones), with a slow reveal */
.person__bio {
  position: absolute; inset: 0; z-index: 2; display: flex; flex-direction: column; justify-content: flex-end; gap: 10px;
  padding: clamp(20px, 2.4vw, 32px); text-align: left; text-transform: none; letter-spacing: normal; font-weight: 400;
  font-size: clamp(.9rem, .85rem + .2vw, 1rem); line-height: 1.55; color: #FBF6EE;
  background: linear-gradient(180deg, rgba(26, 18, 13, .06) 0%, rgba(26, 18, 13, .14) 38%, rgba(26, 18, 13, .55) 62%, rgba(26, 18, 13, .82) 100%);
  opacity: 0; visibility: hidden; transition: opacity 1.1s ease, visibility 0s linear 1.1s;
  overflow-y: auto; overscroll-behavior: auto;
}
.person__bio { justify-content: flex-start; }
.person__bio p:first-child { margin-top: auto; } /* sits at the bottom when it fits, scrolls from the top when it doesn't */
.person__bio p { margin: 0; opacity: 0; transform: translateY(26px); transition: opacity 1.1s ease, transform 1.3s var(--ease-out); }
.person__bio p:nth-child(2) { transition-delay: .18s; }
.person__bio p:nth-child(3) { transition-delay: .36s; }
.person__photo.is-open .person__bio { opacity: 1; visibility: visible; transition: opacity 1.1s ease, visibility 0s; }
.person__photo.is-open .person__bio p { opacity: 1; transform: none; }
.person__photo.is-open .person__img { transform: scale(1.06); filter: blur(2px); }
@media (hover: hover) {
  .person__photo:hover .person__bio { opacity: 1; visibility: visible; transition: opacity 1.1s ease, visibility 0s; }
  .person__photo:hover .person__bio p { opacity: 1; transform: none; }
  .person__photo:hover .person__img { transform: scale(1.06); filter: blur(2px); }
}
.person__photo:focus-visible { outline: 3px solid var(--accent); outline-offset: 4px; }
/* Small cue on the photo; swaps wording for touch screens and hides while the bio is showing */
.person__cue {
  position: absolute; left: 16px; bottom: 16px; z-index: 1; display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 14px; border-radius: 999px; background: rgba(20, 12, 8, .55); color: #fff; backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  font-size: .78rem; font-weight: 800; letter-spacing: .04em; text-transform: none; transition: opacity .6s ease;
}
.person__cue::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #E8845A; animation: blinkDot 1.8s ease-in-out infinite; }
@keyframes blinkDot { 50% { opacity: .3; } }
.cue-tap { display: none; }
@media (hover: none) { .cue-hover { display: none; } .cue-tap { display: inline; } }
.person__photo.is-open .person__cue { opacity: 0; }
@media (hover: hover) { .person__photo:hover .person__cue { opacity: 0; } }

/* Join us */
.join {
  display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 18px 40px;
  margin-top: clamp(36px, 5vw, 60px); padding: clamp(26px, 3.4vw, 48px); border-radius: 30px;
  background: var(--rust); color: #fff; position: relative; overflow: hidden;
}
.join::before { content: ""; position: absolute; inset: 0; background: repeating-linear-gradient(90deg, transparent 0 26px, rgba(255, 255, 255, .07) 26px 28px); pointer-events: none; }
.join > * { position: relative; }
.join .t-label { color: #FFE6DA; margin-bottom: 12px; }
.join .t-label::before { background: #fff; }
.join__title { font-size: clamp(1.8rem, 3.2vw, 3rem); letter-spacing: -.04em; line-height: 1.02; margin-bottom: 14px; }
.join__copy p:last-child { margin: 0; color: #FFE6DA; max-width: 56ch; }
.join__note { grid-column: 2; margin: -6px 0 0; font-size: .82rem; color: #FFE6DA; text-align: center; }
@media (max-width: 860px) {
  .join { grid-template-columns: 1fr; }
  .join__note { grid-column: 1; text-align: left; }
  .join__btn { justify-self: start; }
}
.person__role { font-weight: 800; font-size: .8rem; letter-spacing: .16em; text-transform: uppercase; color: var(--accent); margin: 0 0 8px; }
.person__name { font-size: clamp(2rem, 3.4vw, 3.2rem); letter-spacing: -.04em; margin-bottom: 14px; }
.person__pin { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 999px; background: var(--bg-2); border: 1px solid var(--line); font-weight: 700; font-size: .9rem; margin-bottom: 20px; }
.person__pin svg { width: 18px; height: 18px; fill: none; stroke: var(--accent); stroke-width: 2; }
/* "We named it Tanyag" + dictionary card */
.named { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(28px, 5vw, 80px); align-items: center; margin-top: clamp(90px, 12vw, 150px); }
.named__copy { display: grid; gap: 20px; }
.named .t-lead { max-width: 40ch; }
.define { background: var(--bg-2); border-left: 6px solid var(--rust); border-radius: 0 30px 30px 0; padding: clamp(28px, 3.5vw, 48px); box-shadow: 0 30px 60px -40px rgba(26, 18, 13, .45); }
.define__word { font-family: var(--font-display); font-weight: 700; font-size: clamp(3rem, 6vw, 5.5rem); line-height: 1; letter-spacing: -.04em; color: var(--accent); margin: 0; }
.define__pos { font-style: italic; color: var(--fg-2); margin: 8px 0 18px; font-size: 1.05rem; }
.define__mean { font-family: var(--font-display); font-weight: 700; font-size: clamp(1.3rem, 2vw, 1.8rem); line-height: 1.3; margin: 0; }
.define__mean span { background: linear-gradient(transparent 60%, color-mix(in srgb, var(--leaf) 35%, transparent) 60%) no-repeat; background-size: 0% 100%; transition: background-size 1.1s var(--ease-out) .4s; }
.define__mean span + span { transition-delay: 1.1s; }
.define.is-lit .define__mean span { background-size: 100% 100%; }

.team__hint, .team__dots { display: none; }
@media (max-width: 860px) {
  .mv, .named { grid-template-columns: 1fr; }
  /* Team becomes a swipeable row of cards on phones and small tablets */
  .team {
    display: flex; gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; overscroll-behavior-x: contain;
    margin-inline: calc(var(--gutter) * -1); padding: 6px var(--gutter) 10px; scroll-padding-inline: var(--gutter);
    scrollbar-width: none; align-items: stretch;
  }
  .team::-webkit-scrollbar { display: none; }
  .person {
    flex: 0 0 min(86%, 440px); scroll-snap-align: center; scroll-snap-stop: always;
    background: var(--bg-2); border: 1px solid var(--line); border-radius: 28px; padding: 14px 14px 22px; gap: 20px;
  }
  .person__photo { max-width: none; aspect-ratio: 4 / 5; border-radius: 20px; }
  .person__bio { padding: 18px 16px; font-size: .86rem; line-height: 1.5; gap: 8px; }
  .person__body { padding: 0 6px; }
  .team__hint { display: flex; align-items: center; gap: 10px; margin: 4px 0 0; color: var(--fg-2); font-weight: 700; font-size: .9rem; }
  .team__hint svg { width: 20px; height: 20px; fill: none; stroke: var(--accent); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; animation: nudge 1.6s ease-in-out infinite; }
  .team__dots { display: flex; justify-content: center; gap: 8px; margin-top: 16px; }
  .team__dots i { width: 8px; height: 8px; border-radius: 999px; background: var(--line); transition: width .5s var(--ease-out), background-color .3s; }
  .team__dots i.is-on { width: 28px; background: var(--accent); }
}
@keyframes nudge { 50% { transform: translateX(6px); } }

/* ==========================================================
   FLOATING FAQ (bottom-right, like a chat window)
   ========================================================== */
.faq {
  position: fixed; right: clamp(12px, 2vw, 24px); bottom: clamp(12px, 2vw, 24px); z-index: 600;
  width: min(360px, calc(100vw - 24px)); display: flex; flex-direction: column-reverse;
  pointer-events: none;
}
.faq > * { pointer-events: auto; }
.faq__bar {
  align-self: flex-end; display: flex; align-items: center; gap: 12px; height: 56px; padding: 0 16px 0 8px;
  border-radius: 999px; background: var(--gabi); color: var(--gatas); text-align: left;
  box-shadow: 0 18px 40px -14px rgba(26, 18, 13, .55); transition: border-radius .5s var(--ease-out), width .5s var(--ease-out), transform .4s var(--ease-out);
}
:root[data-theme="dark"] .faq__bar { background: #2A1F19; box-shadow: 0 18px 40px -10px rgba(0, 0, 0, .8), inset 0 0 0 1px rgba(255, 255, 255, .08); }
.faq__bar:hover { transform: translateY(-3px); }
.faq__avatar { width: 40px; height: 40px; border-radius: 50%; background: var(--rust); display: grid; place-items: center; flex: none; position: relative; }
.faq__avatar img { width: 18px; filter: brightness(0) invert(1); }
.faq__avatar::after { /* small "online" dot that pulses a few times, then rests */
  content: ""; position: absolute; right: -1px; top: -1px; width: 11px; height: 11px; border-radius: 50%;
  background: var(--leaf-bright); box-shadow: 0 0 0 2px var(--gabi); animation: ping 2s ease-out 3 1.5s;
}
@keyframes ping { 0% { box-shadow: 0 0 0 2px var(--gabi), 0 0 0 2px rgba(141, 184, 74, .7); } 100% { box-shadow: 0 0 0 2px var(--gabi), 0 0 0 14px rgba(141, 184, 74, 0); } }
.faq__title { display: grid; line-height: 1.15; }
.faq__title b { font-family: var(--font-display); font-size: 1.05rem; }
.faq__title small { font-size: .78rem; opacity: .7; font-weight: 600; }
.faq__chev { width: 18px; height: 18px; margin-left: 6px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; transition: transform .5s var(--ease-out); }
.faq.is-open .faq__bar { align-self: stretch; border-radius: 0 0 22px 22px; }
.faq.is-open .faq__chev { transform: rotate(180deg); margin-left: auto; }

.faq__panel {
  display: flex; flex-direction: column; height: min(52vh, 480px); min-height: 320px;
  background: var(--bg); color: var(--fg); border: 1px solid var(--line); border-bottom: 0;
  border-radius: 22px 22px 0 0; box-shadow: 0 -10px 50px -20px rgba(26, 18, 13, .45); overflow: hidden;
}
.faq__panel[hidden] { display: none; }
.faq__search { display: flex; align-items: center; gap: 10px; margin: 14px 14px 6px; padding: 0 14px; height: 46px; border-radius: 999px; background: var(--bg-2); border: 1px solid var(--line); }
.faq__search:focus-within { border-color: var(--accent); }
.faq__search svg { width: 18px; height: 18px; flex: none; fill: none; stroke: var(--fg-2); stroke-width: 2; stroke-linecap: round; }
.faq__search input { flex: 1; min-width: 0; height: 100%; border: 0; background: transparent; color: var(--fg); font: inherit; font-size: 1rem; outline: none; }
.faq__count { margin: 2px 18px 6px; font-size: .78rem; color: var(--fg-2); font-weight: 700; }
.faq__list { flex: 1; overflow-y: auto; overscroll-behavior: contain; padding: 0 10px 10px; }
.faq__list details { border-radius: 14px; transition: background-color .3s; }
.faq__list details[open] { background: var(--bg-2); }
.faq__list summary { list-style: none; cursor: pointer; padding: 12px 34px 12px 10px; font-weight: 700; font-size: .95rem; position: relative; border-radius: 14px; }
.faq__list summary::-webkit-details-marker { display: none; }
.faq__list summary:hover { background: var(--bg-2); }
.faq__list summary::after { content: ""; position: absolute; right: 14px; top: 50%; width: 8px; height: 8px; border-right: 2px solid var(--accent); border-bottom: 2px solid var(--accent); transform: translateY(-70%) rotate(45deg); transition: transform .4s var(--ease-out); }
.faq__list details[open] summary::after { transform: translateY(-30%) rotate(-135deg); }
.faq__list details p { margin: 0; padding: 0 12px 14px; color: var(--fg-2); font-size: .92rem; }
.faq__list mark { background: color-mix(in srgb, var(--sun) 45%, transparent); color: inherit; border-radius: 3px; padding: 0 1px; }
.faq__empty { padding: 20px 12px; color: var(--fg-2); font-size: .92rem; }
.faq__empty a { color: var(--accent); font-weight: 700; }
.faq__more { display: flex; align-items: center; justify-content: center; gap: 8px; padding: 12px; border-top: 1px solid var(--line); font-weight: 800; font-size: .9rem; color: var(--accent); }
.faq__more svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
@media (max-width: 560px) {
  .faq__bar { height: 50px; }
  .faq:not(.is-open) .faq__title small { display: none; }
  .faq__panel { height: 62svh; }
}

/* ==========================================================
   CONTACT + FOOTER
   ========================================================== */
.contact { position: relative; background: var(--rust); color: #fff; padding: clamp(110px, 16vh, 190px) 0; overflow: hidden; text-align: center; }
.contact__stripes { position: absolute; inset: 0; background: repeating-linear-gradient(90deg, transparent 0 26px, rgba(255, 255, 255, .07) 26px 28px); animation: drift 30s linear infinite; }
.contact__inner { position: relative; display: grid; justify-items: center; }
.contact__icon { width: clamp(64px, 7vw, 90px); filter: brightness(0) invert(1); margin-bottom: 28px; animation: bob 5s ease-in-out infinite; }
.contact .t-display { max-width: 12ch; }
.contact__sub { max-width: 48ch; font-size: clamp(1.1rem, 1rem + .5vw, 1.35rem); color: #FFE6DA; margin: 28px 0 36px; }
.contact__actions { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; }
.foot { background: var(--gabi); color: #CDBFB2; padding: 44px 0; }
.foot__inner { display: grid; justify-items: center; gap: 10px; text-align: center; }
.foot .ribbon__brand { color: var(--gatas); }
.foot p { margin: 0; }
.foot__small { font-size: .85rem; opacity: .65; }
@media (max-width: 560px) {
  .contact__actions { flex-direction: column; align-items: stretch; width: 100%; }
  .contact__actions .btn { justify-content: space-between; }
}

/* ---------- Sound toggle (next to light/dark) ---------- */
.sound-btn .i-sound-on { display: none; }
.sound-btn.is-on .i-sound-on { display: block; }
.sound-btn.is-on .i-sound-off { display: none; }
.sound-btn.is-on { background: rgba(255, 255, 255, .18); }
.sound-btn.is-on .i-sound-on path:last-child { animation: soundWave 1.6s ease-in-out infinite; transform-origin: 14px 12px; }
@keyframes soundWave { 50% { opacity: .35; } }

/* ---------- Back to top (under the contact buttons) ---------- */
.backtop {
  display: inline-flex; flex-direction: column; align-items: center; gap: 10px; margin-top: clamp(44px, 6vw, 70px);
  color: #FFE6DA; font-weight: 800; font-size: .8rem; letter-spacing: .2em; text-transform: uppercase;
}
.backtop__ring {
  width: 58px; height: 58px; border-radius: 50%; display: grid; place-items: center;
  border: 1.5px dashed rgba(255, 255, 255, .6); transition: background-color .4s, border-color .4s, transform .6s var(--ease-out);
}
.backtop__ring svg { width: 22px; height: 22px; fill: none; stroke: #fff; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; transition: transform .6s var(--ease-out); }
.backtop:hover .backtop__ring { background: var(--gatas); border-style: solid; border-color: var(--gatas); }
.backtop:hover .backtop__ring svg { stroke: var(--rust); transform: translateY(-3px); }
.backtop:hover .backtop__text { color: #fff; }

/* ---------- Team photos: bio always shown on the photo (no hover / tap needed) ----------
   Same on phones and computers. Softly shaded and slightly blurred so the photo isn't too exposed. */
.person__photo { cursor: none; }
.person__img, .person:hover .person__img, .person__photo.is-open .person__img {
  transform: scale(1.02); filter: blur(.5px) saturate(.95); transition: none;
}
@media (hover: hover) { .person__photo:hover .person__img { transform: scale(1.02); filter: blur(.5px) saturate(.95); } }
.person__bio {
  opacity: 1 !important; visibility: visible !important; transition: none !important;
  /* light at the top so outfits show, darker only behind the text at the bottom */
  background: linear-gradient(180deg, rgba(26, 18, 13, .06) 0%, rgba(26, 18, 13, .14) 38%, rgba(26, 18, 13, .55) 62%, rgba(26, 18, 13, .82) 100%);
}
.person__bio p { opacity: 1 !important; transform: none !important; transition: none !important; text-shadow: 0 1px 3px rgba(0, 0, 0, .55), 0 2px 16px rgba(0, 0, 0, .45); }
.person__cue { display: none; }
@media (max-width: 860px) {
  /* phones: photo runs edge to edge in the card and is a little taller, so the whole bio fits */
  .person { padding: 0 0 20px; overflow: hidden; }
  .person__photo { aspect-ratio: 5 / 7.4; border-radius: 28px 28px 0 0; }
  .person__bio { padding: 18px 18px 20px; font-size: .84rem; line-height: 1.5; gap: 8px; }
  .person__body { padding: 0 18px; }
}
@media (max-width: 380px) {
  .person__photo { aspect-ratio: 5 / 8.4; }
  .person__bio { font-size: .8rem; padding: 16px 16px 18px; }
}
/* Tanyag "T" watermark in the top-right corner of each team photo */
.person__mark {
  position: absolute; top: clamp(14px, 1.6vw, 22px); right: clamp(14px, 1.6vw, 22px); z-index: 3;
  width: clamp(52px, 5.2vw, 78px); height: auto; opacity: .95; pointer-events: none; user-select: none;
  filter: drop-shadow(0 2px 10px rgba(0, 0, 0, .45));
}
/* Bios never trap the scroll wheel: scrolling over a photo scrolls the page */
.person__bio { overscroll-behavior: auto; }
/* Team cards: rust / green brand cards with the "T" (no photos), three across */
.team { grid-template-columns: repeat(3, 1fr); align-items: stretch; }
.person { grid-template-rows: 1fr auto; }
.person__name { font-size: clamp(1.7rem, 2.6vw, 2.5rem); }
.person__photo--ph {
  aspect-ratio: auto; display: flex; flex-direction: column; justify-content: flex-start; align-items: flex-start; gap: 22px;
  padding: clamp(24px, 2.6vw, 36px); cursor: default;
}
.person__photo--ph .person__ph-mark { width: clamp(54px, 5.4vw, 80px); flex: none; animation: none; filter: brightness(0) invert(1) drop-shadow(0 6px 18px rgba(0, 0, 0, .25)); }
.person__photo--ph .person__bio { position: static; inset: auto; padding: 0; background: none !important; overflow: visible; }
.person__photo--ph .person__bio p:first-child { margin-top: 0; }
@media (max-width: 860px) {
  .person__photo--ph { aspect-ratio: auto; min-height: 100%; }
  .person__photo--ph .person__bio { padding: 0; }
}

/* ==========================================================
   BLOG: homepage feature, blog list page, post pages
   ========================================================== */
.blogfeat { padding-bottom: clamp(70px, 10vh, 120px); }
.blogfeat__head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: clamp(32px, 4vw, 52px); }
.blogfeat__head .sec-head { margin: 0; }
.bgrid { display: grid; grid-template-columns: repeat(2, 1fr); gap: clamp(16px, 2vw, 28px); }
.bgrid--3 { grid-template-columns: repeat(3, 1fr); }
.bcard {
  display: flex; flex-direction: column; background: var(--bg-2); border: 1px solid var(--line); border-radius: 28px; overflow: hidden;
  transition: transform .6s var(--ease-out), box-shadow .6s var(--ease-out);
}
.bcard:hover { transform: translateY(-6px); box-shadow: 0 40px 70px -42px rgba(26, 18, 13, .55); }
.bcover {
  --c1: #D9894F; --c2: var(--rust);
  position: relative; aspect-ratio: 16 / 8; display: grid; place-items: center; overflow: hidden; color: #fff;
  background: repeating-linear-gradient(90deg, transparent 0 22px, rgba(255, 255, 255, .07) 22px 24px), linear-gradient(150deg, var(--c1), var(--c2));
}
.bcover--leaf { --c1: #9CC25E; --c2: var(--leaf); }
.bcover--sea { --c1: #6FB3B8; --c2: var(--sea); }
.bcover--sun { --c1: #F2C46B; --c2: #C9861F; }
.bcover svg { width: clamp(64px, 8vw, 100px); height: auto; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; opacity: .95; transition: transform .8s var(--ease-out); }
.bcard:hover .bcover svg { transform: scale(1.08) rotate(-4deg); }
.bcover__tag { position: absolute; left: 16px; top: 16px; padding: 6px 12px; border-radius: 999px; background: rgba(20, 12, 8, .35); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); font-weight: 800; font-size: .74rem; letter-spacing: .12em; text-transform: uppercase; }
.bcard__body { display: flex; flex-direction: column; gap: 12px; padding: clamp(22px, 2.4vw, 32px); flex: 1; }
.bcard__meta { font-weight: 700; font-size: .82rem; color: var(--fg-2); }
.bcard__title { font-size: clamp(1.35rem, 1.8vw, 1.8rem); letter-spacing: -.025em; line-height: 1.15; }
.bcard__title a:hover { color: var(--accent); }
.bcard__text { color: var(--fg-2); margin: 0; flex: 1; }
.bcard .btn { align-self: flex-start; margin-top: 8px; height: 54px; padding-left: 22px; font-size: .95rem; }
@media (max-width: 1000px) { .bgrid--3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 700px) { .bgrid, .bgrid--3 { grid-template-columns: 1fr; } }
/* featured blog cards use the post's real cover photo */
.bcover img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease-out); }
.bcard:hover .bcover img { transform: scale(1.05); }
.bcover--photo { background: var(--bg-2); }
.bcover--photo .bcover__tag { z-index: 1; background: var(--tag, var(--rust)); }