/* ── Tokens ─────────────────────────────────────────────── */
:root {
  --frame: #161f1c;
  --sheet: #f8f8ef;
  --sheet-pale: #f2f9da;
  --lime: #baeb7e;
  --ink: #161f1c;
  --ink-soft: #55605b;
  --ink-faint: #a9afa6;
  --line: rgb(22 31 28 / 0.14);
  --sheet-ink: #1d2924;
  --on-ink: #eef0e6;
  --on-ink-soft: #a6b1aa;
  --card: #ffffff;
  --card-back: #eeeee4;
  --pocket: rgb(255 255 255 / 0.62);
  --pocket-edge: rgb(255 255 255 / 0.9);
  --shadow-soft: 0 2px 16px rgb(22 31 28 / 0.08);
  --shadow-lift: 0 24px 48px -24px rgb(22 31 28 / 0.35);

  --font-display: "Oswald", "Arial Narrow", sans-serif;
  --font-body: "Instrument Sans", system-ui, sans-serif;

  --gap: 6px;
  --radius-sheet: 14px;
  --radius-card: 22px;
  --radius-btn: 6px;
  --pad: clamp(16px, 2.2vw, 32px);
  --space-1: 0.5rem;
  --space-2: 1rem;
  --space-3: 1.5rem;
  --space-4: 2.5rem;
  --space-5: 4rem;
  --space-6: 7rem;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --dur: 0.6s;
}

@media (prefers-color-scheme: dark) {
  :root {
    --frame: #0b100e;
    --sheet: #141c19;
    --sheet-pale: #19241c;
    --ink: #eef0e6;
    --ink-soft: #a3ada6;
    --ink-faint: #5d6862;
    --line: rgb(238 240 230 / 0.12);
    --card: #1d2723;
    --card-back: #19221e;
    --pocket: rgb(20 28 25 / 0.6);
    --pocket-edge: rgb(255 255 255 / 0.08);
    --shadow-soft: 0 2px 16px rgb(0 0 0 / 0.35);
    --shadow-lift: 0 24px 48px -24px rgb(0 0 0 / 0.7);
  }
}

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

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--frame);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; }
img { display: block; max-width: 100%; }
::selection { background: var(--lime); color: #161f1c; }
:focus-visible { outline: 2px solid var(--lime); outline-offset: 3px; }

.frame {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--gap);
  padding: var(--gap);
  overflow-x: clip;
}

.sheet {
  background: var(--sheet);
  border-radius: var(--radius-sheet);
  padding: var(--pad);
}
.sheet--lime { background: var(--lime); color: #161f1c; }
.sheet--pale { background: var(--sheet-pale); }
.sheet--ink { background: var(--sheet-ink); color: var(--on-ink); }

.kicker {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1rem;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

/* Split-text masks (filled by app.js) */
/* bottom padding keeps descenders (g, y, p) inside the mask */
.word { display: inline-block; overflow: clip; vertical-align: top; padding-bottom: 0.22em; margin-bottom: -0.22em; }
.word > span { display: inline-block; will-change: transform; }

/* ── Buttons ────────────────────────────────────────────── */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  min-width: 15rem;
  padding: 0.85rem 1rem 0.95rem;
  border: 1px solid var(--ink);
  border-radius: var(--radius-btn);
  font-family: var(--font-display);
  font-size: clamp(1.15rem, 1.6vw, 1.6rem);
  font-weight: 500;
  line-height: 1;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  overflow: clip;
  isolation: isolate;
  transition: color 0.35s var(--ease), border-color 0.35s;
}
/* underline rule inside the box, like a form line */
.btn::after {
  content: "";
  position: absolute;
  left: 1rem;
  right: 1rem;
  bottom: 0.55rem;
  height: 1px;
  background: currentColor;
  opacity: 0.6;
}
/* fill sweep on hover */
.btn::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: var(--ink);
  transform: scaleY(0);
  transform-origin: bottom;
  transition: transform 0.45s var(--ease);
}
.btn:hover::before { transform: scaleY(1); }
.btn:hover { color: var(--sheet); }
.btn__icon { transition: transform 0.45s var(--ease); }
.btn:hover .btn__icon { transform: rotate(45deg); }

.btn--lime { background: var(--lime); color: #161f1c; border-color: #161f1c; }
.btn--lime::before { background: #161f1c; }
.btn--lime:hover { color: var(--lime); }

.btn--small { min-width: 0; font-size: 1.1rem; padding: 0.8rem 1.2rem; }
.btn--small::after { display: none; }

/* ── Hero ───────────────────────────────────────────────── */
.hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--gap);
  min-height: calc(100svh - 2 * var(--gap));
}

.hero__main { display: flex; flex-direction: column; justify-content: space-between; gap: var(--space-5); }

.hero__top { display: flex; justify-content: space-between; align-items: flex-start; gap: var(--space-2); }

.status { display: flex; align-items: center; gap: 0.75rem; }
.status__avatar {
  position: relative;
  display: grid;
  place-items: center;
  width: 2.8rem;
  height: 2.8rem;
  border-radius: 8px;
  background: #d9d9d9;
  box-shadow: inset 0 0 0 1px var(--line);
}
.status__avatar img { width: 100%; height: 100%; border-radius: inherit; object-fit: cover; }
.status__dot {
  position: absolute;
  right: -3px;
  bottom: -3px;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--lime);
  border: 2px solid var(--sheet);
  animation: pulse 2.4s var(--ease) infinite;
}
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgb(186 235 126 / 0.7); }
  50% { box-shadow: 0 0 0 6px rgb(186 235 126 / 0); }
}
.status__text { display: grid; line-height: 1.15; }
.status__text strong { font-family: var(--font-display); font-weight: 500; font-size: 1.15rem; text-transform: uppercase; }
.status__text small { color: var(--ink-soft); font-size: 0.85rem; }


.hero__title {
  max-width: 14ch;
  margin: 0;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(3.2rem, 6.4vw, 7rem);
  line-height: 0.95;
  letter-spacing: -0.015em;
  text-transform: none;
}
.hero__sub { max-width: 34rem; margin: var(--space-3) 0 0; color: var(--ink-soft); font-size: clamp(1rem, 1.2vw, 1.15rem); }
.hero__actions { display: flex; flex-wrap: wrap; gap: var(--space-1); margin-top: var(--space-4); }
.hero__actions .btn { min-width: 0; flex: 1 1 12rem; gap: 0.75rem; padding-inline: 0.9rem; font-size: clamp(0.95rem, 1.1vw, 1.3rem); white-space: nowrap; }

.hero__panel { position: relative; overflow: clip; min-height: 420px; touch-action: pan-y; }

.lang {
  position: absolute;
  top: var(--pad);
  right: var(--pad);
  z-index: 3;
  padding: 0.45rem 0.8rem;
  border: 1px solid #161f1c;
  border-radius: var(--radius-btn);
  background: transparent;
  color: #161f1c;
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 500;
  cursor: pointer;
  transition: background-color 0.3s;
}
.lang:hover { background: rgb(22 31 28 / 0.08); }
.lang [data-lang] { opacity: 0.45; transition: opacity 0.3s; }
.lang [data-lang].is-active { opacity: 1; }
.lang__sep { margin: 0 0.35em; opacity: 0.35; }

.drop {
  position: absolute;
  left: 0;
  top: 0;
  z-index: 1;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(6.5rem, 15.5vw, 18rem);
  line-height: 0.78;
  color: #161f1c;
  user-select: none;
  cursor: grab;
  will-change: transform;
  visibility: hidden;
}
.drop.is-live { visibility: visible; }
.drop--check {
  display: grid;
  place-items: center;
  width: 0.62em;
  height: 0.62em;
  border-radius: 0.1em;
  background: #161f1c;
}
.drop--check svg { width: 78%; height: 78%; }
.drop--emoji {
  font-family: "Segoe UI Emoji", "Apple Color Emoji", "Noto Color Emoji", sans-serif;
  font-weight: 400;
  font-size: clamp(3.2rem, 5.5vw, 6rem);
  line-height: 1;
}
.drop--check path { fill: none; stroke: var(--lime); stroke-width: 3.4; stroke-linecap: round; stroke-linejoin: round; }
.drop:active { cursor: grabbing; }

/* ── Stats strip ────────────────────────────────────────── */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--gap); }

.stat { display: grid; gap: var(--space-4); }
.stat__head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 0.8rem;
  border-bottom: 1px solid var(--line);
}
.stat__label { font-family: var(--font-display); font-size: 1rem; text-transform: uppercase; }
.stat__count { font-family: var(--font-display); font-size: 1rem; color: var(--ink-soft); font-variant-numeric: tabular-nums; }

.roller { position: relative; height: 2.6rem; overflow: clip; }
.roller__item {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  line-height: 1;
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 2.3vw, 2.1rem);
  font-weight: 500;
  white-space: nowrap;
}
.roller__item:not(:first-child) { opacity: 0; }

/* ── Portfolio ──────────────────────────────────────────── */
.portfolio { padding-top: var(--space-6); padding-bottom: var(--space-6); }

.portfolio__head { display: grid; justify-items: center; gap: var(--space-3); margin-bottom: var(--space-5); text-align: center; }

.comment-title {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(2.6rem, 6vw, 5rem);
  line-height: 1;
}
.comment-title [aria-hidden] { color: var(--ink-faint); }

.filters { display: flex; flex-wrap: wrap; justify-content: center; gap: var(--space-1); }
.filter {
  padding: 0.5rem 0.9rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-btn);
  background: transparent;
  color: var(--ink-soft);
  font-family: var(--font-display);
  font-size: 1.05rem;
  text-transform: uppercase;
  cursor: pointer;
  transition: color 0.3s, background-color 0.3s, border-color 0.3s;
}
.filter sup { margin-left: 0.25em; font-size: 0.65em; font-variant-numeric: tabular-nums; }
.filter:hover { color: var(--ink); border-color: var(--ink); }
.filter[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: var(--sheet); }

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: var(--space-4) var(--space-3);
  max-width: 1320px;
  margin: 0 auto;
  padding: 0;
  list-style: none;
}
.cards > li[hidden] { display: none; }

/* Card = a white card tucked into a frosted pocket. Hover pulls it out. */
.card {
  --lift: 0px;
  position: relative;
  display: block;
  height: 380px;
  text-decoration: none;
  color: var(--ink);
}
.card__back,
.card__pocket {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 150px;
  border-radius: 6px 6px var(--radius-card) var(--radius-card);
}
.card__back { background: var(--card-back); }
.card__pocket {
  z-index: 2;
  background: var(--pocket);
  border-top: 1px solid var(--pocket-edge);
  box-shadow: var(--shadow-soft);
  -webkit-backdrop-filter: blur(7px) saturate(1.2);
  backdrop-filter: blur(7px) saturate(1.2);
}

.card__inner {
  position: absolute;
  left: 9%;
  right: 9%;
  top: 34px;
  height: 300px;
  z-index: 1;
  border-radius: var(--radius-card);
  background: linear-gradient(180deg, var(--brand), color-mix(in srgb, var(--brand) 45%, white));
  box-shadow: var(--shadow-soft);
  transform: translateY(var(--lift));
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.card__body {
  position: absolute;
  inset: 84px 0 0;
  border-radius: var(--radius-card) var(--radius-card) var(--radius-card) var(--radius-card);
  background: var(--card);
}

/* The website screenshot is the card's hero image. */
.card__art { position: absolute; left: 10%; right: 10%; top: 16px; z-index: 1; height: 124px; }
.card__shot {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top left;
  border-radius: 14px;
  border: 4px solid var(--card);
  background: var(--card);
  box-shadow: 0 8px 22px rgb(0 0 0 / 0.2);
  transform: rotate(-4deg);
  transition: transform var(--dur) var(--ease);
}

.card__name {
  position: absolute;
  left: 1.25rem;
  right: 1.25rem;
  top: 156px;
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.5rem;
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.01em;
}
.card__desc {
  position: absolute;
  left: 1.25rem;
  right: 1.25rem;
  top: 192px;
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.92rem;
  line-height: 1.4;
}

.card__role {
  position: absolute;
  left: 1.1rem;
  bottom: 1.1rem;
  z-index: 3;
  padding: 0.45rem 0.85rem;
  border-radius: 999px;
  background: var(--card);
  box-shadow: var(--shadow-soft);
  color: var(--ink-faint);
  font-size: 0.85rem;
  font-weight: 500;
}
.card__btn {
  position: absolute;
  right: 1.1rem;
  bottom: 1.1rem;
  z-index: 3;
  display: grid;
  place-items: center;
  width: 2.8rem;
  height: 2.8rem;
  border-radius: 50%;
  background: var(--card);
  box-shadow: var(--shadow-soft);
  font-size: 1.2rem;
  transition: transform var(--dur) var(--ease), background-color 0.3s, color 0.3s;
}

.card:hover, .card:focus-visible { --lift: -66px; }
.card:hover .card__inner { box-shadow: var(--shadow-lift); }
.card:hover .card__shot { transform: rotate(0deg) scale(1.06); }
.card:hover .card__btn { transform: rotate(45deg); background: var(--ink); color: var(--sheet); }

@media (hover: none) {
  .card { --lift: -66px; }
}

/* ── Services ───────────────────────────────────────────── */
.services { display: grid; gap: var(--gap); }
.services__intro { padding-top: var(--space-5); padding-bottom: var(--space-5); }
.services__title {
  max-width: 16ch;
  margin: var(--space-2) 0 0;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(2.6rem, 5.6vw, 5.6rem);
  line-height: 0.98;
}

.services__list { display: grid; gap: var(--gap); margin: 0; padding: 0; list-style: none; }

.service {
  position: relative;
  display: grid;
  grid-template-columns: 6rem minmax(0, 1fr) minmax(0, 26rem);
  align-items: center;
  gap: var(--space-3);
  padding-top: var(--space-4);
  padding-bottom: var(--space-4);
  overflow: clip;
  isolation: isolate;
}
.service::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: var(--lime);
  transform: scaleY(0);
  transform-origin: bottom;
  transition: transform 0.55s var(--ease);
}
.service:hover::before { transform: scaleY(1); }
.service:hover { color: #161f1c; }
.service:hover .service__body { color: #2f3a35; }

.service__num { font-family: var(--font-display); font-size: clamp(2.4rem, 4vw, 3.6rem); font-weight: 600; line-height: 1; }
.service__title { margin: 0; font-family: var(--font-display); font-size: clamp(1.8rem, 3vw, 2.8rem); font-weight: 600; line-height: 1.02; }
.service__body { margin: 0; color: var(--ink-soft); transition: color 0.3s; }

/* ── Deal: check, code or both ──────────────────────────── */
.deal { display: grid; gap: var(--gap); }
.deal__intro { padding-top: var(--space-5); padding-bottom: var(--space-5); }
.deal__title {
  max-width: 14ch;
  margin: var(--space-2) 0 0;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(2.6rem, 5.6vw, 5.6rem);
  line-height: 0.98;
}
.deal__lede { max-width: 38rem; margin: var(--space-3) 0 0; color: var(--ink-soft); font-size: clamp(1rem, 1.25vw, 1.2rem); }

.deal__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--gap); }

.deal-card {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  min-height: 27rem;
  padding-top: var(--space-4);
  padding-bottom: var(--space-4);
}
.deal-card--lime { background: var(--lime); color: #161f1c; }
.deal-card--lime .deal-card__body { color: #2f3a35; }
.deal-card--lime .deal-card__points { border-color: rgb(22 31 28 / 0.2); }

.deal-card__tag { margin: 0; font-family: var(--font-display); font-size: 1rem; text-transform: uppercase; letter-spacing: 0.02em; }
.deal-card__title { margin: 0; font-family: var(--font-display); font-weight: 600; font-size: clamp(2rem, 2.8vw, 2.9rem); line-height: 1; }
.deal-card__body { margin: 0; color: var(--ink-soft); }
.deal-card__points {
  display: grid;
  gap: 0.6rem;
  margin: auto 0 0;
  padding: var(--space-3) 0 0;
  list-style: none;
  border-top: 1px solid var(--line);
}
.deal-card__points li { display: flex; align-items: center; gap: 0.6rem; }
/* small check stamp, same mark as the hero */
.deal-card__points li::before {
  content: "";
  flex: none;
  width: 1.15rem;
  height: 1.15rem;
  border-radius: 4px;
  background: #161f1c 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.5 7.5' fill='none' stroke='%23baeb7e' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 80% no-repeat;
}

.deal__steps { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: var(--space-4); }
.steps { display: flex; flex-wrap: wrap; gap: var(--space-2) var(--space-4); margin: 0; padding: 0; list-style: none; }
.step { display: flex; align-items: baseline; gap: 0.6rem; }
.step__num { font-family: var(--font-display); font-size: 1.6rem; font-weight: 600; }
.step__text { font-size: 1.05rem; }
.deal__steps .btn { min-width: 0; }

/* ── Business owners: automate, audit, build, AEO ───────── */
.biz { display: grid; gap: var(--space-5); padding-top: var(--space-6); padding-bottom: var(--space-6); }
.biz__head { display: grid; gap: var(--space-2); }
.biz .kicker { color: var(--lime); }
.biz__title {
  max-width: 16ch;
  margin: 0;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(2.6rem, 5.6vw, 5.6rem);
  line-height: 0.98;
}
.biz__lede { max-width: 40rem; margin: var(--space-1) 0 0; color: var(--on-ink-soft); font-size: clamp(1rem, 1.25vw, 1.2rem); }

.biz__grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--space-4) var(--space-3); margin: 0; padding: 0; list-style: none; }
.biz-item { position: relative; display: grid; align-content: start; gap: 0.75rem; padding-top: var(--space-3); border-top: 1px solid rgb(238 240 230 / 0.16); }
/* lime rule sweeps across the top on hover */
.biz-item::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: -1px;
  height: 2px;
  background: var(--lime);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.6s var(--ease);
}
.biz-item:hover::before { transform: scaleX(1); }
.biz-item__num { font-family: var(--font-display); font-size: 1rem; color: var(--lime); }
.biz-item__title { margin: 0; font-family: var(--font-display); font-weight: 600; font-size: clamp(1.7rem, 2.2vw, 2.3rem); line-height: 1.02; }
.biz-item__body { margin: 0; color: var(--on-ink-soft); }
.biz .btn { justify-self: start; min-width: 0; }

/* ── CTA ────────────────────────────────────────────────── */
.cta { display: grid; justify-items: center; gap: var(--space-4); padding-top: var(--space-6); padding-bottom: var(--space-5); text-align: center; }

.cta__title {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(3rem, 7vw, 7.5rem);
  line-height: 0.95;
  letter-spacing: -0.01em;
}
/* Rotating word sits on its own line; the slot clips it as it swaps. */
.cta__tail { display: flex; justify-content: center; align-items: baseline; gap: 0.3em; }
.cta__arrow { display: inline-block; font-weight: 400; }
.cta__slot { display: inline-block; overflow: clip; padding-bottom: 0.2em; margin-bottom: -0.2em; }
.cta__word { display: inline-block; }

.cta__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: var(--space-2); }
.cta__bio { margin: var(--space-3) 0 0; display: grid; gap: 0.15rem; font-size: 1.1rem; }

.footer {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--space-2);
  padding: var(--space-2) var(--pad) var(--space-3);
  color: #8d978f;
  font-size: 0.85rem;
}

/* ── Small screens ──────────────────────────────────────── */
@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; min-height: 0; }
  .hero__main { min-height: 78svh; }
  .hero__panel { min-height: 46svh; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .service { grid-template-columns: 4rem minmax(0, 1fr); }
  .service__body { grid-column: 2; }
  .deal__grid { grid-template-columns: 1fr; }
  .biz__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .deal-card { min-height: 0; }
  .deal__steps { grid-template-columns: 1fr; gap: var(--space-3); }
  .steps { flex-direction: column; }
}

@media (max-width: 520px) {
  .btn { min-width: 0; width: 100%; }
  .btn--small { width: auto; }
  .stats { grid-template-columns: 1fr 1fr; }
  .stat { gap: var(--space-3); }
  .roller__item { font-size: 1.2rem; }
  .service { grid-template-columns: 1fr; gap: var(--space-1); }
  .service__body { grid-column: auto; }
  .biz__grid { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 0s !important; animation: none !important; }
}
