/* Dariia — portfolio. Tokens taken from the Figma file (Portfolio / Colors, Portfolio/Type). */
@font-face { font-family: "Inter"; font-style: normal; font-weight: 400; font-display: swap; src: url("fonts/inter-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 500; font-display: swap; src: url("fonts/inter-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 600; font-display: swap; src: url("fonts/inter-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 700; font-display: swap; src: url("fonts/inter-latin-700-normal.woff2") format("woff2"); }
:root {
  color-scheme: light;
  --text: #0e0f0c;
  --text-ink: #09090b;
  --text-2: #72726e;
  --text-3: #9e9e99;
  --text-strong: #4e4d4b;
  --text-role: #56565e;
  --text-faq: #5e5e66;
  --surface: #f7f7f2;
  --surface-strong: #eaebe5;
  --border: #d5d5d2;
  --green: #5b6f00;
  --green-dot: #788c15;
  --dark: #292929;
  --on-dark-muted: #acada8;
  --page-pad: clamp(40px, calc((100vw - 1200px) / 2), 120px);
  --case-pad: max(32px, calc((100vw - 960px) / 2));
  --section-y: 50px;
  --radius: 24px;
  --font: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 68px; }
body {
  margin: 0;
  background: #fff;
  color: var(--text);
  font-family: var(--font);
  font-size: 18px;
  line-height: 28px;
  letter-spacing: -0.02em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
h1, h2, h3, p, ul, ol, figure, blockquote, dl, dd { margin: 0; }
:focus-visible { outline: 2px solid var(--green); outline-offset: 3px; border-radius: 8px; }

.wrap { width: 100%; max-width: calc(1200px + 2 * var(--page-pad)); margin: 0 auto; padding: 0 var(--page-pad); }

/* ---------- type ---------- */
.h1 { font-size: 80px; line-height: 80px; font-weight: 600; letter-spacing: -0.04em; }
.h2 { font-size: 44px; line-height: 48px; font-weight: 600; letter-spacing: -0.04em; }
.h3 { font-size: 36px; line-height: 44px; font-weight: 500; letter-spacing: -0.04em; }
.h4 { font-size: 22px; line-height: 32px; font-weight: 700; letter-spacing: -0.04em; }
.body { font-size: 18px; line-height: 28px; letter-spacing: -0.02em; }
.small { font-size: 16px; line-height: 24px; letter-spacing: -0.03em; }
.muted { color: var(--text-2); }

/* ---------- chips & buttons ---------- */
.chip {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 16px 8px 12px; border-radius: 999px;
  background: var(--surface); color: var(--text-ink);
  font-size: 14px; line-height: 17px; font-weight: 500; letter-spacing: 0;
}
.chip--plain { padding: 8px 16px; }
.chip__dot { width: 8px; height: 8px; border-radius: 50%; background: var(--green-dot); }
.tag { display: inline-flex; padding: 8px 16px; border-radius: 999px; background: var(--surface); color: var(--text-ink); font-size: 14px; line-height: 17px; font-weight: 500; letter-spacing: 0; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 44px; padding: 12px 24px; border-radius: 999px;
  font-size: 16px; line-height: 20px; font-weight: 500; letter-spacing: 0; white-space: nowrap;
  transition: background-color .2s ease, border-color .2s ease, color .2s ease, transform .2s ease;
}
.btn--primary { background: var(--green); color: #fff; }
.btn--primary:hover { background: #4d5e00; }
.btn--secondary { background: #fff; color: var(--text-ink); border: 1px solid var(--border); }
.btn--secondary:hover { background: var(--surface); }
.btn--sm { height: 36px; padding: 8px 16px; font-size: 14px; }
.btn--light { background: #fff; color: var(--text-ink); }
.btn--light:hover { background: var(--surface-strong); }
.btn--ghost-dark { color: #fff; border: 1px solid var(--border); }
.btn--ghost-dark:hover { background: rgba(255,255,255,.08); }
.btn svg { width: 20px; height: 20px; flex: none; }

/* ---------- navbar ---------- */
.nav { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.92); backdrop-filter: saturate(1.4) blur(10px); }
.nav__inner { position: relative; height: 68px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.nav__logo img { height: 22px; width: auto; }
.nav__menu { position: absolute; left: 50%; transform: translateX(-50%); display: flex; gap: 12px; }
.nav__link { padding: 8px 16px; border-radius: 999px; font-size: 14px; line-height: 20px; font-weight: 500; letter-spacing: 0; color: var(--text-ink); transition: background-color .2s; }
.nav__link:hover, .nav__link.is-active { background: var(--surface); }
.nav__burger { display: none; width: 40px; height: 40px; align-items: center; justify-content: center; border-radius: 999px; }
.nav__burger span { position: relative; display: block; width: 18px; height: 2px; border-radius: 1px; background: var(--text-ink); transition: background-color .2s; }
.nav__burger span::before, .nav__burger span::after { content: ""; position: absolute; left: 0; width: 18px; height: 2px; border-radius: 1px; background: var(--text-ink); transition: transform .25s ease; }
.nav__burger span::before { top: -7px; }
.nav__burger span::after { top: 7px; }
.nav.is-open .nav__burger span { background: transparent; }
.nav.is-open .nav__burger span::before { transform: translateY(7px) rotate(45deg); }
.nav.is-open .nav__burger span::after { transform: translateY(-7px) rotate(-45deg); }
.nav__right { display: flex; align-items: center; gap: 8px; }

.mobile-menu { display: none; }
.nav.is-open + .mobile-menu { display: flex; }
.mobile-menu {
  position: fixed; inset: 68px 0 0 0; z-index: 49; background: #fff;
  flex-direction: column; justify-content: space-between; padding: 24px var(--page-pad) 32px;
}
.mobile-menu__links { display: flex; flex-direction: column; }
.mobile-menu__links a { padding: 14px 0; border-bottom: 1px solid var(--surface-strong); font-size: 28px; line-height: 34px; font-weight: 500; letter-spacing: -0.04em; }
.mobile-menu__cta { display: flex; flex-direction: column; gap: 12px; }
.mobile-menu__cta .btn { width: 100%; }

/* ---------- hero ---------- */
.hero { position: relative; overflow: hidden; }
.hero__grid {
  position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(to right, rgba(234,235,229,.4) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(234,235,229,.4) 1px, transparent 1px);
  background-size: 64px 64px;
  background-position: calc(50% - 704px) 64px;
  -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 112px, #000 calc(100% - 43px), rgba(0,0,0,.785) 100%), linear-gradient(to right, transparent 0, #000 140px, #000 calc(100% - 64px), transparent 100%);
  -webkit-mask-composite: source-in; mask-composite: intersect;
  mask-image: linear-gradient(to bottom, transparent 0, #000 112px, #000 calc(100% - 43px), rgba(0,0,0,.785) 100%), linear-gradient(to right, transparent 0, #000 140px, #000 calc(100% - 64px), transparent 100%);
}
.hero__inner { position: relative; display: flex; flex-direction: column; align-items: center; gap: 24px; padding-top: 88px; padding-bottom: 112px; text-align: center; }
.hero__text { display: flex; flex-direction: column; gap: 24px; max-width: 640px; }
.hero__text .h1 { text-wrap: balance; }
.hero__sub { color: var(--text-2); }
.hero__cta { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; }
.hero__tiles { position: absolute; top: 0; bottom: 0; left: 50%; width: 1440px; margin-left: -720px; pointer-events: none; }
.tile {
  position: absolute; width: 64px; height: 64px; border-radius: 6px; background: #fff;
  border: 1px solid var(--border); box-shadow: 0 4px 14px rgba(0,0,0,.05); opacity: .6;
  display: flex; align-items: center; justify-content: center; will-change: transform;
}
.tile img { width: 32px; height: 32px; }
/* 1312-1439: the 1440 tiles keep their places, the ones that would touch the screen edge are hidden;
   1024-1311: a denser layout of all 13 tiles (tile--compact) */
.tile--compact { display: none; }
@media (max-width: 1407px) { .tile--from-1408 { display: none; } }
@media (max-width: 1311px) { .tile--wide { display: none; } .tile--compact { display: flex; } }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }

/* ---------- logos ---------- */
.logos { padding: 50px 0; }
.logos__caption { display: flex; align-items: center; gap: 20px; color: var(--text-2); font-size: 16px; line-height: 24px; letter-spacing: -0.03em; white-space: nowrap; }
.logos__caption::before, .logos__caption::after { content: ""; flex: 1; height: 1px; background: var(--surface-strong); }
.logos__row { --gap: 80px; position: relative; max-width: 846px; margin: 24px auto 0; overflow: hidden;
  -webkit-mask-image: linear-gradient(to right, transparent 0, #000 160px, #000 calc(100% - 160px), transparent 100%);
          mask-image: linear-gradient(to right, transparent 0, #000 160px, #000 calc(100% - 160px), transparent 100%); }
.logos__track { display: flex; width: max-content; animation: logos-run 40s linear infinite; }
.logos__set { display: flex; align-items: center; gap: var(--gap); padding-right: var(--gap); flex: none; }
.logos__set img { height: auto; max-height: 54px; width: auto; flex: none; }
.logos__row:hover .logos__track { animation-play-state: paused; }
@keyframes logos-run { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ---------- sections ---------- */
.section { padding: var(--section-y) 0; }
.section-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 64px; margin-bottom: 56px; }
.section-head__title { display: flex; flex-direction: column; align-items: flex-start; gap: 16px; }
.section-head__aside { max-width: 420px; color: var(--text-2); }
.section-head--center { justify-content: center; text-align: center; margin-bottom: 48px; }
.section-head--center .section-head__title { align-items: center; }

/* work grid */
.work-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px 24px; }
.case-card { display: flex; flex-direction: column; gap: 24px; }
@supports (grid-template-rows: subgrid) {
  .work-grid { row-gap: 0; }
  .work-grid .case-card { display: grid; grid-row: span 2; grid-template-rows: subgrid; row-gap: 24px; margin-bottom: 48px; }
  .work-grid .case-card:nth-last-child(-n+2) { margin-bottom: 0; }
}
.case-card__cover { aspect-ratio: 588 / 456; border-radius: 24px; overflow: hidden; background: var(--surface); }
.case-card__cover img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.case-card:hover .case-card__cover img { transform: scale(1.03); }
.case-card__text { display: flex; flex-direction: column; gap: 4px; }
.case-card__title { font-size: 22px; line-height: 28px; font-weight: 500; letter-spacing: -0.01em; }
.case-card__sub { font-size: 16px; line-height: 24px; letter-spacing: 0; color: var(--text-role); }

/* about */
.about { display: grid; grid-template-columns: minmax(0, 580fr) minmax(0, 540fr); gap: 80px; }
.about__left { display: flex; flex-direction: column; gap: 48px; }
.about__intro { display: flex; flex-direction: column; align-items: flex-start; gap: 24px; }
.about__title { font-size: 64px; line-height: 64px; font-weight: 600; letter-spacing: -0.04em; }
.socials { display: flex; gap: 12px; }
.social { width: 48px; height: 48px; border-radius: 999px; background: var(--surface); display: flex; align-items: center; justify-content: center; transition: background-color .2s; }
.social:hover { background: var(--surface-strong); }
.social img { width: 48px; height: 48px; }
.about__bio { display: flex; flex-direction: column; gap: 40px; }
.stats { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.stat { background: var(--surface); border-radius: 20px; padding: 28px; display: flex; flex-direction: column; gap: 12px; }
.stat__value { font-size: 36px; line-height: 44px; font-weight: 500; letter-spacing: -0.04em; }
.about__photo { position: relative; border-radius: 24px; overflow: hidden; background: var(--surface); min-height: 100%; }
.about__photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; visibility: hidden; }
.about__photo img.is-on { visibility: visible; }

/* services, testimonials, off the clock */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.service { border: 1px solid var(--border); border-radius: 24px; padding: 32px; display: flex; flex-direction: column; gap: 16px; }
.service__icon { width: 48px; height: 48px; border-radius: 14px; background: var(--surface-strong); display: flex; align-items: center; justify-content: center; }
.service__icon img { width: 28px; height: 28px; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; }
.service .small, .quote__role { color: var(--text-2); }
.quote { background: var(--surface); border: 1px solid var(--border); border-radius: 24px; padding: 28px; display: flex; flex-direction: column; gap: 20px; }
.quote__icon { width: 24px; height: 24px; }
.quote__text { flex: 1; font-size: 18px; line-height: 1.55; letter-spacing: 0; color: var(--text-ink); }
.quote__name { font-size: 16px; line-height: 19px; font-weight: 500; letter-spacing: 0; color: var(--text-ink); }
.quote__role { display: block; font-size: 14px; line-height: 17px; letter-spacing: 0; color: var(--text-faq); }
.love { border: 1px solid var(--border); border-radius: 28px; padding: 32px; display: flex; flex-direction: column; gap: 16px; }
.love__label { font-size: 14px; line-height: 20px; font-weight: 500; letter-spacing: -0.02em; color: var(--text-strong); text-transform: uppercase; }
.tracks { display: flex; flex-direction: column; gap: 4px; }
.track { display: grid; grid-template-columns: 16px 40px 1fr auto; align-items: center; gap: 12px; padding: 6px 8px; border-radius: 8px; transition: background-color .2s; }
.track:hover { background: var(--surface); }
.track__n { font-size: 14px; line-height: 20px; letter-spacing: 0; color: var(--text-2); text-align: center; }
.track img { width: 40px; height: 40px; border-radius: 4px; object-fit: cover; }
.track__info { min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.track__title { font-size: 16px; line-height: 20px; font-weight: 500; letter-spacing: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.track__artist { font-size: 14px; line-height: 16px; letter-spacing: 0; color: var(--text-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.track__time { font-size: 12px; line-height: 16px; letter-spacing: 0; color: var(--text-2); }
.series { display: flex; flex-direction: column; gap: 16px; }
.series img { width: 100%; height: 144px; object-fit: cover; border-radius: 10px; }
.series__title { font-size: 18px; line-height: 28px; font-weight: 500; letter-spacing: -0.02em; }
.series__meta { font-size: 14px; line-height: 20px; letter-spacing: -0.02em; color: var(--text-2); }

/* faq */
.faq { max-width: 800px; margin: 0 auto; display: flex; flex-direction: column; gap: 12px; }
.faq__item { background: var(--surface); border-radius: 16px; }
.faq__q { width: 100%; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 20px 24px; text-align: left; font-size: 17px; line-height: 21px; font-weight: 500; letter-spacing: 0; color: var(--text-ink); }
.faq__icon { flex: none; width: 15px; text-align: center; font-size: 22px; line-height: 27px; font-weight: 400; color: var(--text-faq); transition: transform .25s ease; }
.faq__item.is-open .faq__icon { transform: rotate(45deg); }
.faq__a { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .3s ease; }
.faq__item.is-open .faq__a { grid-template-rows: 1fr; }
.faq__q { transition: padding-bottom .3s ease; }
.faq__item.is-open .faq__q { padding-bottom: 12px; }
.faq__a > div { overflow: hidden; min-height: 0; }
.faq__a p { padding: 0 24px 24px; font-size: 15px; line-height: 1.55; letter-spacing: 0; color: var(--text-faq); }

/* cta */
.cta { background: var(--dark); border-radius: 40px; padding: 88px 64px; display: flex; flex-direction: column; align-items: center; gap: 24px; text-align: center; color: #fff; }
.cta__text { display: flex; flex-direction: column; gap: 24px; max-width: 560px; }
.cta__desc { color: var(--on-dark-muted); }
.cta__buttons { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.copy-email.is-copied .copy-email__label::after { content: " · copied"; color: var(--on-dark-muted); }

/* footer */
.footer { border-top: 1px solid var(--border); }
.footer__inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding-top: 32px; padding-bottom: 40px; }
.footer__logo img { height: 22px; width: auto; }
.footer__links { display: flex; gap: 32px; }
.footer__links a { font-size: 16px; line-height: 24px; font-weight: 500; letter-spacing: -0.03em; color: var(--text-2); transition: color .2s; }
.footer__links a:hover { color: var(--text); }
.footer__copy { font-size: 14px; line-height: 20px; color: var(--text-3); }

/* ---------- case page ---------- */
.case { max-width: calc(960px + 2 * var(--case-pad)); margin: 0 auto; padding: 88px var(--case-pad) 100px; display: flex; flex-direction: column; gap: 100px; }
.case__intro { display: flex; flex-direction: column; gap: 48px; }
.case__header { max-width: 760px; display: flex; flex-direction: column; gap: 16px; }
.back { font-size: 16px; line-height: 24px; font-weight: 500; letter-spacing: -0.03em; color: var(--text-2); transition: color .2s; }
.back:hover { color: var(--text); }
.case__hero { border-radius: 24px; overflow: hidden; background: var(--surface); aspect-ratio: 960 / 512; }
.case__hero img { width: 100%; height: 100%; object-fit: cover; }
.cs { display: flex; flex-direction: column; gap: 48px; }
.cs__body { display: flex; flex-direction: column; gap: 40px; }
.cs__group { display: flex; flex-direction: column; gap: 24px; }
.cs__group--tight { gap: 16px; }
.prose { max-width: 760px; } .prose:has(> .list) { max-width: 787px; } .prose:has(> .list) > :not(.list) { max-width: 760px; } .prose { display: flex; flex-direction: column; gap: 16px; }
.prose strong, .card strong, .list strong { font-weight: 600; }
.list { display: flex; flex-direction: column; gap: 0; padding-left: 27px; max-width: 787px; }
.list li { padding-left: 2px; }
ol.list strong { font-weight: 600; }
.meta { background: var(--surface); border-radius: 24px; padding: 32px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.meta dt { font-size: 16px; line-height: 24px; letter-spacing: -0.03em; color: var(--text-2); }
.meta dd { margin: 4px 0 0; font-size: 20px; line-height: 28px; font-weight: 500; letter-spacing: -0.03em; }
.cards { display: grid; gap: 24px; }
.cards--2 { grid-template-columns: 1fr 1fr; }
.card { border-radius: 24px; padding: 32px; display: flex; flex-direction: column; gap: 24px; }
.card--outline { border: 1px solid var(--border); }
.card--fill { background: var(--surface); }
.card--both { background: var(--surface); border: 1px solid var(--border); }
.card__num { font-size: 40px; line-height: 48px; font-weight: 600; letter-spacing: -0.025em; color: var(--green); }
.card__content { display: flex; flex-direction: column; gap: 4px; }
.card:not(:has(.card__num)):not(:has(.card__label)):not(.card--split) .card__content { gap: 24px; }
.card:has(.card__label) .card__content { gap: 12px; }
.card__title { font-weight: 600; }
.card__label { font-size: 14px; line-height: 20px; font-weight: 500; letter-spacing: -0.02em; color: var(--text-3); }
.card--split .card__content { flex-direction: row; gap: 80px; }
.card--split .card__title { flex: 0 0 220px; }
.card--split .card__content > .body:last-child { flex: 1; }
.figure { display: flex; flex-direction: column; align-items: center; gap: 16px; }
.figure__img { width: 100%; border-radius: 24px; overflow: hidden; background: var(--surface); }
.figure__img img { width: 100%; height: auto; }
.figure figcaption, .phone figcaption { font-size: 12px; line-height: 20px; letter-spacing: -0.03em; color: var(--text-2); text-align: center; }
.img-row { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.phones { display: flex; flex-wrap: wrap; justify-content: center; gap: 16px; }
.phones .phone { flex: 0 0 calc((100% - 48px) / 4); }
.phone { display: flex; flex-direction: column; align-items: center; gap: 16px; }
.phone img { width: 100%; max-width: 228px; height: auto; }
.numbers { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.number { background: var(--surface); border-radius: 24px; padding: 32px; display: flex; flex-direction: column; gap: 8px; }
.number__value { font-size: 44px; line-height: 48px; font-weight: 600; letter-spacing: -0.04em; }
.number .small { color: var(--text-2); }

/* other projects */
.more { max-width: calc(960px + 2 * var(--case-pad)); margin: 0 auto; padding: 0 var(--case-pad) 100px; }
.more__head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 56px; }
.more__arrows { display: flex; gap: 12px; }
.arrow { width: 48px; height: 48px; border-radius: 999px; background: var(--surface-strong); display: flex; align-items: center; justify-content: center; transition: background-color .2s, opacity .2s; }
.arrow:hover { background: var(--border); }
.arrow:disabled { opacity: .45; cursor: default; }
.arrow svg { width: 24px; height: 24px; }
.carousel { display: flex; gap: 24px; overflow-x: auto; overflow-y: hidden; overscroll-behavior-x: contain; touch-action: pan-x pan-y; scroll-snap-type: x mandatory; scrollbar-width: none; scroll-behavior: smooth; }
.carousel::-webkit-scrollbar { display: none; }
.carousel .case-card { flex: 0 0 560px; scroll-snap-align: start; }

/* image placeholder until assets are exported */
.ph { background: repeating-linear-gradient(45deg, var(--surface), var(--surface) 12px, var(--surface-strong) 12px, var(--surface-strong) 24px); }

/* reveal on scroll */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity .6s ease, transform .6s ease; }
.reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } .tile, .logos__track { animation: none; } html { scroll-behavior: auto; } }

/* ---------- tablet (her 768 frames) ---------- */
@media (max-width: 1023px) {
  :root { --page-pad: 40px; --case-pad: 40px; --section-y: 40px; }
  .h1 { font-size: 56px; line-height: 56px; }
  .h2 { font-size: 36px; line-height: 39px; }
  .h3 { font-size: 32px; line-height: 39px; }
  .nav__menu { display: none; }
  .nav__burger { display: inline-flex; }
  .hero__tiles { display: none; }
  .hero__inner { padding-top: 70px; padding-bottom: 90px; }
  .logos__row { --gap: 56px; }
  .section-head { flex-direction: column; align-items: flex-start; gap: 16px; }
  .about { grid-template-columns: 1fr; gap: 48px; }
  .about__title { font-size: 48px; line-height: 48px; }
  .about__photo { height: 560px; }
  .grid-3 { grid-template-columns: 1fr; gap: 16px; }
  .cta { padding: 64px 40px; }
  .case { padding: 70px var(--case-pad) 100px; gap: 100px; }
  .meta { grid-template-columns: 1fr 1fr; gap: 24px 16px; }
  .carousel .case-card { flex-basis: 320px; }
  .number__value { font-size: 32px; line-height: 39px; }
  .more { padding-bottom: 100px; }
}

/* ---------- mobile (her 375 frames) ---------- */
@media (max-width: 640px) {
  :root { --page-pad: 20px; --case-pad: 20px; --section-y: 32px; }
  body, .body { font-size: 16px; line-height: 25px; }
  .h1 { font-size: 40px; line-height: 40px; }
  .h2 { font-size: 30px; line-height: 33px; }
  .h3 { font-size: 28px; line-height: 34px; }
  .h4 { font-size: 20px; line-height: 29px; }
  .hero__inner { padding-top: 56px; padding-bottom: 72px; }
  .logos__row { --gap: 40px; -webkit-mask-image: linear-gradient(to right, transparent 0, #000 64px, #000 calc(100% - 64px), transparent 100%); mask-image: linear-gradient(to right, transparent 0, #000 64px, #000 calc(100% - 64px), transparent 100%); }
  .section-head { margin-bottom: 32px; }
  .work-grid { grid-template-columns: 1fr; gap: 0; }
  .work-grid .case-card, .work-grid .case-card:nth-last-child(2) { margin-bottom: 32px; }
  .work-grid .case-card:last-child { margin-bottom: 0; }
  .about__title { font-size: 36px; line-height: 36px; }
  .about__photo { height: auto; aspect-ratio: 540 / 625; }
  .stat { padding: 24px 20px; }
  .stat__value { font-size: 28px; line-height: 34px; }
  .service, .love { padding: 24px 20px; }
  .quote { padding: 24px 20px; }
  .faq__q { padding: 18px 20px; font-size: 16px; }
  .faq__a p { padding: 0 20px 20px; }
  .cta { padding: 48px 24px; border-radius: 32px; }
  .footer__inner { flex-direction: column; align-items: center; gap: 24px; text-align: center; }
  .footer__links { justify-content: center; flex-wrap: wrap; }
  .case { padding: 56px var(--case-pad) 60px; gap: 60px; }
  .case__intro { gap: 32px; }
  .case__hero { aspect-ratio: 335 / 260; }
  .cs { gap: 32px; }
  .cs__body { gap: 28px; }
  .meta { grid-template-columns: 1fr; padding: 24px 20px; gap: 20px; }
  .meta dd { font-size: 18px; line-height: 25px; }
  .cards--2 { grid-template-columns: 1fr; }
  .card { padding: 24px 20px; gap: 16px; }
  .card__num { font-size: 32px; line-height: 38px; }
  .card--split .card__content { flex-direction: column; gap: 12px; }
  .card--split .card__title { flex: none; }
  .img-row { grid-template-columns: 1fr; }
  .phones { gap: 16px; }
  .phones .phone { flex-basis: 100%; }
  .phone img { max-width: 335px; }
  .numbers { grid-template-columns: 1fr; gap: 24px; }
  .number { padding: 24px 20px; }
  .number__value { font-size: 30px; line-height: 33px; }
  .more__head { margin-bottom: 32px; }
  .carousel .case-card { flex-basis: 280px; }
  .mobile-menu { padding-left: 20px; padding-right: 20px; }
}

@media (max-width: 1023px) { .nav__cta { display: none; } }
@media (max-width: 640px) { .card:not(:has(.card__num)):not(:has(.card__label)):not(.card--split) .card__content { gap: 16px; } .cs__group { gap: 24px; } .cs__group--tight { gap: 16px; } }

/* Figma draws strokes inside the frame; keep the same content width */
.service, .love { padding: 31px; }
.quote { padding: 27px; }
.quote__icon { margin-top: 1px; }
@media (min-width: 1024px) { .quote { min-height: 302px; } }
.card--outline, .card--both { padding: 31px; }
.love:first-child { padding-bottom: 23px; }
@media (max-width: 640px) { .service, .love, .quote, .card--outline, .card--both { padding: 23px 19px; } }

.quote figcaption { display: flex; flex-direction: column; gap: 4px; }
.faq-head, .section-head--faq { margin-bottom: 40px; }
@media (min-width: 1024px) {
  .hero { min-height: 600px; }
  .service .small { margin-right: -6px; } /* Figma fits these descriptions in 3 lines at 320px */
}

/* tablet + mobile: spacing taken from her 768 / 375 frames */
@media (max-width: 1023px) {
  :root { --section-y: 50px; }
  html { scroll-padding-top: 56px; }
  .nav__inner { height: 56px; }
  .mobile-menu { inset: 56px 0 0 0; }
  .logos { padding: 50px 0; }
  .about__photo { height: auto; aspect-ratio: 720 / 800; }
  .series img { height: 240px; }
}
@media (max-width: 640px) {
  .logos__row { --gap: 32px; }
  .about { gap: 32px; }
  .about__left { gap: 34px; }
  .about__bio { gap: 28px; }
  .about__photo { aspect-ratio: auto; height: 388px; }
  .stats { grid-template-columns: 1fr; }
  .list { padding-left: 20px; }
  .stat { padding: 28px; }
  .series img { height: 160px; }
  .love:first-child { padding-bottom: 19px; }
}

@media (min-width: 1024px) { .hero__sub { margin-inline: -6px; } } /* Figma breaks the subtitle after "SaaS," at 640px */

/* Besides work: tags sit at the bottom of the card */
.love .tags, .service .tags { margin-top: auto; }
/* Livestock phones: rows start at the left edge */
.phones { justify-content: flex-start; }
/* Other projects: no clipping, cards run to the edge of the screen */
html, body { overflow-x: clip; }
.more { --edge: calc((100vw - min(960px, 100vw - 2 * var(--case-pad))) / 2); }
.carousel { margin-inline: calc(-1 * var(--edge)); padding-inline: var(--edge); scroll-padding-inline: var(--edge); }
/* centered section heads stay centered on tablet and mobile */
@media (max-width: 1023px) { .section-head--center { align-items: center; } }

/* mobile crops from her 375 frames */
.case__hero picture { display: block; width: 100%; height: 100%; }
@media (max-width: 640px) {
  .figure__img[data-m] { aspect-ratio: var(--m-ar); }
  .figure__img[data-m] picture { display: block; height: 100%; }
  .figure__img[data-m] img { height: 100%; object-fit: cover; }
}

/* Other projects: desktop scrolls only with the arrows; tablet/mobile swipe + dots */
.more__dots { display: none; justify-content: center; gap: 8px; margin-top: 24px; }
.dot { width: 8px; height: 8px; border-radius: 999px; background: var(--border); transition: width .25s ease, background-color .25s ease; }
.dot.is-on { width: 24px; background: var(--text); }
@media (min-width: 1024px) { .carousel { overflow-x: hidden; } }
@media (max-width: 1023px) { .more__dots { display: flex; } .more__arrows { display: none; } }

/* 404 */
.hero--404 { min-height: calc(100vh - 68px - 97px); display: flex; align-items: center; }
.hero--404 .hero__inner { padding-top: 88px; padding-bottom: 112px; width: 100%; }
@media (max-width: 1023px) { .hero--404 { min-height: calc(100vh - 56px - 97px); } }

/* Relatio / Woojer phone mockups (her new Figma layout) */
.phone-row { display: grid; gap: 16px; align-items: start; }
.phone-row--3 { grid-template-columns: repeat(3, 1fr); }
.phone-row--2 { grid-template-columns: repeat(2, 1fr); }
.phone-row--1 { grid-template-columns: minmax(0, 309.33px); justify-content: center; }
.phone-row .phone { display: flex; flex-direction: column; gap: 16px; }
.phone-row .phone { align-items: stretch; }
.phone-row .phone img { width: 100%; max-width: none; height: auto; }
.phone-row .phone figcaption { text-align: left; }
.phone-row--1 .phone figcaption { text-align: left; }
@media (max-width: 640px) {
  .phone-row--3, .phone-row--2 { grid-template-columns: 1fr; }
  .phone-row--1 { grid-template-columns: 1fr; }
}

/* logo: on hover the real "=)" glyphs are revealed stroke by stroke through an SVG mask */
.logo { display: block; height: 22px; width: auto; color: var(--text-ink, #0e0f0c); overflow: visible; }
.logo__stroke { stroke-dasharray: 1 2; stroke-dashoffset: 0; }
.nav__logo:hover .logo__stroke, .footer__logo:hover .logo__stroke,
.nav__logo:focus-visible .logo__stroke, .footer__logo:focus-visible .logo__stroke { animation: stroke-draw .14s cubic-bezier(.3,0,.2,1) both; }
.nav__logo:hover .logo__stroke--2, .footer__logo:hover .logo__stroke--2,
.nav__logo:focus-visible .logo__stroke--2, .footer__logo:focus-visible .logo__stroke--2 { animation-delay: .16s; }
.nav__logo:hover .logo__stroke--3, .footer__logo:hover .logo__stroke--3,
.nav__logo:focus-visible .logo__stroke--3, .footer__logo:focus-visible .logo__stroke--3 { animation-duration: .26s; animation-delay: .32s; }
@keyframes stroke-draw { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
@media (prefers-reduced-motion: reduce) { .logo__stroke { animation: none !important; } }
/* 2-phone rows: same phone size as the 3-phone row (309.33px), centered — desktop only, like her 1440 frames */
@media (min-width: 1024px) { .phone-row--2 { width: 100%; max-width: 634.67px; margin-inline: auto; } }
@media (min-width: 641px) and (max-width: 1023px) { .phone-row--2 { width: 100%; max-width: 454.67px; margin-inline: auto; } }
/* captions under phone mockups are left-aligned (all cases) */
.phone { align-items: stretch; }
.phone figcaption { text-align: left; }
.phones .phone { align-items: flex-start; }
/* one picture → centered caption; rows of phones → left */
.phone-row--1 .phone figcaption { text-align: center; }
@media (min-width: 641px) and (max-width: 1023px) { .card__num { font-size: 36px; line-height: 43px; } }
/* section rhythm from her frames: cases 100 / 100 / 60 between sections; home sections 50 / 50 / 30 top and bottom */
@media (max-width: 640px) {
  :root { --section-y: 30px; }
  .logos { padding: 30px 0; }
  .more { padding-bottom: 60px; }
}
@media (max-width: 640px) { .section-head--faq { margin-bottom: 32px; } }
/* tablet + mobile: the header is pinned, so it stays on top while scrolling and when the menu opens */
@media (max-width: 1023px) {
  .nav { position: fixed; top: 0; left: 0; right: 0; }
  body { padding-top: 56px; }
  .nav.is-open { background: #fff; backdrop-filter: none; }
}
/* small desktop (1024–1279): same layout as 1440, just tighter so nothing wraps awkwardly */
@media (min-width: 1024px) and (max-width: 1279px) {
  .about { gap: 48px; }
  .about__title { font-size: 56px; line-height: 56px; }
  .stat { padding: 24px; }
  .stat__value { font-size: 28px; line-height: 34px; white-space: nowrap; }
}
