/* ============================================================
   Freelance landing — sections below the hero.
   Builds on the tokens in styles.css (dark theme).
   ============================================================ */

:root {
  --shadow-ring: 0 0 0 1px oklch(1 0 0 / 0.08);
  --shadow-ring-hover: 0 0 0 1px oklch(1 0 0 / 0.16);
  --image-outline: oklch(1 0 0 / 0.1);
  --muted-3: #a3a3a3; /* 7:1 on --bg */
}

h1, h2, h3 { text-wrap: balance; }
p, li, dd, blockquote { text-wrap: pretty; }

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

/* ---------------- buttons ---------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding-inline: 24px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-weight: 600;
  font-size: 15px;
  white-space: nowrap;
  transition: transform 150ms ease-out, background-color 150ms ease-out, box-shadow 150ms ease-out;
  -webkit-tap-highlight-color: transparent;
}

.btn:active { transform: scale(0.97); }

.btn--accent { background: var(--accent); color: #fff; }
.btn--ghost { box-shadow: var(--shadow-ring); color: var(--fg); }

@media (hover: hover) {
  .btn--accent:hover { background: color-mix(in oklch, var(--accent) 88%, white); }
  .btn--ghost:hover { box-shadow: var(--shadow-ring-hover); background: var(--card-bg); }
}

/* ---------------- hero (offer over the photo) ---------------- */

.hero {
  min-height: 100vh;
  min-height: 100svh;
}

/* Photo pinned behind everything in the hero, filling it edge to edge */
.hero__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Darker towards the bottom so the offer reads over the photo */
.hero__scrim {
  background: linear-gradient(180deg, rgb(0 0 0 / 0.4) 0%, rgb(0 0 0 / 0) 28%, rgb(0 0 0 / 0.25) 55%, rgb(14 17 20 / 0.92) 100%);
}

.hero__content {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 1512px;
  margin: auto auto 0;
  padding: 96px var(--pad) 48px;
}

@media (min-width: 810px) {
  .hero__content { padding-bottom: 64px; }
}

.hero__headline {
  max-width: 18ch;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(40px, 6.4vw, 96px);
  line-height: 1;
  letter-spacing: -0.035em;
}

.hero__offer-row {
  display: grid;
  gap: 28px;
  margin-top: 28px;
}

@media (min-width: 1000px) {
  .hero__offer-row {
    grid-template-columns: minmax(0, 36em) auto;
    justify-content: space-between;
    align-items: end;
  }
}

.hero__offer-lede {
  font-size: clamp(17px, 1.7vw, 20px);
  line-height: 1.5;
  color: rgb(255 255 255 / 0.82);
}

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

.hero__offer-actions .btn--ghost {
  background: rgb(14 17 20 / 0.4);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}

.hero__offer-avail {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
  font-size: 14px;
  color: rgb(255 255 255 / 0.78);
}

.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #3ddc84;
  box-shadow: 0 0 0 3px rgb(61 220 132 / 0.2);
}

/* ---------------- clients ---------------- */

.clients {
  padding-block: 56px 8px;
}

.clients__label {
  font-size: 14px;
  color: var(--muted-3);
  margin-bottom: 16px;
}

.clients__list {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 36px;
  margin: 0;
  padding: 24px 0 0;
  list-style: none;
  border-top: 1px solid var(--border);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(18px, 2vw, 24px);
  letter-spacing: -0.01em;
  color: var(--muted-2);
}

/* ---------------- why ---------------- */

.section__sub {
  max-width: 36em;
  margin: -24px 0 40px;
  font-size: 18px;
  color: var(--muted-2);
}

.why {
  display: grid;
  gap: 16px;
}

@media (min-width: 700px) {
  .why { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1200px) {
  .why { grid-template-columns: repeat(4, 1fr); }
}

.why__item {
  padding: 28px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  background: var(--card-bg);
  box-shadow: var(--shadow-ring);
}

.why__num {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 28px;
  letter-spacing: -0.02em;
  color: var(--accent);
  margin-bottom: 20px;
}

.why__item h3 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 20px;
  margin-bottom: 8px;
}

.why__item p:last-child {
  color: var(--muted-2);
  line-height: 1.55;
}

/* ---------------- case studies ---------------- */

.case {
  display: grid;
  gap: 32px;
  padding-block: 48px;
  border-top: 1px solid var(--border);
}

.case:first-of-type { padding-top: 0; border-top: 0; }

@media (min-width: 1100px) {
  .case {
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    gap: 56px;
    align-items: start;
  }
  .case__text { position: sticky; top: 32px; }
}

.case__meta {
  font-size: 14px;
  color: var(--muted-3);
  margin-bottom: 12px;
}

.case__title {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(28px, 3vw, 38px);
  line-height: 1.1;
  letter-spacing: -0.025em;
}

.case__grid {
  display: grid;
  gap: 20px;
  margin: 28px 0 0;
}

.case__grid dt {
  font-weight: 600;
  font-size: 15px;
  margin-bottom: 4px;
}

.case__grid dd {
  margin: 0;
  color: var(--muted-2);
  line-height: 1.55;
}

.case__link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  margin-top: 20px;
  font-weight: 600;
  border-bottom: 1px solid transparent;
  transition: border-color 150ms ease-out;
}

@media (hover: hover) {
  .case__link:hover { border-bottom-color: currentColor; }
}

.case__quote {
  margin: 28px 0 0;
  padding: 20px 22px;
  border-radius: var(--radius-sm);
  background: var(--card-bg);
  box-shadow: var(--shadow-ring);
}

.case__quote blockquote {
  margin: 0;
  font-size: 16px;
  line-height: 1.55;
}

.case__quote figcaption {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 14px;
  font-size: 14px;
  color: var(--muted-3);
}

.case__quote img {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  outline: 1px solid var(--image-outline);
  outline-offset: -1px;
}

/* Images are shown whole: natural aspect ratio, never cropped. */
.case__media {
  display: grid;
  gap: 16px;
}

.case__wide {
  width: 100%;
  height: auto;
}

.case__video {
  display: block;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius-sm);
  background: var(--card-bg);
}

.case__phones {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.case__phones img {
  width: 100%;
  height: auto;
}

.case__phones--solo {
  gap: 16px;
}

@media (max-width: 560px) {
  .case__phones { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* ---------------- packages ---------------- */

.packages {
  display: grid;
  gap: 16px;
}

@media (min-width: 1000px) {
  .packages { grid-template-columns: repeat(3, 1fr); }
}

.pkg {
  display: flex;
  flex-direction: column;
  padding: 32px 28px 28px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  background: var(--card-bg);
  box-shadow: var(--shadow-ring);
}


.pkg__name {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 22px;
}

.pkg__price {
  margin-top: 16px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 34px;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
}

.pkg__time {
  font-size: 14px;
  color: var(--muted-3);
}

.pkg__desc {
  margin-top: 20px;
  color: var(--muted-2);
  line-height: 1.55;
}

.pkg__list {
  display: grid;
  gap: 10px;
  margin: 20px 0 28px;
  padding: 20px 0 0;
  list-style: none;
  border-top: 1px solid var(--border);
  font-size: 15px;
}

.pkg__list li {
  position: relative;
  padding-left: 26px;
}

.pkg__list li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 0.35em;
  width: 12px;
  height: 7px;
  border-left: 1.5px solid var(--accent);
  border-bottom: 1.5px solid var(--accent);
  transform: rotate(-45deg);
}

.pkg__cta { margin-top: auto; align-self: stretch; }

/* ---------------- process ---------------- */

.steps {
  display: grid;
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
}

@media (min-width: 700px) {
  .steps { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1200px) {
  .steps { grid-template-columns: repeat(4, 1fr); }
}

.steps li {
  padding-top: 20px;
  border-top: 1px solid var(--border);
}

.steps__when {
  display: block;
  margin-bottom: 14px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 15px;
  color: var(--accent);
  font-variant-numeric: tabular-nums;
}

.steps h3 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 20px;
  margin-bottom: 8px;
}

.steps p { color: var(--muted-2); line-height: 1.55; }

/* ---------------- lead form ---------------- */

.lead {
  display: grid;
  gap: 48px;
}

@media (min-width: 1000px) {
  .lead { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 64px; }
}

.lead__intro .section__head { margin-bottom: 20px; }

.lead__text {
  font-size: 18px;
  color: var(--muted-2);
  line-height: 1.55;
  max-width: 30em;
}

.lead__points {
  display: grid;
  gap: 10px;
  margin: 28px 0;
  padding: 0;
  list-style: none;
}

.lead__points li {
  position: relative;
  padding-left: 26px;
}

.lead__points li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 0.4em;
  width: 12px;
  height: 7px;
  border-left: 1.5px solid #3ddc84;
  border-bottom: 1.5px solid #3ddc84;
  transform: rotate(-45deg);
}

.lead__alt { color: var(--muted-3); font-size: 15px; }
.lead__alt a { color: var(--fg); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }

.lead__form {
  max-width: none;
  padding: 28px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  background: var(--card-bg);
  box-shadow: var(--shadow-ring);
}

@media (min-width: 810px) {
  .lead__form { padding: 36px; }
}

.form__row {
  display: grid;
  gap: 20px;
}

@media (min-width: 640px) {
  .form__row { grid-template-columns: 1fr 1fr; }
}

.field select {
  appearance: none;
  background: transparent url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none'%3E%3Cpath d='M1 1.5 6 6.5l5-5' stroke='%23999' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat right 4px center;
  border: none;
  border-bottom: 1px solid var(--border);
  padding: 8px 24px 8px 4px;
  color: var(--fg);
  font: inherit;
  font-size: 16px;
  outline: none;
}

.field select:focus { border-color: var(--fg); }
.field select option { background: var(--bg); color: var(--fg); }

.field input,
.field select,
.field textarea { border-bottom-color: rgb(255 255 255 / 0.32); } /* 3:1 boundary */

.field--chips {
  margin: 0;
  padding: 0;
  border: 0;
  min-width: 0;
}

.field--chips legend {
  padding: 0;
  margin-bottom: 10px;
  font-size: 16px;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.chip { position: relative; }

.chip input {
  position: absolute;
  opacity: 0;
  inset: 0;
  margin: 0;
  cursor: pointer;
}

.chip span {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding-inline: 16px;
  border: 1px solid rgb(255 255 255 / 0.32);
  border-radius: 999px;
  font-size: 15px;
  transition: background-color 150ms ease-out, border-color 150ms ease-out, color 150ms ease-out;
}

.chip input:checked + span {
  background: var(--fg);
  border-color: var(--fg);
  color: var(--bg);
}

.chip input:focus-visible + span {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

@media (hover: hover) {
  .chip input:not(:checked):hover + span { border-color: var(--fg); }
}

.lead__form .form__submit {
  min-height: 48px;
  padding-inline: 28px;
  font-size: 15px;
  background: var(--accent);
  color: #fff;
}

/* ---------------- final CTA ---------------- */

.final {
  display: grid;
  justify-items: start;
  gap: 32px;
  padding-block: 80px 40px;
}

.final__title {
  max-width: 16ch;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(34px, 5vw, 64px);
  line-height: 1.05;
  letter-spacing: -0.03em;
}

/* ---------------- sticky CTA ---------------- */

.sticky-cta {
  position: fixed;
  right: 16px;
  bottom: 16px;
  z-index: 40;
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  padding-inline: 22px;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  font-weight: 600;
  font-size: 15px;
  box-shadow: 0 12px 32px -8px rgb(0 0 0 / 0.5);
  opacity: 0;
  transform: translateY(12px);
  pointer-events: none;
  transition: opacity 200ms ease-out, transform 200ms ease-out;
  -webkit-tap-highlight-color: transparent;
}

.sticky-cta.is-visible {
  opacity: 1;
  transform: none;
  pointer-events: auto;
}

@media (min-width: 810px) {
  .sticky-cta { right: 32px; bottom: 32px; }
}

/* ---------------- show images whole (override styles.css crops) ---------------- */

.project__row { align-items: flex-start; }

.project__row img,
.project__row--wide img {
  aspect-ratio: auto;
  height: auto;
  object-fit: contain;
}

.about__imgs {
  grid-template-columns: 1fr;
  align-items: start;
}

@media (min-width: 700px) {
  .about__imgs { grid-template-columns: 1fr 1fr; }
}

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

/* keep the sticky CTA clear of the cookie banner on small screens */
@media (max-width: 700px) {
  body:has(.cookie:not([hidden])) .sticky-cta { opacity: 0; pointer-events: none; }
}


/* ---------------- testimonials (card grid) ---------------- */

.tquotes {
  display: grid;
  gap: 16px;
}

@media (min-width: 810px) {
  .tquotes { grid-template-columns: repeat(2, 1fr); }
}

.tq {
  display: grid;
  align-content: space-between;
  gap: 32px;
  margin: 0;
  padding: 32px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  background: var(--card-bg);
  box-shadow: var(--shadow-ring);
}

@media (min-width: 810px) {
  .tq { padding: 40px; }
}

.tq blockquote {
  margin: 0;
  font-size: clamp(17px, 1.5vw, 20px);
  line-height: 1.55;
  color: var(--fg);
}

.tq figcaption {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 15px;
  color: var(--muted-3);
}

.tq figcaption img {
  flex: none;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
  outline: 1px solid var(--image-outline);
  outline-offset: -1px;
}

.tq figcaption strong {
  display: block;
  font-weight: 500;
  color: var(--fg);
}

/* ---------------- about (portrait + text) ---------------- */

.bio {
  display: grid;
  gap: 32px;
}

@media (min-width: 900px) {
  .bio { grid-template-columns: minmax(280px, 400px) 1fr; gap: 72px; align-items: start; }
}

.bio__photo {
  width: 100%;
  max-width: 400px;
  height: auto;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: var(--radius);
  outline: 1px solid var(--image-outline);
  outline-offset: -1px;
}

.bio__text {
  display: grid;
  gap: 24px;
  max-width: 40em;
  font-size: clamp(17px, 1.6vw, 20px);
  line-height: 1.6;
  color: var(--muted-2);
}

.bio__text p:first-child { color: var(--fg); }

/* Inline Y Combinator mark in the hero intro */
.yc {
  display: inline-block;
  width: 1.15em;
  height: 1.15em;
  margin-inline: 0.1em;
  vertical-align: -0.2em;
}

.yc svg { display: block; width: 100%; height: 100%; }

.pkg__slots {
  margin-top: 6px;
  font-size: 14px;
  font-weight: 500;
  color: var(--fg);
}

.hero__offer-link {
  color: var(--fg);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  white-space: nowrap;
}

/* ---------------- hero nav ---------------- */

.hero__top { align-items: center; }

.hero__nav {
  display: flex;
  align-items: center;
  gap: 4px;
}

.hero__nav-link {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding-inline: 12px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 500;
  color: rgb(255 255 255 / 0.82);
  transition: color 150ms ease-out, background-color 150ms ease-out;
}

@media (hover: hover) {
  .hero__nav-link:hover { color: #fff; background: rgb(255 255 255 / 0.08); }
}

.hero__nav-cta {
  min-height: 40px;
  margin-left: 8px;
  padding-inline: 18px;
  font-size: 14px;
}

@media (max-width: 720px) {
  .hero__nav-link { display: none; }
  .hero__top { flex-wrap: nowrap; }
}

/* ---------------- stats ---------------- */

.stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 40px 24px;
  padding-block: 72px 0;
}

@media (min-width: 900px) {
  .stats { grid-template-columns: repeat(4, minmax(0, 1fr)); padding-top: 100px; }
}

.stat__value {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(40px, 5vw, 68px);
  line-height: 1;
  letter-spacing: -0.035em;
  font-variant-numeric: tabular-nums;
}

.stat__label {
  max-width: 20em;
  margin-top: 14px;
  font-size: 16px;
  line-height: 1.5;
  color: var(--muted-2);
}

/* ---------------- booking (Cal.com inline) ---------------- */

.book .section__head { margin-bottom: 16px; }

.book .lead__text { max-width: 40em; }

.book__cal {
  width: 100%;
  overflow: auto;
}

.lead--secondary {
  margin-top: 96px;
  padding-top: 56px;
  border-top: 1px solid var(--border);
}

.lead__title {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(28px, 3vw, 36px);
  letter-spacing: -0.02em;
  margin-bottom: 16px;
}

.book__alt { margin-top: 14px; font-size: 14px; color: var(--muted-3); }
.book__alt a { color: var(--fg); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }

/* ---------------- client logos ---------------- */

.clients__logos {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 32px 56px;
  margin: 0;
  padding: 28px 0 0;
  list-style: none;
  border-top: 1px solid var(--border);
}

/* One monochrome treatment so every logo reads on the dark page */
.clients__logos img {
  display: block;
  width: auto;
  max-width: none;
  filter: brightness(0) invert(1);
  opacity: 0.72;
}

@media (max-width: 640px) {
  .clients__logos { gap: 24px 36px; }
  .clients__logos img { transform: scale(0.85); transform-origin: left center; }
}

.clients__more {
  margin-top: 24px;
  font-size: 15px;
  color: var(--muted-3);
}

/* Logos that already ship as a white version keep their own two tones */
.clients__logos img.is-mono { filter: none; }

.tq__stars {
  display: flex;
  gap: 6px;
  margin-bottom: -8px;
  color: #f6c95c;
}

.tq__stars svg {
  width: 22px;
  height: 22px;
  fill: currentColor;
}

/* Stars and quote stay together at the top; the name sits at the bottom */
.tq {
  align-content: stretch;
  grid-template-rows: auto 1fr auto;
}

/* Even logo grid: 2 per row on phones, 3 on tablets, 6 on desktop */
.clients__logos {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 36px 24px;
}

.clients__logos li {
  display: flex;
  align-items: center;
  min-height: 48px;
}

@media (min-width: 700px) {
  .clients__logos { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (min-width: 1100px) {
  .clients__logos { grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 44px 32px; }
}

@media (max-width: 640px) {
  .clients__logos img { transform: none; }
}

/* Calendar in the right column, where the form used to be */
@media (min-width: 1000px) {
  .lead { grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); }
}

/* Longer, pain-led section heading */
#why-title { max-width: 20ch; }

/* ---------------- centred hero + logo marquee ---------------- */

/* Even darkening so centred text reads over the photo */
.hero__scrim {
  background:
    linear-gradient(180deg, rgb(0 0 0 / 0.35) 0%, rgb(0 0 0 / 0.15) 30%, rgb(0 0 0 / 0.35) 65%, rgb(14 17 20 / 0.95) 100%),
    rgb(0 0 0 / 0.25);
}

.hero__content {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  margin: auto;
  padding: 72px var(--pad) 40px;
}

.hero__headline {
  max-width: 14ch;
  margin-inline: auto;
}

.hero__offer-lede {
  max-width: 34em;
  margin-top: 24px;
}

.hero__offer-actions {
  justify-content: center;
  margin-top: 32px;
}

.hero__offer-avail { margin-bottom: 20px; }

.hero__logos {
  position: relative;
  z-index: 2;
  width: 100%;
  padding-bottom: 40px;
}

.hero__logos-label {
  margin-bottom: 20px;
  text-align: center;
  font-size: 14px;
  color: rgb(255 255 255 / 0.7);
}

.marquee {
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}

.marquee__track {
  display: flex;
  width: max-content;
  animation: marquee 40s linear infinite;
}

.marquee__set {
  display: flex;
  align-items: center;
  gap: 56px;
  margin: 0;
  padding: 0 28px;
  list-style: none;
}

.marquee__set li { display: flex; align-items: center; flex: none; }

.marquee__set img {
  display: block;
  max-width: none;
  filter: brightness(0) invert(1);
  opacity: 0.72;
}

.marquee__set img.is-mono { filter: none; }

@media (hover: hover) {
  .marquee:hover .marquee__track { animation-play-state: paused; }
}

@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* No motion: show one static, wrapped set instead */
@media (prefers-reduced-motion: reduce) {
  .marquee { -webkit-mask-image: none; mask-image: none; }
  .marquee__track { animation: none; width: auto; justify-content: center; }
  .marquee__set { flex-wrap: wrap; justify-content: center; gap: 28px 40px; }
  .marquee__set[aria-hidden="true"] { display: none; }
}

@media (max-width: 640px) {
  .marquee__set { gap: 40px; padding: 0 20px; }
}

/* ---------------- intro video on the portrait ---------------- */

.bio__media {
  position: relative;
  width: 100%;
  max-width: 400px;
  aspect-ratio: 4 / 5;
  border-radius: var(--radius);
  overflow: hidden;
  outline: 1px solid var(--image-outline);
  outline-offset: -1px;
}

.bio__media .bio__photo {
  width: 100%;
  height: 100%;
  max-width: none;
  aspect-ratio: auto;
  object-fit: cover;
  border-radius: 0;
  outline: 0;
}

.bio__play {
  position: absolute;
  left: 16px;
  bottom: 16px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 6px 18px 6px 6px;
  border: 1px solid transparent;
  border-radius: 999px;
  background: rgb(14 17 20 / 0.55);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  box-shadow: 0 0 0 1px rgb(255 255 255 / 0.14);
  color: #fff;
  font-size: 15px;
  font-weight: 600;
  transition: background-color 150ms ease-out, transform 150ms ease-out;
  -webkit-tap-highlight-color: transparent;
}

.bio__play:active { transform: scale(0.97); }

@media (hover: hover) {
  .bio__play:hover { background: rgb(14 17 20 / 0.75); }
}

.bio__play-icon {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--accent);
}

.bio__play-icon svg {
  width: 14px;
  height: 14px;
  fill: #fff;
  transform: translateX(1px); /* optical centre of the triangle */
}

.bio__video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: #000;
}

.bio__media.is-playing .bio__play { display: none; }

/* Readable captions on the intro video */
.bio__video::cue {
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.4;
  color: #fff;
  background: rgb(0 0 0 / 0.72);
}

/* ---------------- see all work link ---------------- */

.fcards__all {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  margin-top: 48px;
  font-weight: 600;
}

.fcards__all svg { width: 16px; height: 16px; transition: transform 150ms ease-out; }

@media (hover: hover) {
  .fcards__all:hover svg { transform: translateX(3px); }
}

/* ---------------- home: featured work (senior layout) ---------------- */

.feat-list { display: grid; gap: 120px; }

.feat { display: grid; gap: 32px; }

.feat__media { display: block; }

/* Screens on a tinted panel, never cropped */
.feat__panel {
  padding: clamp(20px, 3.4vw, 48px);
  border-radius: 28px;
  outline: 1px solid var(--image-outline);
  outline-offset: -1px;
}

.feat__panel--camomila { background: oklch(0.26 0.03 125); }
.feat__panel--enel { background: oklch(0.26 0.03 255); }
.feat__panel--outoo { background: oklch(0.26 0.03 160); }

.feat__compo { display: grid; gap: 24px; align-items: center; }

@media (min-width: 900px) {
  .feat__compo { grid-template-columns: minmax(0, 1fr) 32%; gap: 32px; }
}

.feat__screen {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 14px 32px -14px oklch(0 0 0 / 0.6);
}

video.feat__screen { aspect-ratio: 16 / 9; }

.feat__phones-side { display: none; gap: 16px; }

@media (min-width: 900px) {
  .feat__phones-side { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: center; }
}

.feat__phones {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  align-items: start;
  max-width: 980px;
  margin-inline: auto;
}

@media (min-width: 720px) {
  .feat__phones { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(16px, 2.4vw, 32px); }
  .feat__phones > :nth-child(even) { margin-top: 48px; }
}

/* fewer screens on small phones: omit, never crop */
@media (max-width: 719px) {
  .feat__phones > :nth-child(n+3) { display: none; }
}

.feat__phones img,
.feat__phones-side img {
  width: 100%;
  height: auto;
  border-radius: 5% / 2.3%;
  box-shadow: 0 14px 32px -14px oklch(0 0 0 / 0.6);
}

.feat__head { display: grid; gap: 20px; }

@media (min-width: 900px) {
  .feat__head { grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 64px; align-items: end; }
}

.feat__label {
  font-size: 16px;
  font-weight: 500;
  color: var(--muted-3);
}

.feat__label strong { color: var(--fg); font-weight: 600; }

.feat__name {
  max-width: 16ch;
  margin-top: 8px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(32px, 5vw, 56px);
  line-height: 1.04;
  letter-spacing: -0.04em;
}

.feat__side { display: grid; gap: 20px; }

.feat__result {
  font-size: clamp(18px, 1.9vw, 22px);
  line-height: 1.4;
  letter-spacing: -0.01em;
  color: var(--fg);
}

.feat__result span { color: var(--muted-2); }

.tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }

.tag {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding-inline: 12px;
  border: 1px solid transparent;
  border-radius: 999px;
  background: var(--card-bg);
  box-shadow: var(--shadow-ring);
  font-size: 13px;
  line-height: 1;
  color: var(--muted-2);
  white-space: nowrap;
}

.feat__more {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  font-weight: 600;
}

.feat__more svg { width: 16px; height: 16px; transition: transform 150ms ease-out; }

@media (hover: hover) {
  .feat__media:hover + .feat__head .feat__more svg,
  .feat__more:hover svg { transform: translateX(3px); }
}

/* ---------------- work page ---------------- */

.wk-cases { padding-top: 56px; }
.wk-more { padding-top: 40px; }

/* Two packages side by side */
@media (min-width: 900px) {
  .packages { grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: 1000px; }
}

/* ---------------- quote page ---------------- */

.qt-main { padding-top: 64px; }

@media (min-width: 1000px) {
  .qt-main .lead { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); align-items: start; }
  .qt-main .lead__form { position: sticky; top: 24px; }
}

.qt-h {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 24px;
  letter-spacing: -0.02em;
  margin-bottom: 24px;
}

.qt-steps {
  display: grid;
  gap: 20px;
  margin: 0 0 36px;
  padding: 0;
  list-style: none;
}

.qt-steps li { display: grid; grid-template-columns: 32px 1fr; gap: 14px; }

.qt-steps li > span {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--card-bg);
  box-shadow: var(--shadow-ring);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 14px;
  font-variant-numeric: tabular-nums;
}

.qt-steps strong { display: block; font-weight: 600; margin-bottom: 2px; }
.qt-steps p { color: var(--muted-2); line-height: 1.5; }

.qt-quote { margin-top: 36px; }

.qt-alt { margin-top: 4px; font-size: 14px; color: var(--muted-3); }
.qt-alt a { color: var(--fg); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }

/* No borders on card-like containers: they read by their fill alone */
.why__item,
.case__quote,
.pkg,
.lead__form,
.tq,
.feat__panel,
.tag {
  box-shadow: none;
  outline: none;
}

/* Section titles: tight 98% line height */
.section__head { line-height: 0.98; }

/* Display headlines: same 98% line height as section titles */
.hero__headline,
.final__title,
.cs-title { line-height: 0.98; }
