:root {
  --ink: #111113;
  --graphite: #3b3c40;
  --stone: #8d8e93;
  --sky: #dfdfe1;
  --signal: #ffdd00;
  --paper: #ececee;
  --mist: #b6b7bc;
  --line: rgb(17 17 19 / .16);
  --sans: "IBM Plex Sans Hebrew", "Arial Hebrew", Arial, sans-serif;
  --serif: "Frank Ruhl Libre", "David Libre", Georgia, serif;
  --u: calc(min(100vw, 1680px) / 1440);
  --strip: calc(32 * var(--u));
}
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--sky); }
body { color: var(--ink); font-family: var(--sans); -webkit-font-smoothing: antialiased; overflow-x: clip; }
a { color: inherit; text-decoration: none; }
a:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
p, h1 { margin: 0; }

.hero { position: relative; overflow: hidden; height: calc(100svh - var(--strip)); min-height: calc(760 * var(--u)); }
.art { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 100% 50%; }

.bar {
  position: fixed; z-index: 20; inset: 0 0 auto;
  height: calc(92 * var(--u)); padding-top: calc(18 * var(--u));
  padding-inline: calc(32 * var(--u));
  display: flex; align-items: center; gap: calc(52 * var(--u));
  transition: background-color .2s, box-shadow .2s, padding .2s, height .2s;
}
.bar.solid { background: rgb(223 223 225 / .97); box-shadow: 0 1px 0 var(--line); padding-top: 0; height: max(60px, calc(74 * var(--u))); }
.menu-btn { display: none; }
.brand { display: flex; align-items: center; gap: calc(10 * var(--u)); justify-self: start; min-height: 44px; font-size: max(12px, calc(13 * var(--u))); line-height: 1; font-weight: 400; letter-spacing: .06em; }
.brand .word { font-weight: 700; font-size: max(18px, calc(20 * var(--u))); letter-spacing: .1em; }
.mark { flex: none; width: max(30px, calc(34 * var(--u))); height: max(30px, calc(34 * var(--u))); }
.links { display: flex; gap: calc(30 * var(--u)); font-size: max(14px, calc(13 * var(--u))); color: var(--graphite); }
.links a { position: relative; line-height: calc(44 * var(--u)); }
.links a[aria-current] { color: var(--ink); }
.links a[aria-current]::after { content: ""; position: absolute; inset: auto 0 calc(4 * var(--u)) 0; height: max(3px, calc(4 * var(--u))); background: var(--signal); }
.links a:hover { color: var(--ink); }
.pill {
  margin-inline-start: auto; display: flex; align-items: center; gap: calc(9 * var(--u));
  height: max(38px, calc(44 * var(--u))); padding-inline: max(12px, calc(16 * var(--u))) max(7px, calc(9 * var(--u)));
  background: var(--signal); color: var(--ink); font-weight: 700; font-size: max(12px, calc(13.5 * var(--u)));
  transition: background-color .16s, color .16s;
}
.pill svg { width: calc(23 * var(--u)); height: calc(23 * var(--u)); }
.pill:hover { background: var(--ink); color: var(--signal); }

.rail { position: absolute; z-index: 2; right: calc(38 * var(--u)); top: calc(314 * var(--u)); display: grid; justify-items: center; gap: calc(22 * var(--u)); }
.rail span { writing-mode: vertical-rl; font-family: var(--serif); font-size: calc(18.4 * var(--u)); color: var(--graphite); }
.rail i { width: 1px; height: calc(150 * var(--u)); background: var(--graphite); }
.rail b { display: grid; place-items: center; width: calc(36 * var(--u)); height: calc(36 * var(--u)); border: 1px solid var(--ink); background: var(--signal); font: 700 calc(15 * var(--u)) var(--sans); }

.pitch { position: absolute; z-index: 2; top: calc(140 * var(--u)); right: calc(102 * var(--u)); width: calc(620 * var(--u)); }
h1 { font-weight: 300; font-size: calc(104.8 * var(--u)); line-height: .96; }
.place { display: inline-block; margin-top: calc(14 * var(--u)); font-family: var(--serif); font-size: calc(42 * var(--u)); line-height: 1.16; background: var(--signal); padding-inline: calc(12 * var(--u)); }
.summary { margin-top: calc(14 * var(--u)); font-family: var(--serif); font-size: calc(21 * var(--u)); line-height: 1.38; color: var(--graphite); }
.meta { margin-top: calc(56 * var(--u)); font-size: max(13px, calc(13.5 * var(--u))); line-height: 1.55; letter-spacing: .02em; }

.strip { display: grid; grid-template-columns: 32fr 28fr 40fr; gap: 2px; height: var(--strip); background: var(--sky); }
.strip i:nth-child(1) { background: var(--ink); }
.strip i:nth-child(2) { background: var(--stone); }
.strip i:nth-child(3) { background: var(--signal); }

/* Below the hero: alternating bands, same type system */
html { scroll-behavior: smooth; }
[id] { scroll-margin-top: 84px; }
.wrap { max-width: 1280px; margin-inline: auto; padding-inline: clamp(16px, 4.4vw, 64px); }
.band { padding-block: clamp(72px, 9vw, 136px); }
.label { display: block; margin-bottom: 14px; font-size: 14px; letter-spacing: .08em; color: var(--graphite); }
.label::before { content: ""; display: inline-block; width: 10px; height: 10px; margin-inline-end: 10px; border: 1px solid var(--ink); background: var(--signal); }
h2 { margin: 0; font-weight: 300; font-size: clamp(40px, 5.2vw, 76px); line-height: 1.04; text-wrap: balance; }
.lead { max-width: 30em; font-size: clamp(17px, 1.4vw, 20px); line-height: 1.55; color: var(--graphite); }
.head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 20px 48px; margin-bottom: clamp(40px, 5vw, 72px); }

.cards { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 2px solid var(--ink); }
.card { position: relative; display: grid; align-content: start; gap: 14px; padding: 30px 24px 34px; border-inline-start: 1px solid var(--line); }
.card:first-child { border-inline-start: 0; padding-inline-start: 0; }
.card::before { content: ""; position: absolute; inset: -2px 0 auto; height: 2px; background: var(--signal); transform: scaleX(0); transform-origin: right; transition: transform .3s; }
.card:hover::before { transform: scaleX(1); }
.icon { display: block; position: relative; width: 52px; height: 52px; margin-bottom: 6px; }
.icon::before { content: ""; position: absolute; inset: 12px 12px -6px -6px; background: var(--signal); }
.icon svg { position: relative; width: 100%; height: 100%; }
.card h3 { margin: 0; font-weight: 400; font-size: 26px; }
.card p { margin: 0; font-size: 16px; line-height: 1.6; color: var(--graphite); }

.dark { background: var(--ink); color: var(--paper); }
.dark .label, .dark .lead { color: var(--mist); }
.dark .label::before { border-color: var(--signal); }
.steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px; margin: 0; padding: 0; list-style: none; }
.steps li { position: relative; padding-top: 34px; border-top: 2px solid var(--signal); }
.steps li::before { content: ""; position: absolute; top: -7px; inset-inline-start: 0; width: 12px; height: 12px; border-radius: 50%; background: var(--signal); }
.steps .n { display: block; font-weight: 300; font-size: clamp(48px, 5vw, 72px); line-height: 1; color: var(--signal); }
.steps h3 { margin: 18px 0 10px; font-weight: 400; font-size: 24px; }
.steps p { margin: 0; line-height: 1.6; color: var(--mist); }

.works { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(28px, 3vw, 48px); }
.shot { position: relative; display: grid; place-items: center; aspect-ratio: 16 / 10; overflow: hidden; border: 1px solid var(--ink); background: #c9cacd; }
.shot.browser { padding-top: 30px; }
.shot.browser::before { content: ""; position: absolute; inset: 0 0 auto; height: 30px; background: var(--ink); }
.shot.browser::after { content: ""; position: absolute; top: 11px; right: 14px; width: 8px; height: 8px; border-radius: 50%; background: var(--signal); box-shadow: -14px 0 0 var(--stone), -28px 0 0 var(--stone); }
.phone { display: grid; place-items: center; height: 84%; aspect-ratio: 9 / 19; border: 2px solid var(--ink); border-radius: 22px; background: var(--sky); }
.ph { padding: 8px; font-size: 14px; text-align: center; color: var(--graphite); }
.work .row { display: flex; align-items: center; gap: 12px; margin: 22px 0 10px; }
.tag { padding: 2px 10px; border: 1px solid var(--ink); font-size: 13px; }
.work h3 { margin: 0; font-weight: 400; font-size: clamp(28px, 2.6vw, 38px); }
.work p { margin: 8px 0 0; max-width: 32em; line-height: 1.6; color: var(--graphite); }

.ui { display: grid; grid-template-columns: 26% 1fr; grid-template-rows: 16% 1fr 1fr; gap: 8px; width: 86%; height: 80%; }
.ui i { border: 1px solid var(--line); background: var(--paper); }
.ui i:nth-child(1) { grid-column: 1 / -1; background: var(--ink); }
.ui i:nth-child(2) { grid-row: 2 / 4; }
.ui i:nth-child(3) { background: repeating-linear-gradient(to bottom, var(--sky) 0 14px, var(--paper) 14px 28px); }
.ui i:nth-child(4) { background: linear-gradient(to top, var(--signal) 0 55%, transparent 55%) 80% 100% / 12% 100% no-repeat, linear-gradient(to top, var(--ink) 0 80%, transparent 80%) 50% 100% / 12% 100% no-repeat, linear-gradient(to top, var(--stone) 0 35%, transparent 35%) 20% 100% / 12% 100% no-repeat, var(--paper); }
.cal { width: 78%; aspect-ratio: 7 / 6; border: 1px solid var(--ink); background-color: var(--signal); background-image: linear-gradient(var(--ink) 1px, transparent 1px), linear-gradient(90deg, var(--ink) 1px, transparent 1px); background-size: calc(100% / 7) calc(100% / 6); }

.why { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(28px, 4vw, 64px); }
.why div { padding-top: 22px; border-top: 2px solid var(--ink); }
.why h3 { margin: 0 0 12px; font-family: var(--serif); font-weight: 400; font-size: clamp(26px, 2.4vw, 34px); line-height: 1.2; }
.why p { margin: 0; line-height: 1.6; color: var(--graphite); }

.faq { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr); gap: 32px clamp(32px, 6vw, 96px); align-items: start; }
.faq .lead { margin-top: 18px; }
.faq details { border-top: 1px solid var(--ink); }
.faq details:last-child { border-bottom: 1px solid var(--ink); }
.faq summary { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 22px 0; list-style: none; cursor: pointer; font-size: clamp(19px, 1.6vw, 23px); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-weight: 300; font-size: 30px; line-height: 1; transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq summary:focus-visible { outline: 2px solid var(--ink); outline-offset: 4px; }
.faq details p { margin: 0 0 24px; max-width: 38em; line-height: 1.6; color: var(--graphite); }

.closing { background: var(--signal); }
.closing .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 32px; }
.closing h2 { font-size: clamp(52px, 8vw, 128px); line-height: .98; }
.btn-dark { display: inline-flex; align-items: center; gap: 12px; padding: 16px 26px 16px 16px; background: var(--ink); color: var(--signal); font-weight: 700; font-size: 18px; transition: background-color .16s, color .16s; }
.btn-dark svg { width: 26px; height: 26px; }
.btn-dark:hover { background: var(--sky); color: var(--ink); }

.foot { padding-block: 56px 28px; background: var(--ink); color: var(--paper); }
.foot .cols { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 32px; }
.foot .name { display: flex; align-items: center; gap: 12px; letter-spacing: .1em; font-weight: 700; font-size: 26px; }
.foot .cols p { margin: 8px 0 0; color: var(--mist); }
.foot h2 { margin: 0 0 10px; font-weight: 400; font-size: 13px; letter-spacing: .08em; color: var(--stone); }
.foot a { display: block; line-height: 2; }
.foot a:hover { color: var(--signal); }
.foot .legal { margin-top: 48px; padding-top: 18px; border-top: 1px solid var(--graphite); font-size: 13px; color: var(--stone); }
.dark a:focus-visible, .foot a:focus-visible { outline-color: var(--signal); }

.float-wa { display: none; }

@media (max-width: 1024px) {
  .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .card:nth-child(odd) { border-inline-start: 0; padding-inline-start: 0; }
  .card:nth-child(n+3) { border-top: 1px solid var(--line); }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 44px 32px; }
  .why, .faq { grid-template-columns: minmax(0, 1fr); }
  .foot .cols { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .float-wa { display: flex; position: fixed; z-index: 15; left: 16px; bottom: max(16px, env(safe-area-inset-bottom)); align-items: center; gap: 8px; height: 52px; padding-inline: 18px 14px; border: 1px solid var(--ink); background: var(--signal); color: var(--ink); font-weight: 700; transform: translateY(160%); transition: transform .25s; }
  .float-wa.show { transform: none; }
  .float-wa svg { width: 22px; height: 22px; }
}
@media (max-width: 640px) {
  .cards, .steps, .works { grid-template-columns: minmax(0, 1fr); }
  .card, .card:nth-child(odd) { border-inline-start: 0; padding-inline: 0; }
  .card + .card { border-top: 1px solid var(--line); }
  .foot .cols { grid-template-columns: minmax(0, 1fr); }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .card::before, .float-wa, .bar { transition: none; } }

@media (max-width: 1024px) {
  :root { --strip: 24px; }
  .hero { height: auto; min-height: 0; display: flex; flex-direction: column; }
  .art { position: static; order: 3; height: 90vw; object-position: 0 50%; -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 28%); mask-image: linear-gradient(to bottom, transparent 0, #000 28%); }
  .rail, .links { display: none; }
  .hero { padding-top: 72px; }
  .bar, .bar.solid { height: 72px; padding: 0 16px; gap: 10px; background: var(--sky); box-shadow: 0 1px 0 var(--line); }
  .menu-btn { display: grid; place-items: center; width: 44px; height: 44px; padding: 0; border: 1px solid var(--ink); background: none; color: var(--ink); cursor: pointer; }
  .menu-btn svg { width: 22px; height: 22px; }
  .bar.open .links { display: flex; position: fixed; inset: 72px 0 auto; flex-direction: column; gap: 0; padding: 12px 16px 28px; background: var(--sky); box-shadow: 0 1px 0 var(--line); font-size: 26px; color: var(--ink); }
  .bar.open .links a { line-height: 1.9; }
  .bar.open .links a[aria-current]::after { display: none; }
  .bar.open .links a[aria-current] { font-weight: 700; box-shadow: inset 0 -10px 0 var(--signal); align-self: start; }
  .bar.open .menu-btn { background: var(--ink); color: var(--signal); }
  .bar.open .menu-btn path { d: path("M5 5l14 14M19 5L5 19"); }
  .brand { gap: 9px; font-size: 13px; }
  .mark { width: 32px; height: 32px; }
  .pill { height: 44px; gap: 8px; padding-inline: 14px 9px; font-size: 15px; }
  .pill svg { width: 22px; height: 22px; }
  .pitch { position: static; order: 2; width: auto; padding: 14px 16px 24px; }
  h1 { font-size: clamp(58px, 16vw, 92px); }
  .place { margin-top: 12px; font-size: clamp(27px, 7.4vw, 44px); padding-inline: 8px; }
  .summary { margin-top: 12px; font-size: 19px; }
  .meta { margin-top: 18px; font-size: 14px; }
}
@media (prefers-reduced-motion: reduce) { .pill { transition: none; } }

/* Shared pieces for inner pages */
.skip { position: absolute; z-index: 30; top: -80px; inset-inline-start: 16px; padding: 10px 16px; background: var(--ink); color: var(--signal); font-weight: 700; }
.skip:focus { top: 12px; }
.foot h2 { line-height: 1.4; }
.foot .legal a { display: inline-block; padding-block: 10px; line-height: 1.4; }
.foot nav a, .foot .cols div a { line-height: 2.5; }
.tools { display: flex; flex-wrap: wrap; gap: 10px; margin: 0; padding: 0; list-style: none; }
.tools li { padding: 8px 16px; border: 1px solid var(--ink); background: var(--sky); font-size: 16px; }
button.btn-dark { border: 0; cursor: pointer; font-family: inherit; }
.more { justify-self: start; display: inline-block; padding-block: 9px 7px; font-weight: 700; border-bottom: 2px solid var(--signal); transition: background-color .16s; }
.more:hover { background: var(--signal); }
.work .more { margin-top: 14px; }
.work h2 { margin: 0; font-weight: 400; font-size: clamp(28px, 2.6vw, 38px); }

.page-head { background: var(--sky); padding-block: clamp(120px, 12vw, 180px) clamp(48px, 6vw, 88px); }
.page-head h1 { font-size: clamp(50px, 7vw, 108px); line-height: 1; text-wrap: balance; }
.page-head .lead { margin: 22px 0 0; }
.page-head .label a { display: inline-block; padding-block: 10px; text-decoration: underline; text-underline-offset: 4px; }

.svc { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr); gap: 28px clamp(32px, 6vw, 96px); padding-block: clamp(48px, 6vw, 88px); border-top: 2px solid var(--ink); }
.svc:first-child { border-top: 0; }
.svc h2 { margin-top: 10px; font-size: clamp(36px, 4vw, 56px); }
.svc .for { margin: 14px 0 0; font-family: var(--serif); font-size: clamp(20px, 1.8vw, 25px); line-height: 1.4; color: var(--graphite); }
.ticks { display: grid; gap: 14px; margin: 0 0 28px; padding: 0; list-style: none; font-size: 18px; line-height: 1.55; }
.ticks li { position: relative; padding-inline-start: 26px; }
.ticks li::before { content: ""; position: absolute; inset-inline-start: 0; top: .45em; width: 10px; height: 10px; border: 1px solid var(--ink); background: var(--signal); }

.project { display: grid; gap: clamp(36px, 5vw, 64px); }
.project .shot { max-width: 960px; }
.project .cols { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: 32px clamp(32px, 6vw, 96px); }
.project h2 { margin-bottom: 18px; font-size: clamp(30px, 3vw, 42px); }
.project p { margin: 0; max-width: 34em; font-size: 18px; line-height: 1.65; color: var(--graphite); }
.project .ticks { margin-bottom: 0; }

.prose { max-width: 820px; }
.prose h2 { margin: 44px 0 14px; font-size: clamp(28px, 2.8vw, 38px); }
.prose h2:first-child { margin-top: 0; }
.prose p, .prose li { font-size: 18px; line-height: 1.7; color: var(--graphite); }
.prose ul { display: grid; gap: 10px; padding-inline-start: 22px; }
.prose a, .note a { border-bottom: 1px solid currentColor; }

.contact { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr); gap: 40px clamp(32px, 6vw, 96px); align-items: start; }
.contact h2 { margin-bottom: 16px; font-size: clamp(30px, 3vw, 42px); }
.big-link { display: inline-block; padding-block: 6px; font-size: clamp(22px, 2.4vw, 32px); border-bottom: 2px solid var(--signal); }
.big-link:hover { background: var(--signal); }
.note { margin: 14px 0 0; max-width: 34em; font-size: 15px; line-height: 1.6; color: var(--graphite); }
.form { display: grid; gap: 20px; }
.field { display: grid; gap: 6px; }
.field label { font-weight: 700; }
.field input, .field select, .field textarea { width: 100%; padding: 12px 14px; border: 1px solid var(--ink); border-radius: 0; background: var(--sky); color: var(--ink); font: inherit; font-size: 17px; }
.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible { outline: 3px solid var(--signal); outline-offset: 0; }
.field [aria-invalid="true"] { border-color: #a31515; border-width: 2px; }
.err { margin: 0; font-size: 15px; color: #a31515; }
.form .btn-dark { justify-self: start; }

@media (max-width: 1024px) {
  .svc, .contact, .project .cols { grid-template-columns: minmax(0, 1fr); }
  .page-head { padding-top: 112px; }
}

/* The logo is Latin: the mark always sits left of the name, also on RTL pages */
.brand, .foot .name { direction: ltr; }
.foot .name { justify-content: flex-end; }

/* Header order in RTL: menu and contact button on the right, logo on the left.
   The logo gets a plate in the page colour so it stays readable over the hero art. */
.bar .links { order: 1; }
.bar .pill { order: 2; margin-inline-start: 0; }
.bar .brand { order: 3; margin-inline: 0; margin-right: auto; padding-inline: 12px; background: var(--sky); }
.bar .menu-btn { order: 0; }

/* Wide screens: at the top of the page the header is see-through, with a soft light fog
   behind it so the logo and menu stay readable over the hero art. After scrolling it turns solid. */
.bar .brand { padding-inline: 0; background: none; }
@media (min-width: 1025px) {
  .bar:not(.solid)::before {
    content: ""; position: absolute; inset: 0 0 auto; z-index: -1; pointer-events: none;
    height: calc(190 * var(--u));
    background: linear-gradient(rgb(223 223 225 / .97), rgb(223 223 225 / .82) 38%, rgb(223 223 225 / 0));
  }
}

/* Header contact link: text with a yellow marker stroke instead of a filled button. */
.bar .pill {
  position: relative; height: auto; padding: 1px 3px; gap: 6px;
  background: none; color: var(--ink); box-shadow: inset 0 -.55em 0 var(--signal);
  font-size: max(14px, calc(14 * var(--u))); line-height: 1.5; transition: box-shadow .16s;
}
.bar .pill svg { display: none; }
.bar .pill::after { content: "←"; }
.bar .pill::before { content: ""; position: absolute; inset: -12px -6px; }
.bar .pill:hover { background: none; color: var(--ink); box-shadow: inset 0 -1.6em 0 var(--signal); }
@media (max-width: 1024px) { .bar .pill { font-size: 16px; margin-inline-start: 6px; } }
@media (prefers-reduced-motion: reduce) { .bar .pill { transition: none; } }

/* Wide screens: the menu and the contact link share one, larger text size. */
@media (min-width: 1025px) {
  .bar .links, .bar .pill { font-size: max(18px, calc(21 * var(--u))); }
  .bar .links { gap: calc(40 * var(--u)); }
}

/* Social icons: a column beside the hero on wide screens, a row in the footer everywhere. */
.soc { display: grid; place-items: center; width: 40px; height: 40px; border: 1px solid var(--ink); background: var(--sky); color: var(--ink); transition: background-color .16s, color .16s; }
.soc svg { width: 21px; height: 21px; }
.soc.whatsapp { background: var(--signal); }
.soc:hover { background: var(--ink); color: var(--signal); }
.rail.social { gap: 8px; top: calc(150 * var(--u)); right: calc(32 * var(--u)); }
.rail.social i { margin-top: 10px; height: calc(120 * var(--u)); }
.foot .soc-row { display: flex; gap: 8px; margin-top: 14px; direction: ltr; justify-content: flex-end; }
.foot .cols .soc-row .soc { display: grid; line-height: 1; background: none; border-color: var(--mist); color: var(--paper); line-height: 1; }
.foot .soc-row .soc.whatsapp { background: var(--signal); border-color: var(--signal); color: var(--ink); }
.foot .soc-row .soc:hover { background: var(--paper); border-color: var(--paper); color: var(--ink); }
@media (prefers-reduced-motion: reduce) { .soc { transition: none; } }

/* The icon column spans exactly the headline block: from the top of the h1 to the bottom of the yellow line. */
.rail.social { top: calc(202 * var(--u)); height: calc(303 * var(--u)); grid-template-rows: auto auto auto 1fr; align-content: stretch; }
.rail.social i { margin-top: 6px; height: auto; align-self: stretch; }

/* Sibling cards: the trailing link sits on one line across the row, whatever the text length. */
.card { grid-template-rows: auto auto 1fr auto; }
.work { display: flex; flex-direction: column; }
.work p { margin-bottom: 14px; }
.work .more { margin-top: auto; align-self: flex-start; }

/* No lone word on the last line: short texts are balanced, longer ones wrap "pretty". */
p, li, dd, dt, summary, figcaption, label, td, .lead { text-wrap: pretty; }
h1, h3, h3 + p, details p, .lead, .summary, .for, .card p, .steps p, .work p, li { text-wrap: balance; }
