/* Elizabeth Zahaievska portfolio. Static HTML and CSS, no build step. */
:root {
  --bg: #f4f3ef;
  --ink: #121212;
  --soft: #55554f;
  --line: #dcdad3;
  --dark: #141414;
  --dark-2: #232323;
  --dark-line: #333;
  --dark-soft: #b4b4ad;
  --lime: #cdf564;
  --r: 18px;
  --font: "Onest", "Helvetica Neue", Arial, sans-serif;
  --ease: cubic-bezier(.16, 1, .3, 1);
  scrollbar-color: var(--ink) var(--bg);
}

* { box-sizing: border-box; margin: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 5rem; -webkit-text-size-adjust: 100%; }
body { background: var(--bg); color: var(--ink); font: 400 1.0625rem/1.6 var(--font); overflow-x: hidden; }
::selection { background: var(--lime); color: var(--ink); }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; border-radius: 4px; }
.dark :focus-visible { outline-color: var(--lime); }
a { color: inherit; text-underline-offset: .2em; text-decoration-thickness: 1px; }
img, video { display: block; width: 100%; }
.wrap { max-width: 76rem; margin: 0 auto; padding: 0 clamp(1.25rem, 4vw, 2.5rem); }
.skip { position: fixed; left: 1rem; top: -4rem; z-index: 50; background: var(--ink); color: #fff; padding: .6rem 1rem; border-radius: 999px; }
.skip:focus { top: 1rem; }
.placeholder { color: var(--soft); background: rgba(255, 255, 255, .55); border: 1.5px dashed #b9b7ae; border-radius: 12px; padding: 1.1rem 1.25rem; font-size: 1rem; }
.dark .placeholder { color: var(--dark-soft); border-color: #444; background: none; }

/* Menu */
.top { position: sticky; top: 0; z-index: 20; background: rgba(244, 243, 239, .88); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.top .wrap { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; min-height: 4.25rem; }
.brand { font-weight: 700; letter-spacing: -.02em; font-size: 1.05rem; text-decoration: none; }
.top nav { display: flex; align-items: center; gap: 1.75rem; font-size: .95rem; font-weight: 500; }
.top nav a { text-decoration: none; }
.top nav a:not(.btn):hover { text-decoration: underline; }

/* Buttons */
.btn { display: inline-flex; align-items: center; gap: .6rem; min-height: 3.1rem; padding: 0 1.4rem; border-radius: 999px; background: var(--ink); color: #fff; font: 600 1rem/1 var(--font); text-decoration: none; border: 0; cursor: pointer; transition: background-color .25s, color .25s, box-shadow .25s; }
.btn:hover { background: var(--lime); color: var(--ink); }
.btn.line { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--ink); }
.btn.line:hover { background: var(--ink); color: #fff; }
.btn.small { min-height: 2.5rem; padding: 0 1.05rem; font-size: .9rem; }
.dark .btn.line { color: #f4f3ef; box-shadow: inset 0 0 0 1.5px #f4f3ef; }
.dark .btn.line:hover { background: var(--lime); color: var(--ink); box-shadow: none; }
.arrow { flex: none; transition: transform .35s var(--ease); }
a:hover > .arrow, .btn:hover .arrow, a:hover .arrow { transform: translateX(3px); }
.acts { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 2rem; }

/* Headings */
h1, h2, h3 { font-weight: 700; letter-spacing: -.035em; text-wrap: balance; }
h2 { font-size: clamp(2.4rem, 5vw, 4.25rem); line-height: .98; letter-spacing: -.045em; }
section { padding-block: clamp(4.5rem, 11vh, 7rem); }
.head { display: flex; justify-content: space-between; align-items: end; gap: 2rem; margin-bottom: 2.5rem; }
.head p { max-width: 24rem; color: var(--soft); }
.dark .head p { color: var(--dark-soft); }

/* Introduction */
.hero { padding-top: clamp(3.5rem, 9vh, 6.5rem); padding-bottom: clamp(2.5rem, 6vh, 4rem); }
.hero h1 { font-size: clamp(3.2rem, 8.6vw, 7.4rem); line-height: .92; letter-spacing: -.055em; }
.roleline { margin-top: .9rem; font-weight: 600; font-size: clamp(1.9rem, 4.4vw, 3.6rem); line-height: 1.05; letter-spacing: -.04em; color: var(--soft); }
.roleline span { color: var(--ink); background: var(--lime); padding: 0 .18em; border-radius: .12em; display: inline-block; transition: opacity .25s; }
.chips { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1.75rem; list-style: none; padding: 0; }
.chips li { border: 1px solid var(--line); background: #fff; border-radius: 999px; padding: .35rem .85rem; font-size: .9rem; font-weight: 500; }
.intro { display: grid; grid-template-columns: 1fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: end; margin-top: clamp(2.5rem, 6vh, 3.5rem); }
.intro p { font-size: 1.125rem; max-width: 40rem; }
.intro p + p { margin-top: 1.1rem; }
.intro p a { text-decoration-thickness: 1.5px; }
.intro p a:hover { background: var(--lime); }
.portrait { border-radius: var(--r); aspect-ratio: 4 / 5; object-fit: cover; object-position: center 20%; }

/* Work strip */
.strip { overflow: hidden; padding: clamp(2rem, 5vh, 3rem) 0; border-block: 1px solid var(--line); }
.track { display: flex; gap: 1rem; width: max-content; animation: slide 60s linear infinite; }
.strip:hover .track { animation-play-state: paused; }
.track img { width: auto; height: clamp(11rem, 22vh, 15rem); border-radius: 12px; object-fit: cover; }
@keyframes slide { to { transform: translateX(-50%); } }

/* Services */
.svc { border-top: 1px solid var(--ink); }
.svc details { border-bottom: 1px solid var(--line); }
.svc summary { list-style: none; display: grid; grid-template-columns: 4rem 1fr auto; align-items: center; gap: 1rem; padding: 1.4rem 0; cursor: pointer; }
.svc summary::-webkit-details-marker { display: none; }
.svc .n { font-size: .95rem; color: var(--soft); font-variant-numeric: tabular-nums; }
.svc .t { font-weight: 600; font-size: clamp(1.35rem, 2.4vw, 2rem); letter-spacing: -.025em; line-height: 1.2; }
.pm { position: relative; width: 2.4rem; height: 2.4rem; border-radius: 50%; border: 1.5px solid var(--ink); transition: background-color .25s, transform .35s var(--ease); }
.pm::before, .pm::after { content: ""; position: absolute; left: 50%; top: 50%; width: .8rem; height: 1.5px; background: var(--ink); transform: translate(-50%, -50%); }
.pm::after { transform: translate(-50%, -50%) rotate(90deg); }
.svc summary:hover .pm { background: var(--lime); }
.svc details[open] .pm { transform: rotate(45deg); background: var(--lime); }
.svc .d { padding: 0 3.5rem 1.6rem 5rem; color: var(--soft); font-size: 1.0625rem; max-width: 52rem; }

/* Projects, dark band */
.dark { background: var(--dark); color: #f4f3ef; }
.bento { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); grid-auto-rows: 15.5rem; gap: 1rem; }
.card { position: relative; overflow: hidden; border-radius: var(--r); background: var(--dark-2); text-decoration: none; color: #fff; display: block; }
.card.big { grid-column: span 2; grid-row: span 2; }
.card img { position: absolute; inset: 0; height: 100%; object-fit: cover; object-position: center top; transition: transform 1.1s var(--ease); }
.card:hover img { transform: scale(1.04); }
.card .info { position: absolute; left: 0; right: 0; bottom: 0; padding: 3.5rem 1.25rem 1.15rem; background: linear-gradient(transparent, rgba(0, 0, 0, .8)); }
.card .info b { display: flex; justify-content: space-between; align-items: center; gap: 1rem; font-weight: 600; font-size: 1.25rem; letter-spacing: -.02em; }
.card.big .info b { font-size: 1.9rem; }
.card .info span { display: block; color: #e6e6e0; font-size: .975rem; line-height: 1.45; margin-top: .2rem; max-width: 34rem; }
.card.type { padding: 1.4rem; display: flex; flex-direction: column; justify-content: space-between; }
.card.type .fig { font-weight: 700; font-size: clamp(2.2rem, 3.6vw, 3.2rem); letter-spacing: -.05em; line-height: 1; color: var(--lime); }
.card.type .info { position: static; padding: 0; background: none; }
.card:hover .info b { color: var(--lime); }
.more { margin-top: 1.75rem; display: flex; justify-content: center; }
.list { margin: 1.5rem auto 0; max-width: 46rem; border-top: 1px solid var(--dark-line); }
.list a { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: 1rem 0; border-bottom: 1px solid var(--dark-line); text-decoration: none; }
.list a:hover b { color: var(--lime); }
.list b { font-weight: 600; }
.list small { display: block; color: var(--dark-soft); font-size: .95rem; }
.list .txt { flex: 1; min-width: 0; }
.list .thumb { flex: 0 0 auto; width: 4.5rem; height: 4.5rem; border-radius: 12px; object-fit: cover; }
.list .thumb.fig { display: grid; place-items: center; background: var(--dark-2); color: var(--lime); font-weight: 700; font-size: 1.15rem; letter-spacing: -.03em; }

/* Reviews */
.quotes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.25rem; }
.q { background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 1.75rem; display: flex; flex-direction: column; justify-content: space-between; gap: 1.5rem; }
.q blockquote { font-size: 1.1rem; line-height: 1.5; }
.q.lead blockquote { font-weight: 600; font-size: 1.45rem; line-height: 1.3; letter-spacing: -.02em; }
.q figcaption { font-size: .925rem; color: var(--soft); }
.q figcaption b { display: block; color: var(--ink); font-weight: 600; }

/* Closing panel */
.close { background: var(--lime); border-radius: calc(var(--r) + 6px); padding: clamp(3rem, 8vh, 5rem) clamp(1.5rem, 5vw, 4rem); margin-bottom: clamp(3rem, 8vh, 5rem); display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 2rem; }
.close h2 { max-width: 14ch; }
.close p { margin-top: 1rem; font-size: 1.125rem; }
.close .acts { margin: 0; }
.close .btn:not(.line):hover { background: #fff; color: var(--ink); }

/* Project pages */
.p-hero { padding-top: clamp(2.5rem, 7vh, 4.5rem); padding-bottom: 2rem; }
.back { display: inline-flex; align-items: center; gap: .5rem; font-weight: 500; text-decoration: none; margin-bottom: 2rem; }
.back .arrow { transform: rotate(180deg); }
.back:hover .arrow { transform: rotate(180deg) translateX(3px); }
.p-hero h1 { font-size: clamp(3rem, 7.4vw, 6.4rem); line-height: .94; letter-spacing: -.055em; }
.p-hero .chips { margin-top: 1.4rem; }
.result { margin-top: 1.75rem; max-width: 46rem; font-weight: 600; font-size: clamp(1.5rem, 2.8vw, 2.3rem); line-height: 1.2; letter-spacing: -.03em; }
.result mark { background: var(--lime); color: var(--ink); padding: 0 .15em; border-radius: .1em; }
.p-body { max-width: 46rem; }
.p-body > * + * { margin-top: 1.25rem; }
.p-body p { font-size: 1.125rem; }
.p-body h2 { font-size: clamp(1.75rem, 3vw, 2.4rem); margin-top: 3rem; }
.media { margin-block: clamp(2rem, 5vh, 3rem); max-width: 64rem; }
.media figure + figure { margin-top: 1.5rem; }
.media img, .media video { border-radius: var(--r); background: #ddd; }
.media figcaption, .pair figcaption { margin-top: .6rem; color: var(--soft); font-size: .95rem; }
.pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.25rem; align-items: start; }
.pair video { max-height: 80vh; object-fit: contain; background: #111; }
.stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; max-width: 64rem; margin-block: clamp(2rem, 5vh, 3rem); }
.stat { background: var(--dark); color: #f4f3ef; border-radius: var(--r); padding: 1.5rem; display: flex; flex-direction: column; gap: .6rem; min-height: 11rem; justify-content: space-between; }
.stat b { color: var(--lime); font-weight: 700; font-size: clamp(2rem, 3.6vw, 3rem); letter-spacing: -.05em; line-height: 1; }
.stat span { color: var(--dark-soft); font-size: 1rem; line-height: 1.45; }
.tags { display: flex; flex-wrap: wrap; gap: .5rem; list-style: none; padding: 0; }
.tags li { background: var(--dark); color: #f4f3ef; border-radius: 999px; padding: .45rem .95rem; font-weight: 500; font-size: .95rem; }
.steps { list-style: none; padding: 0; counter-reset: s; border-top: 1px solid var(--ink); }
.steps li { counter-increment: s; display: grid; grid-template-columns: 3rem 1fr; gap: 1rem; padding: 1.1rem 0; border-bottom: 1px solid var(--line); font-size: 1.125rem; }
.steps li::before { content: counter(s, decimal-leading-zero); color: var(--soft); font-variant-numeric: tabular-nums; }
.bigquote { background: var(--dark); color: #f4f3ef; border-radius: var(--r); padding: clamp(1.75rem, 4vw, 3rem); max-width: 64rem; margin-block: clamp(2rem, 5vh, 3rem); }
.bigquote blockquote { font-weight: 600; font-size: clamp(1.35rem, 2.4vw, 2rem); line-height: 1.3; letter-spacing: -.02em; }
.bigquote figcaption { margin-top: 1.25rem; color: var(--dark-soft); }
.bigquote figcaption b { color: var(--lime); font-weight: 600; }
.split { display: grid; grid-template-columns: 18rem 1fr; gap: clamp(1.5rem, 4vw, 3rem); align-items: center; max-width: 64rem; margin-block: clamp(2rem, 5vh, 3rem); }
.split img { border-radius: var(--r); }
.split .big { font-weight: 700; font-size: clamp(2.8rem, 6vw, 5rem); letter-spacing: -.055em; line-height: .95; }
.split .big mark { background: var(--lime); color: var(--ink); padding: 0 .1em; border-radius: .08em; }
.links { border-top: 1px solid var(--ink); }
.links a { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: 1.1rem 0; border-bottom: 1px solid var(--line); text-decoration: none; font-weight: 600; font-size: 1.125rem; }
.next { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; border-top: 1px solid var(--line); padding: 2rem 0; margin-top: clamp(3rem, 8vh, 5rem); }
.next .go { display: inline-flex; align-items: center; gap: .75rem; font-weight: 700; font-size: clamp(1.4rem, 2.6vw, 2rem); letter-spacing: -.03em; text-decoration: none; }
.next .go:hover { text-decoration: underline; text-decoration-color: var(--lime); text-decoration-thickness: 4px; }
.muted { color: var(--soft); }

@media (max-width: 860px) {
  .top nav a:not(.btn) { display: none; }
  .intro, .quotes, .split { grid-template-columns: 1fr; }
  .portrait { max-width: 22rem; }
  .split img { max-width: 16rem; }
  .bento { grid-template-columns: 1fr 1fr; grid-auto-rows: 13rem; }
  .head { flex-direction: column; align-items: start; }
  .svc summary { grid-template-columns: 2.5rem 1fr auto; }
  .svc .d { padding: 0 0 1.4rem 3.5rem; }
  .stats { grid-template-columns: 1fr; }
  .stat { min-height: 0; }
}
@media (max-width: 540px) {
  .bento { grid-template-columns: 1fr; grid-auto-rows: 14rem; }
  .card.big { grid-column: auto; grid-row: span 1; }
  .card.big img { object-position: 100% top !important; }
  .pair { grid-template-columns: 1fr; }
  .top .wrap { gap: .75rem; }
  .brand { font-size: .98rem; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .track { animation: none; }
  *, *::before, *::after { transition-duration: .01ms !important; }
}

/* Project page: facets and resources */
.facets { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.facets div { background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 1.4rem 1.5rem; }
.facets b { display: block; font-size: 1.2rem; letter-spacing: -.02em; margin-bottom: .4rem; }
.facets p { color: var(--soft); font-size: 1.0125rem; }
.facets a { font-weight: 600; }
.res { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.5rem; max-width: 64rem; margin-block: clamp(1.5rem, 4vh, 2.5rem); }
.res.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.res figure { display: flex; flex-direction: column; gap: .75rem; }
.res .cover { aspect-ratio: 3 / 4; border-radius: var(--r); display: grid; place-items: center; text-align: center; padding: 1.25rem; font-size: .95rem; }
.res .kind { font-size: .85rem; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; color: var(--soft); }
.res b { font-size: 1.15rem; line-height: 1.3; letter-spacing: -.015em; }
.res p { color: var(--soft); font-size: 1rem; }
@media (max-width: 860px) { .facets, .res, .res.two { grid-template-columns: 1fr; } .res .cover { max-width: 18rem; } }

/* Ghostwriting process */
.process { list-style: none; padding: 0; counter-reset: p; display: grid; gap: 1rem; }
.process li { counter-increment: p; display: grid; grid-template-columns: 4.5rem 1fr; gap: 1.25rem; align-items: start; background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 1.4rem 1.5rem; }
.process li::before { content: counter(p, decimal-leading-zero); font-weight: 700; font-size: 2.2rem; line-height: 1; letter-spacing: -.05em; color: var(--ink); background: var(--lime); border-radius: 12px; display: grid; place-items: center; height: 3.6rem; }
.process b { display: block; font-size: 1.25rem; letter-spacing: -.02em; margin-bottom: .3rem; }
.process p { color: var(--soft); font-size: 1.0625rem; }
.samples { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.25rem; max-width: 64rem; margin-block: clamp(1.5rem, 4vh, 2.5rem); }
.sample { display: flex; flex-direction: column; gap: .75rem; }
.sample .shot { aspect-ratio: 4 / 5; display: grid; place-items: center; text-align: center; border-radius: var(--r); padding: 1.5rem; }
.sample b { font-size: 1.1rem; letter-spacing: -.015em; }
@media (max-width: 860px) { .samples { grid-template-columns: 1fr; } .process li { grid-template-columns: 3.4rem 1fr; } .process li::before { font-size: 1.6rem; height: 2.8rem; } }
.outcomes { list-style: none; padding: 0; border-top: 1px solid var(--ink); }
.outcomes li { display: grid; grid-template-columns: 1.25rem 1fr; gap: .9rem; padding: 1rem 0; border-bottom: 1px solid var(--line); font-size: 1.125rem; }
.outcomes li::before { content: ""; width: .7rem; height: .7rem; margin-top: .55rem; border-radius: 50%; background: var(--lime); box-shadow: inset 0 0 0 1.5px var(--ink); }

/* Writing samples wall */
.wall { display: grid; grid-template-columns: 17rem 1fr; gap: clamp(1.5rem, 4vw, 3.5rem); max-width: 70rem; margin-block: clamp(2rem, 5vh, 3rem); align-items: start; }
.wall + .wall { padding-top: clamp(2rem, 5vh, 3rem); border-top: 1px solid var(--line); }
.wall-head { position: sticky; top: 6rem; display: flex; flex-direction: column; gap: .7rem; }
.wall-head .tag { align-self: flex-start; background: var(--lime); border-radius: 999px; padding: .3rem .8rem; font-size: .85rem; font-weight: 600; }
.wall-head h3 { font-size: clamp(1.6rem, 2.6vw, 2.1rem); line-height: 1.05; letter-spacing: -.04em; }
.wall-head p { color: var(--soft); font-size: 1rem; }
.posts { columns: 2; column-gap: 1rem; }
.post { break-inside: avoid; margin-bottom: 1rem; display: block; border-radius: 14px; overflow: hidden; background: #fff; border: 1px solid var(--line); box-shadow: 0 2px 6px rgba(0,0,0,.04); transition: transform .45s var(--ease), box-shadow .45s var(--ease); cursor: zoom-in; padding: 0; width: 100%; }
.post:hover { transform: translateY(-4px) rotate(-.4deg); box-shadow: 0 18px 36px -18px rgba(0,0,0,.35); }
.post:nth-child(even):hover { transform: translateY(-4px) rotate(.4deg); }
.post img { display: block; width: 100%; height: auto; }
.zoom { margin: auto; border: 0; padding: 0; background: transparent; max-width: min(92vw, 44rem); max-height: 92vh; overflow: visible; }
.zoom::backdrop { background: rgba(18, 18, 18, .82); backdrop-filter: blur(4px); }
.zoom img { border-radius: 14px; max-height: 86vh; width: auto; max-width: 100%; margin: 0 auto; }
.zoom .x { position: absolute; top: -.75rem; right: -.75rem; width: 2.75rem; height: 2.75rem; border-radius: 50%; border: 0; background: var(--lime); color: var(--ink); font: 700 1.3rem/1 var(--font); cursor: pointer; }
@media (max-width: 860px) {
  .wall { grid-template-columns: 1fr; }
  .wall-head { position: static; }
  .posts { columns: auto; display: flex; gap: .85rem; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: .75rem; margin-inline: calc(-1 * clamp(1.25rem, 4vw, 2.5rem)); padding-inline: clamp(1.25rem, 4vw, 2.5rem); }
  .post { flex: 0 0 78%; margin: 0; scroll-snap-align: start; }
}
@media (prefers-reduced-motion: reduce) { .post:hover, .post:nth-child(even):hover { transform: none; } }

/* One phone-sized recording. */
.solo { max-width: 20rem; }
.solo video { width: 100%; border-radius: var(--r); display: block; background: #111; }
.solo figcaption { margin-top: .6rem; color: var(--soft); font-size: .95rem; }

/* Three phone screens side by side; a swipe row on small screens. */
.trio { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.25rem; align-items: start; }
.trio img, .trio video { width: 100%; border-radius: var(--r); display: block; background: #111; }
.trio figcaption { margin-top: .6rem; color: var(--soft); font-size: .95rem; }
@media (max-width: 860px) {
  .trio { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 1rem; padding-bottom: .5rem; }
  .trio figure { flex: 0 0 68%; scroll-snap-align: start; }
}

/* Four vertical reels side by side; a swipe row on small screens. */
.quad { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; align-items: start; margin-block: clamp(1.5rem, 4vh, 2.5rem); }
.quad a { display: block; border-radius: var(--r); overflow: hidden; background: #111; }
.quad img { width: 100%; aspect-ratio: 9 / 16; object-fit: cover; display: block; transition: transform .4s; }
.quad a:hover img { transform: scale(1.03); }
.quad figcaption { margin-top: .6rem; color: var(--soft); font-size: .9rem; line-height: 1.4; }
@media (max-width: 860px) {
  .quad { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 1rem; padding-bottom: .5rem; }
  .quad figure { flex: 0 0 62%; scroll-snap-align: start; }
}
@media (prefers-reduced-motion: reduce) { .quad img { transition: none; } }

/* Ghostwritten posts as quiet text cards: the hook, one line, a link out. */
.lposts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; max-width: 64rem; margin-block: clamp(1.5rem, 4vh, 2.5rem); }
.lpost { display: flex; flex-direction: column; gap: .7rem; padding: 1.4rem 1.5rem; border: 1.5px solid var(--line); border-radius: var(--r); color: var(--ink); text-decoration: none; transition: border-color .25s, background-color .25s; }
.lpost b { font-size: 1.15rem; line-height: 1.3; letter-spacing: -.015em; }
.lpost p { color: var(--soft); font-size: 1rem; }
.lpost span { margin-top: auto; display: inline-flex; align-items: center; gap: .5rem; font-size: .9rem; font-weight: 600; }
.lpost:hover { border-color: var(--ink); background: rgba(255, 255, 255, .5); }
@media (max-width: 860px) { .lposts { grid-template-columns: 1fr; } }

/* A post that links out to LinkedIn instead of opening full size. */
a.post { cursor: pointer; }
.clips a { display: block; border-radius: var(--r); overflow: hidden; }
.clips img { aspect-ratio: 16 / 9; object-fit: cover; transition: transform .4s; }
.clips a:hover img { transform: scale(1.03); }
.clips figcaption { font-size: .9rem; line-height: 1.4; }
@media (prefers-reduced-motion: reduce) { .clips img { transition: none; } }

/* Room between the dark project band and the reviews. */
#reviews { padding-top: clamp(4.5rem, 11vh, 7rem); padding-bottom: clamp(3.5rem, 9vh, 5.5rem); }

/* Closing call to action: a dark panel with one lime word, so it reads as the end of the page, not another card. */
.close { display: block; background: var(--dark); color: #f4f3ef; padding: clamp(3.5rem, 10vh, 6rem) clamp(1.5rem, 5vw, 4.5rem); }
.close h2 { max-width: none; font-size: clamp(2.8rem, 7.5vw, 6.25rem); line-height: 1.02; letter-spacing: -.055em; }
.close h2 mark { background: var(--lime); color: var(--ink); padding: 0 .12em; border-radius: .1em; }
.close-row { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 1.5rem 2rem; margin-top: clamp(2.25rem, 6vh, 3.5rem); padding-top: clamp(1.5rem, 4vh, 2rem); border-top: 1px solid var(--dark-line); }
.close .close-row p { margin: 0; color: var(--dark-soft); }
.close .btn:not(.line) { background: var(--lime); color: var(--ink); }
.close .btn:not(.line):hover { background: #fff; color: var(--ink); }
.close .btn.line { color: #f4f3ef; box-shadow: inset 0 0 0 1.5px #f4f3ef; }
.close .btn.line:hover { background: var(--lime); color: var(--ink); box-shadow: none; }

/* Posts shown as they are: no zoom, no link, no hover lift. */
.post.still { cursor: default; }
.post.still:hover, .post.still:nth-child(even):hover { transform: none; box-shadow: 0 2px 6px rgba(0,0,0,.04); }

/* Room around My services: below the work strip and above the dark project band. */
#services { padding-top: clamp(4.5rem, 11vh, 7rem); padding-bottom: clamp(4.5rem, 11vh, 7rem); }

/* Call-to-action buttons in the page body: lime, a size up, a thin ink edge so they hold on the light ground. */
.acts .btn { min-height: 3.6rem; padding: 0 1.8rem; font-size: 1.0625rem; }
.acts .btn:not(.line) { background: var(--lime); color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--ink); }
.acts .btn:not(.line):hover { background: var(--ink); color: #fff; }
.close .acts .btn:not(.line) { box-shadow: none; }
.close .acts .btn:not(.line):hover { background: #fff; color: var(--ink); }

/* The address shown beside Email me, so people can copy it. */
.acts .mail { align-self: center; margin-left: .75rem; color: var(--soft); font-size: 1rem; text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.acts .mail:hover { color: var(--ink); }
@media (max-width: 560px) { .acts .mail { margin-left: 0; } }
.intro p b { font-weight: 600; }

/* Project pages: one centred column, equal space on both sides.
   Text and the title sit in a 46rem column; images, results and grids in a 64rem one. */
.wrap.p-hero { max-width: calc(46rem + 2 * clamp(1.25rem, 4vw, 2.5rem)); }
.p-body, .media, .stats, .res, .samples, .split, .bigquote, .wall { margin-inline: auto; }
.wrap > .quad, .wrap > .posts, .wrap > .trio, .wrap > .lposts { max-width: 64rem; margin-inline: auto; }
.next { max-width: 64rem; margin-inline: auto; }
