/* Interdate — site styles. Plain CSS, no build step. RTL first. */

/* ---------- Fonts (IBM Plex Sans Hebrew, SIL OFL) ---------- */
@font-face { font-family: "Plex Hebrew"; font-weight: 300; font-display: swap; src: url("../fonts/plex-hebrew-hebrew-300.woff2") format("woff2"); unicode-range: U+0590-05FF, U+200C-2010, U+20AA, U+25CC, U+FB1D-FB4F; }
@font-face { font-family: "Plex Hebrew"; font-weight: 400; font-display: swap; src: url("../fonts/plex-hebrew-hebrew-400.woff2") format("woff2"); unicode-range: U+0590-05FF, U+200C-2010, U+20AA, U+25CC, U+FB1D-FB4F; }
@font-face { font-family: "Plex Hebrew"; font-weight: 500; font-display: swap; src: url("../fonts/plex-hebrew-hebrew-500.woff2") format("woff2"); unicode-range: U+0590-05FF, U+200C-2010, U+20AA, U+25CC, U+FB1D-FB4F; }
@font-face { font-family: "Plex Hebrew"; font-weight: 600; font-display: swap; src: url("../fonts/plex-hebrew-hebrew-600.woff2") format("woff2"); unicode-range: U+0590-05FF, U+200C-2010, U+20AA, U+25CC, U+FB1D-FB4F; }
@font-face { font-family: "Plex Hebrew"; font-weight: 300; font-display: swap; src: url("../fonts/plex-hebrew-latin-300.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2212, U+FEFF; }
@font-face { font-family: "Plex Hebrew"; font-weight: 400; font-display: swap; src: url("../fonts/plex-hebrew-latin-400.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2212, U+FEFF; }
@font-face { font-family: "Plex Hebrew"; font-weight: 500; font-display: swap; src: url("../fonts/plex-hebrew-latin-500.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2212, U+FEFF; }
@font-face { font-family: "Plex Hebrew"; font-weight: 600; font-display: swap; src: url("../fonts/plex-hebrew-latin-600.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2212, U+FEFF; }

/* ---------- Tokens ---------- */
:root {
  --ink: #000;
  --paper: #fff;
  --accent: #2337c6;
  --mute: #5f5f5a;
  --line: #d6d6d2;
  --fill: #e9e9e6;
  --stone: #efefec;
  --danger: #b3261e;

  --font: "Plex Hebrew", "Arial Hebrew", Arial, sans-serif;

  --fs-body: 1.0625rem;                                   /* 17px */
  --fs-small: 0.9375rem;                                  /* 15px */
  --fs-lead: clamp(1.125rem, 1.05rem + 0.3vw, 1.3125rem);  /* 18–21px */
  --fs-h3: clamp(1.25rem, 1.15rem + 0.4vw, 1.5rem);        /* 20–24px */
  --fs-h2: clamp(1.5rem, 1.3rem + 0.9vw, 2.125rem);        /* 24–34px */
  --fs-h1: clamp(2rem, 1.6rem + 1.8vw, 3.25rem);           /* 32–52px */

  --gap: 1rem;
  --pad: 1.25rem;
  --section: clamp(4rem, 3rem + 4vw, 7.5rem);
}
@media (min-width: 48rem) { :root { --gap: 1.5rem; --pad: 2.5rem; } }
@media (min-width: 80rem) { :root { --pad: 4rem; } }

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }
body { margin: 0; font-family: var(--font); font-size: var(--fs-body); line-height: 1.7; color: var(--ink); background: var(--paper); -webkit-font-smoothing: antialiased; }
h1, h2, h3, p, ul, ol, dl, dd, figure, address { margin: 0; }
h1, h2, h3 { line-height: 1.15; font-weight: 600; text-wrap: balance; }
p { text-wrap: pretty; }
address { font-style: normal; }
ul[role="list"] { list-style: none; padding: 0; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
::selection { background: var(--accent); color: var(--paper); }
code { font-size: 0.9em; background: var(--fill); padding: 0.1em 0.35em; }

.skip { position: absolute; inset-inline-start: 1rem; top: -4rem; z-index: 50; background: var(--ink); color: var(--paper); padding: 0.5rem 1rem; }
.skip:focus { top: 1rem; }

/* ---------- Layout ---------- */
.wrap { width: 100%; max-width: 90rem; margin-inline: auto; padding-inline: var(--pad); }
.grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); column-gap: var(--gap); }
.grid > * { grid-column: 1 / -1; }
@media (min-width: 48rem) { .grid { grid-template-columns: repeat(8, minmax(0, 1fr)); } }
@media (min-width: 64rem) {
  .grid { grid-template-columns: repeat(12, minmax(0, 1fr)); }
  .grid > .split__aside { grid-column: 1 / span 4; }
  .grid > .split__main { grid-column: 6 / -1; }
}
.split__aside + .split__main { margin-top: 1.5rem; }
@media (min-width: 64rem) { .split__aside + .split__main { margin-top: 0; } }

.section { padding-top: var(--section); }
.section__head { border-top: 2px solid var(--ink); padding-top: 1.25rem; margin-bottom: 2rem; row-gap: 0.75rem; }
.section__title { font-size: var(--fs-h2); }
.section__lead { color: var(--mute); font-size: var(--fs-lead); line-height: 1.6; }
@media (min-width: 64rem) {
  .section__head > .section__title { grid-column: 1 / span 6; }
  .section__head > .section__lead { grid-column: 8 / -1; }
}
.section__more { margin-top: 2rem; }

/* ---------- Type helpers ---------- */
.lead { font-size: var(--fs-lead); line-height: 1.6; }
.muted { color: var(--mute); }
.link { border-bottom: 1px solid currentColor; padding-bottom: 1px; transition: color .2s, border-color .2s; }
.link:hover { color: var(--accent); }
.btn { display: inline-block; background: var(--ink); color: var(--paper); padding: 0.8rem 1.4rem; font-weight: 500; line-height: 1.3; border: 0; font: inherit; cursor: pointer; transition: background .2s; }
.btn:hover { background: var(--accent); }
.btn--light { background: var(--paper); color: var(--ink); }
.btn--light:hover { background: var(--fill); }

.prose > * + * { margin-top: 1.1em; }
.prose h2 { font-size: var(--fs-h3); margin-top: 2em; }
.prose h3 { font-size: 1.125rem; margin-top: 1.6em; }
.prose ul, .prose ol { padding-inline-start: 1.25rem; }
.prose li + li { margin-top: 0.4em; }
.prose a { border-bottom: 1px solid currentColor; }
.prose a:hover { color: var(--accent); }
.prose blockquote { margin: 0; padding-inline-start: 1.25rem; border-inline-start: 2px solid var(--ink); }
.prose { max-width: 44rem; }

/* ---------- Header ---------- */
.site-header { position: relative; z-index: 20; border-bottom: 1px solid var(--line); }
.site-header__bar { display: flex; align-items: center; justify-content: space-between; min-height: 4.5rem; }
.logo { font-size: 1.375rem; font-weight: 600; letter-spacing: -0.01em; }
.nav ul { display: none; list-style: none; padding: 0; gap: 2.25rem; }
.nav a { padding-block: 0.25rem; border-bottom: 1px solid transparent; transition: border-color .2s; }
.nav a:hover, .nav a[aria-current="page"] { border-bottom-color: currentColor; }
.menu-toggle { font: inherit; background: none; border: 0; padding: 0.75rem; margin: -0.75rem; cursor: pointer; color: inherit; }
@media (min-width: 64rem) {
  .nav ul { display: flex; }
  .menu-toggle, .mobile-nav { display: none !important; }
}
.mobile-nav { border-top: 1px solid var(--line); padding-block: 1.5rem 2rem; background: var(--paper); }
.mobile-nav ul { list-style: none; padding: 0; }
.mobile-nav li a { display: block; font-size: 1.5rem; font-weight: 500; padding-block: 0.4rem; }
.mobile-nav a[aria-current="page"] { color: var(--accent); }
.mobile-nav__contact { margin-top: 1.5rem; color: var(--mute); }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: var(--paper); border-top: 1px solid #2a2a2a; }
.site-footer a:hover { color: #c7ccf5; }
.site-footer__top { padding-block: 4rem 3rem; row-gap: 2.5rem; }
.site-footer__title { font-size: var(--fs-h2); font-weight: 600; line-height: 1.15; margin-bottom: 1.25rem; }
.site-footer__contact { display: flex; flex-direction: column; gap: 0.35rem; }
.site-footer__nav ul { list-style: none; padding: 0; columns: 2; column-gap: var(--gap); }
.site-footer__nav li { padding-block: 0.15rem; }
@media (min-width: 64rem) {
  .site-footer__top > .site-footer__cta { grid-column: 1 / span 5; }
  .site-footer__top > .site-footer__contact { grid-column: 6 / span 3; }
  .site-footer__top > .site-footer__nav { grid-column: 9 / -1; }
}
.site-footer__bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; border-top: 1px solid rgb(255 255 255 / .25); padding-block: 1.5rem 2rem; font-size: var(--fs-small); color: rgb(255 255 255 / .7); }
.site-footer__bottom ul { list-style: none; padding: 0; display: flex; gap: 1.5rem; }

/* ---------- Client rows ---------- */
.rows__head, .rows__row { display: grid; grid-template-columns: minmax(0, 1fr); gap: 0.25rem var(--gap); align-items: baseline; }
.rows__head { display: none; font-size: var(--fs-small); color: var(--mute); padding-bottom: 0.75rem; border-bottom: 1px solid var(--ink); }
.rows__row { padding-block: 1.1rem; border-bottom: 1px solid var(--line); transition: background .2s; }
.rows__row:hover .rows__name { color: var(--accent); }
.rows__name { font-size: var(--fs-h3); font-weight: 500; line-height: 1.3; }
.rows__kind, .rows__work { font-size: var(--fs-small); color: var(--mute); line-height: 1.5; }
@media (min-width: 48rem) {
  .rows__head, .rows__row { grid-template-columns: 5fr 3fr 4fr; }
  .rows__head { display: grid; }
  .rows__kind { color: var(--ink); font-size: var(--fs-body); }
}

/* ---------- Services ---------- */
.service-grid { display: grid; grid-template-columns: minmax(0, 1fr); column-gap: var(--gap); }
.service-grid > div { border-top: 1px solid var(--ink); padding-block: 1.25rem 1.75rem; }
.service-grid dt { font-size: var(--fs-h3); font-weight: 500; line-height: 1.3; }
.service-grid dd { margin-top: 0.5rem; color: var(--mute); }
@media (min-width: 48rem) { .service-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 64rem) { .service-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

.service { border-top: 1px solid var(--ink); padding-block: 1.5rem 2.25rem; row-gap: 0.75rem; }
.service:last-of-type { border-bottom: 1px solid var(--ink); }
.service__title { font-size: var(--fs-h3); font-weight: 500; }
.service__body { max-width: 44rem; }
.service__body > * + * { margin-top: 0.75rem; }
@media (min-width: 64rem) {
  .service > .service__title { grid-column: 1 / span 4; }
  .service > .service__body { grid-column: 6 / -1; }
}

/* ---------- About ---------- */
.team { list-style: none; padding: 0; display: grid; grid-template-columns: minmax(0, 1fr); column-gap: var(--gap); }
@media (min-width: 48rem) { .team { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.team li { border-top: 1px solid var(--line); padding-block: 1rem; display: flex; flex-direction: column; }
.team__name { font-size: var(--fs-h3); font-weight: 500; line-height: 1.3; }
.team__role { color: var(--mute); }

/* ---------- Blog ---------- */
.post-list { list-style: none; padding: 0; border-top: 1px solid var(--ink); }
.post-list a { display: grid; grid-template-columns: minmax(0, 1fr); gap: 0.35rem var(--gap); padding-block: 1.25rem; border-bottom: 1px solid var(--line); }
.post-list time { font-size: var(--fs-small); color: var(--mute); }
.post-list__title { font-size: var(--fs-h3); font-weight: 500; line-height: 1.35; }
.post-list__excerpt { color: var(--mute); max-width: 44rem; }
.post-list a:hover .post-list__title { color: var(--accent); }
@media (min-width: 64rem) {
  .post-list a { grid-template-columns: 3fr 9fr; }
  .post-list time { grid-row: 1 / span 2; padding-top: 0.3rem; }
}
.pager { display: flex; justify-content: space-between; align-items: center; gap: 1rem; margin-top: 2.5rem; flex-wrap: wrap; }
.cta-box { border-top: 2px solid var(--ink); padding-top: 1.5rem; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem; }

/* ---------- Contact ---------- */
.contact-details { display: flex; flex-direction: column; }
.contact-details > div { display: flex; flex-direction: column; border-top: 1px solid var(--line); padding-block: 0.9rem; }
.contact-details span.muted { font-size: var(--fs-small); }
.contact-details a { align-self: flex-start; font-size: var(--fs-lead); }
.contact-details a:hover { color: var(--accent); }

.form { display: flex; flex-direction: column; gap: 1.25rem; max-width: 44rem; }
.field { display: flex; flex-direction: column; gap: 0.4rem; }
.field-row { display: grid; grid-template-columns: minmax(0, 1fr); gap: 1.25rem var(--gap); }
@media (min-width: 48rem) { .field-row { grid-template-columns: 1fr 1fr; } }
.field label { font-weight: 500; }
.field input[type="text"], .field input[type="email"], .field input[type="tel"], .field textarea {
  font: inherit; color: inherit; background: var(--paper); border: 1px solid #8a8a85; border-radius: 0; padding: 0.7rem 0.85rem; width: 100%;
}
.field input[dir="ltr"] { text-align: left; }
.field input:focus, .field textarea:focus { outline: 2px solid var(--accent); outline-offset: 0; border-color: var(--accent); }
.field [aria-invalid="true"] { border-color: var(--danger); }
.field textarea { resize: vertical; min-height: 9rem; }
.field--check { flex-direction: row; flex-wrap: wrap; align-items: flex-start; gap: 0.75rem; }
.field--check input { width: 1.25rem; height: 1.25rem; margin-top: 0.3rem; accent-color: var(--ink); flex: none; }
.field--check label { flex: 1; font-weight: 400; color: var(--mute); }
.field--check .form__error { flex-basis: 100%; }
.form__error { color: var(--danger); font-size: var(--fs-small); }
.form__error--top { border: 1px solid var(--danger); padding: 0.75rem 1rem; }
.form__hp { position: absolute; inset-inline-start: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form .btn { align-self: flex-start; }
.notice { border-top: 2px solid var(--ink); padding-top: 1.25rem; }
.section__head + .post-list { border-top: 0; }

/* ---------- Bands (full-width sections) ---------- */
.band { padding-block: var(--section); }
.band--stone { background: var(--stone); }
.band--dark { background: #000; color: #fff; }
.band--dark .section__head { border-top-color: #fff; }
.band--dark .section__lead, .band--dark .muted { color: #b5b5b0; }
.band--dark .link:hover { color: #c7ccf5; }
.band--after { margin-top: var(--section); }
.band + .band { margin-top: 0; }
main > .section:last-child, main > section.wrap:last-child { padding-bottom: var(--section); }
main > article > .section:last-child { padding-bottom: var(--section); }

/* ---------- Home hero ---------- */
.hero { padding-block: clamp(3rem, 2rem + 4vw, 6rem); background: var(--stone); overflow: hidden; }
.hero .grid { row-gap: 3rem; align-items: center; }
.hero__text { display: flex; flex-direction: column; gap: 1rem; }
.hero__title { font-size: clamp(2.125rem, 1.6rem + 2.2vw, 3.5rem); letter-spacing: -0.02em; line-height: 1.08; margin-bottom: 0.5rem; }
.hero__links { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.75rem; margin-top: 0.75rem; }
.hero__media { position: relative; padding-bottom: 12%; }
.hero__img-main { width: 88%; aspect-ratio: 4 / 3; object-fit: cover; margin-inline-start: auto; box-shadow: 0 30px 60px -30px rgb(0 0 0 / .35); }
.hero__img-side { position: absolute; inset-inline-start: 0; bottom: 0; width: 42%; aspect-ratio: 1; object-fit: cover; border: 6px solid var(--paper); box-shadow: 0 20px 40px -20px rgb(0 0 0 / .4); }
@media (min-width: 64rem) {
  .hero .grid > .hero__text { grid-column: 1 / span 6; }
  .hero .grid > .hero__media { grid-column: 7 / -1; }
}

/* ---------- Inner page head ---------- */
.page-head { background: var(--stone); padding-block: clamp(3rem, 2rem + 4vw, 5.5rem) clamp(2.5rem, 2rem + 2vw, 4rem); }
.page-head .grid { row-gap: 1.25rem; }
.page-head__title { font-size: var(--fs-h1); letter-spacing: -0.02em; }
.page-head__title--post { font-size: clamp(1.75rem, 1.4rem + 1.5vw, 2.75rem); }
.page-head__lead { font-size: var(--fs-lead); line-height: 1.6; color: var(--mute); max-width: 40rem; }
.page-head__crumb { font-size: var(--fs-small); color: var(--mute); }
@media (min-width: 64rem) {
  .page-head .grid > .page-head__title { grid-column: 1 / span 8; }
  .page-head .grid > .page-head__lead { grid-column: 1 / span 7; }
}

/* ---------- Products (own) ---------- */
.products { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.75rem; }
@media (min-width: 64rem) { .products { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; } }
.product__link { display: flex; flex-direction: column; height: 100%; background: var(--bg); color: var(--fg); }
.product__media { display: block; aspect-ratio: 4 / 3; overflow: hidden; background: #1a1a1a; }
.product__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.product__link:hover .product__media img { transform: scale(1.04); }
.product__band { display: flex; flex-direction: column; gap: 0.25rem; padding: clamp(0.9rem, 0.7rem + 0.8vw, 1.4rem); flex: 1; }
.product__name { font-size: clamp(1.25rem, 1.05rem + 0.8vw, 1.75rem); font-weight: 600; line-height: 1.1; }
.product__audience { font-size: var(--fs-small); line-height: 1.4; opacity: .9; }
.product--soon .product__media { display: flex; align-items: center; justify-content: center; background: #1f1f1f; }
.product__soon { color: #b5b5b0; font-size: var(--fs-small); }
.product--soon .product__name { font-weight: 400; }

/* ---------- Client covers ---------- */
.covers { list-style: none; padding: 0; display: grid; grid-template-columns: minmax(0, 1fr); gap: 2.5rem var(--gap); }
@media (min-width: 48rem) { .covers { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 64rem) { .covers { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.covers a { display: flex; flex-direction: column; gap: 0.3rem; }
.covers__media { display: block; aspect-ratio: 3 / 2; overflow: hidden; background: var(--fill); margin-bottom: 0.7rem; }
.covers__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.covers a:hover .covers__media img { transform: scale(1.04); }
.covers__name { font-size: var(--fs-h3); font-weight: 500; line-height: 1.3; }
.covers__kind { color: var(--mute); font-size: var(--fs-small); }
.covers a:hover .covers__name { color: var(--accent); }

/* ---------- Project page ---------- */
.proj-head { background: var(--bg); color: var(--fg); padding-block: clamp(2.5rem, 2rem + 3vw, 4.5rem) clamp(9rem, 6rem + 10vw, 16rem); }
.proj-head .grid { row-gap: 0.75rem; }
.proj-head__crumb { font-size: var(--fs-small); opacity: .8; }
.proj-head__crumb a { border-bottom: 1px solid currentColor; }
.proj-head__title { font-size: clamp(2.5rem, 1.8rem + 3vw, 4.5rem); letter-spacing: -0.02em; line-height: 1; }
.proj-head__lead { font-size: var(--fs-lead); }
.proj-hero { margin-top: calc(-1 * clamp(7rem, 4.5rem + 8.5vw, 13.5rem)); }
.proj-hero img, .proj-hero .placeholder { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; background: var(--fill); box-shadow: 0 40px 80px -40px rgb(0 0 0 / .45); }
.proj-body { padding-top: clamp(3rem, 2rem + 3vw, 5rem); row-gap: 2rem; }
.proj-body__label { font-size: var(--fs-small); font-weight: 500; color: var(--mute); margin-bottom: 0.75rem; }
.proj-tags { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 0.5rem; }
.proj-tags li { border: 1px solid var(--ink); padding: 0.3rem 0.75rem; font-size: var(--fs-small); line-height: 1.4; }
.proj-body__summary { font-size: clamp(1.25rem, 1.1rem + 0.7vw, 1.75rem); line-height: 1.45; margin-bottom: 1rem; }
.proj-gallery { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--gap); padding-block: var(--section); }
@media (min-width: 48rem) { .proj-gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.proj-gallery--one { grid-template-columns: minmax(0, 1fr) !important; }
.proj-gallery { align-items: start; }
.proj-gallery img { width: 100%; height: auto; background: var(--fill); }
.proj-body + .proj-next { margin-top: var(--section); }
.proj-next { padding-block: 0; }
.proj-next__link { display: flex; align-items: center; justify-content: space-between; gap: 2rem; padding-block: 3rem; }
.proj-next__text { display: flex; flex-direction: column; gap: 0.25rem; }
.proj-next__label { color: #b5b5b0; font-size: var(--fs-small); }
.proj-next__name { font-size: var(--fs-h1); font-weight: 600; line-height: 1.1; letter-spacing: -0.02em; }
.proj-next__link img { width: min(40%, 26rem); aspect-ratio: 3 / 2; object-fit: cover; }
.proj-next__link:hover .proj-next__name { color: #c7ccf5; }
@media (max-width: 47.99rem) { .proj-next__link img { display: none; } }

.placeholder { display: flex; align-items: center; justify-content: center; padding: 1rem; text-align: center; background: var(--fill); color: var(--mute); font-size: var(--fs-small); }

/* =====================================================================
   Responsive layer: phones 320–430, large phones / small tablets 600+,
   tablets 768–1023 (portrait iPad, Android tablets), desktop 1024+.
   ===================================================================== */

/* Small phones (iPhone SE 1st gen, old Androids) */
@media (max-width: 359.98px) {
  :root { --pad: 1rem; --gap: 0.75rem; }
  .products { gap: 0.5rem; }
  .product__band { padding: 0.75rem; }
  .product__name { font-size: 1.125rem; }
  .btn { padding: 0.75rem 1.1rem; }
}

/* Long words and URLs never push the page sideways */
.prose, .service__body, .page-head__lead { overflow-wrap: anywhere; }

/* Honeypot: visually hidden without moving off-screen (RTL-safe) */
.form__hp { position: absolute; inset-inline-start: auto; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

/* Phones: comfortable tap targets, buttons full width in hero/CTA */
@media (max-width: 47.99rem) {
  .hero__links { flex-direction: column; align-items: stretch; gap: 0.75rem; }
  .hero__links .btn { text-align: center; }
  .hero__links .link { align-self: flex-start; }
  .hero__media { padding-bottom: 18%; }
  .hero__img-main { width: 92%; }
  .hero__img-side { width: 46%; border-width: 4px; }
  .site-footer__nav ul { columns: 2; }
  .proj-tags li { padding: 0.35rem 0.7rem; }
  .cta-box { flex-direction: column; align-items: flex-start; }
  .covers { gap: 2rem; }
}

/* Phone landscape and small tablets: two-column cards */
@media (min-width: 37.5rem) and (max-width: 47.99rem) {
  .covers { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .post-list a { grid-template-columns: 1fr 3fr; }
  .post-list time { grid-row: 1 / span 2; padding-top: 0.3rem; }
}

/* Tablets and up: real multi-column layouts instead of stretched mobile */
@media (min-width: 48rem) {
  /* Header: full navigation, no burger */
  .nav ul { display: flex; gap: 1.5rem; font-size: 0.9375rem; }
  .menu-toggle, .mobile-nav { display: none !important; }

  /* Aside + main split on the 8-column grid */
  .grid > .split__aside { grid-column: 1 / span 3; }
  .grid > .split__main { grid-column: 4 / -1; }
  .split__aside + .split__main { margin-top: 0; }

  .section__head > .section__title { grid-column: 1 / span 4; }
  .section__head > .section__lead { grid-column: 5 / -1; }

  /* Home hero: text and images side by side */
  .hero .grid { align-items: center; }
  .hero .grid > .hero__text { grid-column: 1 / span 4; }
  .hero .grid > .hero__media { grid-column: 5 / -1; }
  .hero__title { font-size: clamp(2rem, 1.2rem + 2.2vw, 3.5rem); }

  /* Own products: four in a row */
  .products { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0.75rem; }
  .product__name { font-size: clamp(1.125rem, 0.8rem + 0.9vw, 1.75rem); }
  .product__audience { font-size: 0.875rem; }

  /* Services, jobs, dating sections: title beside text */
  .service > .service__title { grid-column: 1 / span 3; }
  .service > .service__body { grid-column: 4 / -1; }

  /* Page heads use the full tablet width */
  .page-head .grid > .page-head__title, .page-head .grid > .page-head__lead { grid-column: 1 / span 7; }

  /* Footer: CTA on top, contact and links side by side */
  .site-footer__top > .site-footer__cta { grid-column: 1 / -1; }
  .site-footer__top > .site-footer__contact { grid-column: 1 / span 4; }
  .site-footer__top > .site-footer__nav { grid-column: 5 / -1; }

  /* Project page */
  .proj-gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* Tablet portrait only (768–1023): tighter spacing so content fits */
@media (min-width: 48rem) and (max-width: 63.99rem) {
  :root { --pad: 2rem; --gap: 1.25rem; --section: 4.5rem; }
  .logo { font-size: 1.25rem; }
  .hero__img-side { width: 48%; }
  .product__band { padding: 0.85rem; }
  .covers { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .service-grid--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .rows__head, .rows__row { grid-template-columns: 4fr 3fr 4fr; }
}

/* Desktop and tablet landscape (iPad 1024/1180/1366) */
@media (min-width: 64rem) {
  .nav ul { gap: 2.25rem; font-size: inherit; }
  .grid > .split__aside { grid-column: 1 / span 4; }
  .grid > .split__main { grid-column: 6 / -1; }
  .section__head > .section__title { grid-column: 1 / span 6; }
  .section__head > .section__lead { grid-column: 8 / -1; }
  .hero .grid > .hero__text { grid-column: 1 / span 6; }
  .hero .grid > .hero__media { grid-column: 7 / -1; }
  .service > .service__title { grid-column: 1 / span 4; }
  .service > .service__body { grid-column: 6 / -1; }
  .page-head .grid > .page-head__title { grid-column: 1 / span 8; }
  .page-head .grid > .page-head__lead { grid-column: 1 / span 7; }
  .site-footer__top > .site-footer__cta { grid-column: 1 / span 5; }
  .site-footer__top > .site-footer__contact { grid-column: 6 / span 3; }
  .site-footer__top > .site-footer__nav { grid-column: 9 / -1; }
}

/* Phones in landscape (short screens): keep the project header compact */
@media (max-height: 30rem) and (orientation: landscape) {
  .proj-head { padding-bottom: 7rem; }
  .proj-hero { margin-top: -5rem; }
  .hero { padding-block: 2.5rem; }
}

/* ---------- Blog cards ---------- */
.blog-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 2.5rem var(--gap); }
@media (min-width: 37.5rem) { .blog-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 64rem) { .blog-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.post-card__link { display: flex; flex-direction: column; gap: 1rem; height: 100%; }
.post-card__media { position: relative; display: block; aspect-ratio: 16 / 10; overflow: hidden; background: var(--bg); color: var(--fg); }
.post-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.post-card__type { position: absolute; inset: 0; display: flex; align-items: flex-end; padding: clamp(1rem, 0.8rem + 1vw, 1.5rem); font-size: clamp(1.25rem, 1rem + 1vw, 1.75rem); font-weight: 600; line-height: 1.15; letter-spacing: -0.01em; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; align-content: end; }
.post-card__media:has(.post-card__type) { display: flex; align-items: flex-end; }
.post-card__type { position: static; }
.post-card__body { display: flex; flex-direction: column; gap: 0.4rem; }
.post-card__body time { font-size: var(--fs-small); color: var(--mute); }
.post-card__title { font-size: var(--fs-h3); font-weight: 500; line-height: 1.35; }
.post-card__link:hover .post-card__title { color: var(--accent); }
.post-card__link:hover .post-card__media img { transform: scale(1.04); }
.post-card__excerpt { color: var(--mute); max-width: 36rem; }
.post-card__more { margin-top: 0.75rem; align-self: flex-start; border-bottom: 1px solid currentColor; font-weight: 500; }

.blog-featured { margin-top: calc(-1 * clamp(1.5rem, 1rem + 2vw, 2.5rem)); }
.post-card--featured .post-card__link { gap: 1.5rem; }
.post-card--featured .post-card__title { font-size: var(--fs-h2); font-weight: 600; line-height: 1.2; }
.post-card--featured .post-card__type { font-size: clamp(1.75rem, 1.2rem + 2vw, 3rem); -webkit-line-clamp: 3; }
@media (min-width: 48rem) {
  .post-card--featured .post-card__link { display: grid; grid-template-columns: 7fr 5fr; align-items: center; gap: 2.5rem; }
  .post-card--featured .post-card__media { aspect-ratio: 4 / 3; }
}
.blog-grid-wrap { padding-block: var(--section); }
.blog-grid__title { font-size: var(--fs-h2); border-top: 2px solid var(--ink); padding-top: 1.25rem; margin-bottom: 2rem; }
.btn--ghost { background: transparent; color: var(--ink); border: 1px solid var(--ink); }
.btn--ghost:hover { background: var(--ink); color: var(--paper); }
.pager { border-top: 1px solid var(--line); padding-top: 2rem; margin-top: 3.5rem; }

.cta-band { row-gap: 1.5rem; align-items: center; }
.cta-band__title { font-size: var(--fs-h2); font-weight: 600; line-height: 1.2; }
.cta-band__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.75rem; }
@media (min-width: 48rem) { .cta-band > .cta-band__title { grid-column: 1 / span 5; } .cta-band > .cta-band__actions { grid-column: 6 / -1; justify-content: flex-end; } }
@media (min-width: 64rem) { .cta-band > .cta-band__title { grid-column: 1 / span 7; } .cta-band > .cta-band__actions { grid-column: 8 / -1; } }

/* ---------- Blog post ---------- */
.post-head { background: var(--bg); color: var(--fg); padding-block: clamp(3rem, 2rem + 3vw, 5rem); }
.post-head .grid { row-gap: 1rem; }
.post-head__meta { font-size: var(--fs-small); opacity: .85; }
.post-head__meta a { border-bottom: 1px solid currentColor; }
.post-head__title { font-size: clamp(1.75rem, 1.3rem + 2vw, 3rem); letter-spacing: -0.015em; line-height: 1.15; }
@media (min-width: 64rem) { .post-head .grid > .post-head__title { grid-column: 1 / span 9; } }
.post-head:has(+ .post-hero) { padding-bottom: clamp(7rem, 5rem + 8vw, 12rem); }
.post-hero { margin-top: calc(-1 * clamp(5rem, 3.5rem + 6vw, 9rem)); }
.post-hero img { width: 100%; max-height: 34rem; object-fit: cover; box-shadow: 0 40px 80px -40px rgb(0 0 0 / .45); }
@media (min-width: 64rem) { .post-hero img { width: calc(100% * 7 / 12); margin-inline-start: auto; } }
.post-body { align-items: start; }
.post-aside__box { border-top: 2px solid var(--ink); padding-top: 1.25rem; display: flex; flex-direction: column; gap: 0.75rem; align-items: flex-start; }
.post-aside__title { font-size: var(--fs-h3); font-weight: 600; line-height: 1.25; }
@media (min-width: 48rem) { .post-aside { position: sticky; top: 2rem; } }
@media (max-width: 47.99rem) { .post-aside { margin-top: 3rem; } }

/* ---------- Contact ---------- */
.contact-tiles { display: grid; grid-template-columns: minmax(0, 1fr); gap: 0.75rem; margin-top: calc(-1 * clamp(1.5rem, 1rem + 2vw, 2.5rem)); }
@media (min-width: 37.5rem) { .contact-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 64rem) { .contact-tiles { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; } }
.contact-tile { display: flex; flex-direction: column; gap: 0.35rem; background: var(--bg); color: var(--fg); padding: clamp(1.25rem, 1rem + 1vw, 1.75rem); min-height: clamp(9rem, 7rem + 5vw, 12rem); transition: transform .2s ease, box-shadow .2s ease; }
.contact-tile:hover { transform: translateY(-3px); box-shadow: 0 18px 30px -18px rgb(0 0 0 / .5); }
.contact-tile__label { font-size: var(--fs-small); opacity: .85; }
.contact-tile__value { font-size: clamp(1.25rem, 1.05rem + 0.8vw, 1.625rem); font-weight: 600; line-height: 1.2; margin-top: auto; overflow-wrap: anywhere; text-align: right; }
.contact-tile__hint { font-size: var(--fs-small); opacity: .85; }
.contact-main { row-gap: 3rem; }
.contact-form .section__title { margin-bottom: 0.5rem; }
.contact-form__intro { margin-bottom: 2rem; }
.contact-steps { background: var(--stone); padding: clamp(1.5rem, 1.2rem + 1vw, 2.25rem); align-self: start; }
.contact-steps__title { font-size: var(--fs-h3); margin-bottom: 1.25rem; }
.contact-steps ol { list-style: none; padding: 0; counter-reset: step; display: flex; flex-direction: column; gap: 1.25rem; }
.contact-steps li { counter-increment: step; display: grid; grid-template-columns: 2.25rem 1fr; column-gap: 0.75rem; }
.contact-steps li::before { content: counter(step); grid-row: 1 / span 2; width: 2.25rem; height: 2.25rem; display: flex; align-items: center; justify-content: center; background: var(--ink); color: var(--paper); font-weight: 600; }
.contact-steps li span { color: var(--mute); }
.contact-steps__map { margin-top: 1.75rem; }
@media (min-width: 48rem) { .contact-steps { position: sticky; top: 2rem; } }
@media (prefers-reduced-motion: reduce) { .contact-tile:hover { transform: none; } }
@media (min-width: 48rem) { .contact-main > .contact-steps { grid-row: 1; } }
.contact-tile__value--long { font-size: clamp(1.0625rem, 0.95rem + 0.4vw, 1.25rem); }
