/* The About page (p-ujw3oo5-about.html), loaded after home.css, which gives
   it the page's line (.home-bleed) and the «All projects» link (.fp-all).
   What moves is in js/about.js.

   One system, as the owner asked after the page had grown piece by piece:
   three sizes of type close to one another and no others (titles, the
   larger reading size, the ordinary one), the difference made as much by
   weight (titles medium, names and roles semibold, text light or regular),
   one space between sections, one left line. The only exception is her
   name in the opening. No little circles, no symbols, no
   text in outline, no box round the page, one box in it (the portal's). */

.about-page {
    --ab-ease: cubic-bezier(0.2, 0.8, 0.2, 1);
    --ab-line: rgba(255, 255, 255, 0.1);
    --ab-muted: #b0b2bb;
    --ab-ground: #0a0a0e;
    /* The three sizes. */
    --ab-t1: clamp(24px, 2.1vw, 32px);
    --ab-t2: clamp(18px, 1.3vw, 21px);
    --ab-t3: clamp(15px, 1vw, 16px);
    /* The one space between sections, and under a title. */
    --ab-gap: clamp(96px, 11vw, 160px);
    --ab-under: clamp(24px, 2.4vw, 36px);
}

.about-page .main-header .logo {
    display: flex;
    align-items: center;
    text-decoration: none;
}

@keyframes ab-rise { to { transform: none; } }
@keyframes ab-fade {
    from { opacity: 0; transform: translateY(14px); }
    to { opacity: 1; transform: none; }
}
@keyframes ab-show { from { opacity: 0; } to { opacity: 1; } }
@keyframes ab-blink { 50% { opacity: 0; } }

/* --- The opening ---
   Her greeting as one large sentence with a small window of her photograph
   among its words, on the site's moving background. It holds still for one
   screen of scrolling while the window grows into the screen (--ab-p, 0 to
   1, set by js/about.js) and the words fade; then the next section rises
   onto the window's dark. */
.ab-track { position: relative; height: 200svh; }

.ab-hero {
    --ab-pad: 40px;
    --ab-p: 0;
    position: sticky;
    top: 0;
    height: 100svh;
    min-height: 560px;
    overflow: clip;
}

.ab-say {
    position: absolute;
    left: 50%;
    top: 50%;
    width: min(1100px, calc(100% - 2 * var(--ab-pad)));
    translate: -50% -50%;
    text-align: center;
    opacity: calc(1 - var(--ab-p) * 2.6);
}

.ab-hello {
    margin: 0;
    font-size: clamp(34px, 4.6vw, 72px);
    font-weight: var(--fw-medium);
    letter-spacing: -0.045em;
    line-height: 1.14;
    color: var(--text-primary);
}

.ab-soft { color: rgba(255, 255, 255, 0.82); }

/* Each word rises in turn (js/about.js wraps them; without it they stand). */
.ab-w {
    display: inline-block;
    opacity: 0;
    transform: translateY(40%);
    animation: ab-word 0.9s var(--ab-ease) forwards;
}
@keyframes ab-word { to { opacity: 1; transform: none; } }

/* Nelyce circled as if by a hurried hand with a marker, in the letters'
   own colour: uneven, tilted, running on past where it began; drawn once
   as the page loads and then left there. */
.ab-mark { position: relative; display: inline-block; margin: 0 0.2em; white-space: nowrap; }

.ab-loop {
    position: absolute;
    left: -0.42em;
    top: -0.26em;
    width: calc(100% + 0.9em);
    height: calc(100% + 0.58em);
    overflow: visible;
    pointer-events: none;
    rotate: -5deg;
}

.ab-loop path {
    fill: none;
    stroke: currentColor;
    stroke-width: 2.6;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-dasharray: 1 1;
    stroke-dashoffset: 0;
}

/* With the script: hidden entirely (not even the dot of a round cap) until
   the page has loaded and Nelyce has risen, then drawn once, and left. */
.ab-hello.is-live .ab-loop path { stroke-dashoffset: 1; opacity: 0; }
.ab-hello.is-live .ab-loop.is-drawing path { animation: ab-loop 0.85s cubic-bezier(0.45, 0.05, 0.35, 1) forwards; }
@keyframes ab-loop {
    0% { stroke-dashoffset: 1; opacity: 1; }
    100% { stroke-dashoffset: 0; opacity: 1; }
}

/* The window among the words: it opens in its place, her photograph framed
   from the head down to the waist. */
.ab-face {
    position: relative;
    display: inline-block;
    width: 2.3em;
    height: 1.1em;
    margin: 0 0.16em 0 0.1em;
    vertical-align: -0.18em;
    overflow: hidden;
    border-radius: 0.55em;
    background: var(--ab-ground);
    animation: ab-open 1s 0.5s var(--ab-ease) both;
}
@keyframes ab-open { from { width: 0; } }

.ab-face img {
    position: absolute;
    left: 50%;
    top: -0.06em;
    translate: -50% 0;
    height: 1.53em;
    width: auto;
    max-width: none;
}

/* The same window, grown by the script from the place of the one above. */
.ab-zoom {
    position: absolute;
    z-index: 3;
    overflow: hidden;
    visibility: hidden;
    background: var(--ab-ground);
}

.ab-zoom img {
    position: absolute;
    left: 50%;
    translate: -50% 0;
    width: auto;
    max-width: none;
}

.ab-row {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 18px;
    margin-top: 44px;
    opacity: 0;
    animation: ab-fade 1s 1.3s var(--ab-ease) forwards;
}

.ab-also {
    margin: 0;
    font-size: 17px;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.9);
}

.ab-go {
    display: inline-flex;
    flex: none;
    align-items: center;
    gap: 12px;
    padding: 14px 24px;
    border-radius: 99px;
    background: var(--text-primary);
    color: #111;
    font-size: var(--ab-t3);
    font-weight: var(--fw-semibold);
    text-decoration: none;
    transition: background 0.3s;
}

.ab-go:hover,
.ab-go:focus-visible { background: var(--accent-amber); }
.ab-go svg { transition: transform 0.5s var(--ab-ease); }
.ab-go:hover svg { transform: translate(3px, -3px); }


/* --- Everything under the opening ---
   On the dark the moving background fades into, as on the homepage. */
.ab-body {
    position: relative;
    z-index: 1;
    margin-top: -30svh;
    padding-bottom: var(--ab-gap);
    background: linear-gradient(180deg, rgba(10, 10, 14, 0) 0, var(--ab-ground) 30svh);
}

.about-page .ab-end { position: relative; z-index: 1; background: var(--ab-ground); }

.ab-sec { padding-top: var(--ab-gap); }

/* The page's line is the site's: the content runs the full width between
   the same margins as the logo and the header's links (.home-bleed). */

/* Bands: some sections on a ground of their own, so the page has a rhythm
   and is not one long sheet. Lifted dark for the studio, the logo's warm
   colours for the agencies, a deep wine for what clients say (a light
   paper was tried and does not suit the brand). */
.ab-band { padding-bottom: var(--ab-gap); }
.ab-sec:not(.ab-band) + .ab-band { margin-top: var(--ab-gap); }
.ab-lift { background: #121218; }
.ab-glow {
    background:
        radial-gradient(50% 60% at 100% 10%, rgba(255, 107, 53, 0.22), transparent 70%),
        radial-gradient(40% 50% at 0 100%, rgba(255, 184, 0, 0.08), transparent 70%);
}

.ab-warm {
    background:
        radial-gradient(80% 120% at 100% 0, hsla(34, 84%, 43%, 0.55), transparent 60%),
        linear-gradient(120deg, hsl(350, 55%, 20%) 0%, hsl(6, 70%, 34%) 55%, hsl(18, 78%, 38%) 100%);
}
.ab-warm .ab-lead { color: rgba(255, 255, 255, 0.92); }

.ab-light {
    background:
        radial-gradient(60% 80% at 0 100%, rgba(255, 107, 53, 0.16), transparent 70%),
        #1a0d11;
}
.ab-sec:first-child { padding-top: clamp(64px, 8vw, 120px); }

.ab-h {
    margin: 0 0 clamp(32px, 3.4vw, 48px);
    font-size: var(--ab-t1);
    font-weight: var(--fw-medium);
    letter-spacing: -0.03em;
    line-height: 1.1;
    color: var(--text-primary);
}

/* Wide enough that a short sentence stays on one line, and never left with
   one word on a line of its own. */
.ab-lead {
    max-width: 1080px;
    text-wrap: pretty;
    margin: 0 0 clamp(40px, 4.4vw, 64px);
    font-size: var(--ab-t2);
    font-weight: var(--fw-regular);
    line-height: 1.55;
    letter-spacing: -0.01em;
    color: var(--text-primary);
}

/* Ordinary text, wherever it is. */
.ab-tile p,
.ab-ai > p {
    max-width: 56ch;
    margin: 0;
    font-size: var(--ab-t3);
    line-height: 1.7;
    text-wrap: pretty;
    color: var(--text-secondary);
}

/* What I do: the six kinds of work as a puzzle of pieces drawn in outline,
   each in one of the logo's colours. The piece pointed at grows and pushes the others smaller
   (js/about.js sets the grid's tracks; the browser eases them). */
.ab-puzzle {
    --c1: 1fr; --c2: 1fr; --c3: 1fr; --r1: 1fr; --r2: 1fr;
    display: grid;
    grid-template-columns: var(--c1) var(--c2) var(--c3);
    grid-template-rows: var(--r1) var(--r2);
    gap: 12px;
    height: clamp(420px, 52vh, 560px);
    margin: 0;
    padding: 0;
    list-style: none;
    transition: grid-template-columns 0.7s var(--ab-ease), grid-template-rows 0.7s var(--ab-ease);
}

.ab-piece {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    min-width: 0;
    overflow: hidden;
    padding: clamp(20px, 2vw, 32px);
    border: 1px solid var(--ink);
    border-radius: 20px;
    background: transparent;
    color: var(--ink);
    cursor: default;
    transition: background 0.5s var(--ab-ease);
}

/* Outlines only; the piece pointed at fills faintly with its own colour. */
.ab-piece.is-big { background: color-mix(in srgb, var(--ink) 9%, transparent); }

/* Each piece's glyph: fine wireframe lines in the piece's ink, large in
   the top right, with one quiet movement of its own. */
.ab-glyph {
    position: absolute;
    top: clamp(16px, 1.8vw, 28px);
    right: clamp(16px, 1.8vw, 28px);
    width: clamp(84px, 8vw, 128px);
    height: auto;
    overflow: visible;
    stroke: var(--ink);
    stroke-width: 1.1;
    stroke-linecap: square;
    transition: transform 0.9s var(--ab-ease);
    transform-origin: top right;
}

.ab-glyph path { vector-effect: non-scaling-stroke; }
.ab-glyph .ab-faint { opacity: 0.4; }
.ab-piece.is-big .ab-glyph { transform: scale(1.25); }

.ab-spin { transform-origin: 50px 50px; animation: ab-spin 18s linear infinite; }
@keyframes ab-spin { to { transform: rotate(360deg); } }

.ab-pulse { animation: ab-pulse 2.4s ease-in-out infinite; }
@keyframes ab-pulse { 50% { fill: var(--ink); fill-opacity: 0.85; } }

.ab-scan { animation: ab-scan 3s var(--ab-ease) infinite; }
@keyframes ab-scan {
    0%, 100% { transform: translateY(-14px); opacity: 0; }
    30%, 70% { opacity: 1; }
    50% { transform: translateY(14px); }
}

.ab-piece span {
    font-size: var(--ab-t1);
    font-weight: var(--fw-medium);
    letter-spacing: -0.03em;
    line-height: 1.05;
    text-wrap: balance;
}

.ab-p1 { --ink: #ff6b35; }
.ab-p2 { --ink: #ff9a76; }
.ab-p3 { --ink: #ffb800; }
.ab-p4 { --ink: #f2503f; }
.ab-p5 { --ink: #f39a4a; }
.ab-p6 { --ink: #ffd27a; }

/* What I do as a grid divided by fine lines: a number, a fine glyph, the name,
   one short line in white and a few words in grey. Pointing at a card
   brightens its outline and turns its glyph to the accent. */
.ab-services {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin: 0;
    padding: 0;
    list-style: none;
    border-top: 1px solid var(--ab-line);
    border-bottom: 1px solid var(--ab-line);
}

/* No boxes: the pieces are divided by fine lines only, between the columns
   and between the rows. */
.ab-svc {
    display: flex;
    flex-direction: column;
    padding: 32px 36px 40px;
}

.ab-svc:not(:nth-child(3n + 1)) { border-left: 1px solid var(--ab-line); }
.ab-svc:nth-child(n + 4) { border-top: 1px solid var(--ab-line); }
/* The outer columns keep to the page's line, as the title above does. */
.ab-svc:nth-child(3n + 1) { padding-left: 0; }
.ab-svc:nth-child(3n) { padding-right: 0; }

.ab-num {
    font-size: 15px;
    color: var(--ab-muted);
    font-variant-numeric: tabular-nums;
}

.ab-glyph2 {
    width: 76px;
    height: 76px;
    margin: 28px 0 0;
    overflow: visible;
    stroke: var(--text-primary);
    transition: stroke 0.4s;
}

.ab-glyph2 path { vector-effect: non-scaling-stroke; stroke-width: 1; }
.ab-svc:hover .ab-glyph2 { stroke: var(--accent-orange); }
/* Motion graphics: a square moving along its path, the frames it has left
   behind fading after it (onion skin), lighting one after another. */
.ab-glyph2 .ab-o1 { opacity: 0.2; animation: ab-onion 2.4s ease-in-out infinite; }
.ab-glyph2 .ab-o2 { opacity: 0.4; animation: ab-onion 2.4s 0.2s ease-in-out infinite; }
.ab-glyph2 .ab-o3 { opacity: 0.65; animation: ab-onion 2.4s 0.4s ease-in-out infinite; }
@keyframes ab-onion { 50% { opacity: 1; } }
.ab-glyph2 .ab-pulse { animation: ab-pulse2 2.4s ease-in-out infinite; }
@keyframes ab-pulse2 { 50% { fill: currentColor; fill-opacity: 0.6; } }
.ab-svc:hover .ab-glyph2 { color: var(--accent-orange); }

.ab-svc h3 {
    margin: 64px 0 10px;
    font-size: var(--ab-t1);
    font-weight: var(--fw-medium);
    letter-spacing: -0.03em;
    line-height: 1.1;
    color: var(--text-primary);
}

.ab-tag {
    margin: 0 0 12px;
    font-size: var(--ab-t3);
    font-weight: var(--fw-semibold);
    color: var(--text-primary);
}

.ab-desc {
    margin: 0;
    font-size: var(--ab-t3);
    line-height: 1.65;
    color: var(--ab-muted);
}

.ab-how {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 2fr);
    gap: clamp(32px, 5vw, 96px);
    /* Plain text between the services' own bottom line and a line of its
       own, the same space above it and below. */
    padding: clamp(32px, 4vw, 56px) 0;
    border-bottom: 1px solid var(--ab-line);
}

.ab-how h3 {
    margin: 0;
    font-size: var(--ab-t2);
    font-weight: var(--fw-semibold);
    color: var(--text-primary);
}

.ab-how p {
    max-width: 56ch;
    margin: 0;
    font-size: var(--ab-t2);
    font-weight: var(--fw-regular);
    line-height: 1.6;
    color: var(--text-primary);
    text-wrap: pretty;
}

/* Experience: a line down the middle that fills with colour as the page
   scrolls (--ab-f, 0 to 1, from js/about.js); the stops sit on either side
   of it in turn, the year large in the stop's colour, each lighting when
   the line reaches it. Without the script every stop is lit. */
.ab-line {
    position: relative;
    margin: 0;
    padding: 0;
    list-style: none;
    --ab-f: 1;
}

.ab-line::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 1px;
    background: rgba(255, 255, 255, 0.14);
}

.ab-fill {
    position: absolute;
    left: 50%;
    top: 0;
    width: 1px;
    height: calc(var(--ab-f) * 100%);
    background: linear-gradient(#ff9a76, #ff6b35);
}

.ab-stop {
    position: relative;
    display: grid;
    grid-template-columns: 1fr 1fr;
    column-gap: 96px;
    padding: 48px 0;
}

.ab-stop:nth-child(2) { --c: #ff9a76; }
.ab-stop:nth-child(3) { --c: #f39a4a; }
.ab-stop:nth-child(4) { --c: #ffb800; }
.ab-stop:nth-child(5) { --c: #ff6b35; }

.ab-mark2 {
    position: absolute;
    left: 50%;
    top: 66px;
    width: 13px;
    height: 13px;
    translate: -50% 0;
    rotate: 45deg;
    background: var(--c);
    border: 1px solid var(--c);
    transition: background 0.4s;
}

.ab-card {
    grid-column: var(--side);
    text-align: var(--align);
    transition: opacity 0.8s var(--ab-ease), transform 0.8s var(--ab-ease);
}

.ab-stop:nth-child(even) { --side: 1; --align: right; }
.ab-stop:nth-child(odd) { --side: 2; --align: left; }

.ab-line.is-live .ab-stop:not(.is-in) .ab-mark2 { background: var(--ab-ground); }
.ab-line.is-live .ab-stop:not(.is-in) .ab-card { opacity: 0.25; transform: translateY(24px); }

/* A stop's own mark above its year, where there is one: Nelyce's, and the
   Ionian University's seal (from its own site, ionio.gr). */
.ab-logo {
    display: inline-block;
    width: 48px;
    height: 48px;
    margin-bottom: 20px;
    border-radius: 12px;
}

/* The Ionian University's seal in black on a white tile, the same size
   and shape as Nelyce's. */
.ab-logo-seal { box-sizing: border-box; padding: 5px; background: #ffffff; }

.ab-yr {
    margin: 0;
    font-size: clamp(48px, 5vw, 72px);
    font-weight: var(--fw-medium);
    letter-spacing: -0.05em;
    line-height: 1;
    color: var(--c);
}

.ab-yr span {
    display: block;
    margin-top: 8px;
    font-size: var(--ab-t3);
    font-weight: var(--fw-regular);
    letter-spacing: 0;
    color: var(--ab-muted);
}

.ab-card b {
    display: block;
    margin-top: 24px;
    font-size: var(--ab-t2);
    font-weight: var(--fw-semibold);
    color: var(--text-primary);
}

.ab-card > span {
    display: block;
    margin-top: 6px;
    font-size: var(--ab-t3);
    color: var(--ab-muted);
}

.ab-ico {
    flex: none;
    width: 28px;
    height: 28px;
    color: var(--text-primary);
}

img.ab-ico { border-radius: 6px; }

.ab-skills {
    max-width: 72ch;
    margin: clamp(48px, 5vw, 80px) 0 0;
    padding-top: 24px;
    border-top: 1px solid var(--ab-line);
    font-size: var(--ab-t3);
    line-height: 1.7;
    color: var(--text-secondary);
}

/* The team: four upright cards, a line drawing where a portrait would be,
   the name and role under it. The fourth, the network, is quieter. */
.ab-team {
    display: grid;
    grid-template-columns: minmax(0, 1.25fr) repeat(2, minmax(0, 1fr));
    gap: 16px;
}

/* The Creative Director leads: a tall card spanning both rows. */
.ab-lead-card { grid-row: span 2; justify-content: space-between; }
.ab-lead-card .ab-art { flex: 1; aspect-ratio: auto; padding: 14%; }
.ab-lead-card .ab-pic { max-width: 240px; }
.ab-lead-card b { font-size: var(--ab-t1); font-weight: var(--fw-semibold); letter-spacing: -0.02em; }
.ab-lead-card figcaption { padding: 0 32px 32px; }
.ab-lead-card figcaption span { max-width: 34ch; }

/* Creative direction: a layout of three blocks that rearranges itself. */
.ab-sheet-line { fill: none; stroke: rgba(255, 255, 255, 0.25); stroke-width: 1; }
.ab-block {
    fill: rgba(255, 255, 255, 0.06);
    stroke: var(--text-primary);
    stroke-width: 1.2;
    transform-box: view-box;
    transition: transform 0.9s var(--ab-ease), fill 0.4s;
}
.ab-b2 { fill: var(--accent-orange); stroke: none; }
.ab-layout.is-alt .ab-b1 { transform: translate(72px, 0) scale(0.55, 1); }
.ab-layout.is-alt .ab-b2 { transform: translate(-114px, 0) scale(1.4, 1); }
.ab-layout.is-alt .ab-b3 { transform: translate(0, -10px) scale(1, 1.2); }

.ab-member {
    display: flex;
    flex-direction: column;
    margin: 0;
    overflow: hidden;
    border: 1px solid var(--ab-line);
    border-radius: 16px;
    background:
        radial-gradient(120% 70% at 50% 0, rgba(255, 107, 53, 0.12), transparent 70%),
        rgba(255, 255, 255, 0.025);
    cursor: default;
    transition: border-color 0.4s, transform 0.6s var(--ab-ease);
}

.ab-member:hover { border-color: rgba(255, 107, 53, 0.35); transform: translateY(-4px); }
.ab-network { background: transparent; border-style: dashed; }

.ab-art {
    display: grid;
    place-items: center;
    aspect-ratio: 4 / 3;
    padding: 12%;
}

.ab-pic {
    display: block;
    width: 100%;
    height: auto;
    overflow: visible;
}

.ab-member figcaption { padding: 0 24px 24px; }

.ab-member b {
    display: block;
    font-size: var(--ab-t2);
    font-weight: var(--fw-semibold);
    color: var(--text-primary);
}

.ab-member figcaption span {
    display: block;
    margin-top: 6px;
    font-size: var(--ab-t3);
    line-height: 1.5;
    color: var(--ab-muted);
}

/* The network: squares joined by lines. */
.ab-link { fill: none; stroke: rgba(255, 255, 255, 0.4); stroke-width: 1.2; }
.ab-node { fill: var(--ab-ground); stroke: var(--text-primary); stroke-width: 1.2; }
.ab-hub { fill: var(--accent-orange); stroke: none; }

/* Design: a curve with its handles, as in a pen tool. */
.ab-curve,
.ab-handle,
.ab-stroke { fill: none; stroke-linecap: round; }
.ab-curve { stroke: var(--text-primary); stroke-width: 1.6; }
.ab-handle { stroke: rgba(255, 255, 255, 0.35); stroke-width: 1; }
.ab-anchor { fill: var(--ab-ground); stroke: var(--text-primary); stroke-width: 1.2; }
.ab-ctrl { fill: var(--accent-orange); }

/* Code: three lines that type themselves, with a bar for a caret. */
.ab-code { display: flex; align-items: center; }
.ab-code pre {
    margin: 0;
    font-family: ui-monospace, 'SF Mono', Menlo, Consolas, monospace;
    font-size: var(--ab-t3);
    line-height: 1.7;
    color: var(--text-primary);
    white-space: pre;
}
.ab-code pre .ab-tag { color: var(--accent-orange); }
.ab-code pre i {
    display: inline-block;
    width: 2px;
    height: 1.1em;
    margin-left: 2px;
    vertical-align: -0.15em;
    background: var(--accent-amber);
    animation: ab-blink 1s steps(1) infinite;
}

/* Illustration: a line drawing itself. */
.ab-stroke {
    stroke: var(--text-primary);
    stroke-width: 1.6;
    stroke-linejoin: round;
    stroke-dasharray: 1;
    stroke-dashoffset: 0;
}
.ab-stroke.is-drawing { animation: ab-draw 1.8s var(--ab-ease) forwards; }
@keyframes ab-draw { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }

/* --- The one box: the portal at work, its film and its words --- */
.ab-tile {
    display: grid;
    grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
    align-items: center;
    overflow: hidden;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.035);
    border: 1px solid var(--ab-line);
}

.ab-film {
    display: block;
    width: 100%;
    aspect-ratio: 1440 / 900;
    object-fit: cover;
    background: #111116;
    border-right: 1px solid var(--ab-line);
}

.ab-tile p { padding: clamp(24px, 3.4vw, 56px); }

/* AI, beside an offer that writes itself from one sentence. */
.ab-ai {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: clamp(32px, 5vw, 96px);
    align-items: start;
    margin-top: clamp(48px, 5vw, 80px);
}

.ab-ask {
    display: flex;
    align-items: center;
    min-height: 1.6em;
    margin: 0;
    padding-bottom: 14px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.3);
    font-size: var(--ab-t2);
    color: var(--text-primary);
}

.ab-caret {
    display: inline-block;
    width: 2px;
    height: 1.1em;
    margin-left: 3px;
    background: var(--accent-amber);
    animation: ab-blink 1s steps(1) infinite;
}

.ab-offer {
    margin: 0;
    padding: 0;
    list-style: none;
}

.ab-offer li {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 16px;
    align-items: baseline;
    padding: 16px 0;
    border-bottom: 1px solid var(--ab-line);
    transition: opacity 0.6s var(--ab-ease), transform 0.6s var(--ab-ease);
}

.ab-offer b {
    font-size: var(--ab-t3);
    font-weight: var(--fw-semibold);
    color: var(--text-primary);
}

.ab-offer span,
.ab-ready { font-size: var(--ab-t3); color: var(--ab-muted); }

.ab-ready {
    margin: 16px 0 0;
    font-weight: var(--fw-medium);
    color: var(--accent-orange);
    transition: opacity 0.6s var(--ab-ease);
}

.ab-demo.is-live li:not(.is-in) { opacity: 0; transform: translateY(10px); }
.ab-demo.is-live .ab-ready:not(.is-in) { opacity: 0; }

/* --- Working with agencies: the three promises side by side, each under
   its own line icon. --- */
.ab-vows {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: clamp(24px, 3vw, 48px);
    margin: 0;
    padding: 0;
    list-style: none;
}

.ab-vows li {
    padding-top: 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.3);
}

.ab-vows .ab-ico {
    display: block;
    width: 40px;
    height: 40px;
    margin-bottom: 28px;
    color: var(--text-primary);
}

.ab-vows span {
    display: block;
    max-width: 24ch;
    font-size: var(--ab-t2);
    font-weight: var(--fw-medium);
    line-height: 1.4;
    color: var(--text-primary);
    text-wrap: pretty;
}

/* --- Selected projects: their card pictures with name and kind --- */
.ab-cards {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.ab-cards a { display: block; color: var(--text-primary); text-decoration: none; }
.ab-cards .ab-shot { display: block; overflow: hidden; border-radius: 12px; }

.ab-cards img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 1040 / 599;
    object-fit: cover;
    transition: transform 0.8s var(--ab-ease);
}

.ab-cards a:hover img { transform: scale(1.04); }
.ab-cards .ab-cap { display: flex; justify-content: space-between; gap: 12px; margin-top: 14px; }
.ab-cards b { font-size: var(--ab-t3); font-weight: var(--fw-semibold); }
.ab-cards small { font-size: var(--ab-t3); color: var(--ab-muted); }

/* A title with its way onward on the same line, at the right. */
.ab-headrow {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: clamp(32px, 3.4vw, 48px);
}

.ab-headrow .ab-h { margin: 0; }
.ab-all { white-space: nowrap; }

/* --- What clients say ---
   The names on the left, the words of the one chosen on the right. While
   it moves on by itself a hairline fills under the chosen name. */
.ab-quotes {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr);
    gap: clamp(32px, 6vw, 120px);
    align-items: start;
}

.ab-who { border-bottom: 1px solid var(--ab-line); }

.ab-who button {
    position: relative;
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 16px;
    width: 100%;
    padding: 18px 0;
    border: 0;
    border-top: 1px solid var(--ab-line);
    background: none;
    color: var(--ab-muted);
    font: inherit;
    text-align: left;
    cursor: pointer;
    transition: color 0.3s;
}

.ab-who b {
    font-size: var(--ab-t3);
    font-weight: var(--fw-semibold);
}

.ab-who span {
    font-size: 15px;
    text-align: right;
}

.ab-who button:hover,
.ab-who button[aria-selected="true"] { color: var(--text-primary); }

.ab-who i {
    position: absolute;
    left: 0;
    right: 0;
    bottom: -1px;
    height: 1px;
    background: linear-gradient(90deg, var(--accent-orange), var(--accent-amber));
    transform: scaleX(0);
    transform-origin: left;
}

.ab-who button[aria-selected="true"] i { transform: scaleX(1); }
.ab-quotes.is-turning .ab-who button[aria-selected="true"] i { transform: scaleX(0); animation: ab-wait 7s linear forwards; }
.ab-quotes.is-held .ab-who button[aria-selected="true"] i { animation-play-state: paused; }
@keyframes ab-wait { to { transform: scaleX(1); } }

/* All the words in one place, the chosen one shown. Without the script
   they are simply one under the other. */
.ab-words blockquote { margin: 0 0 40px; }
.ab-quotes.is-live .ab-words { display: grid; }
.ab-quotes.is-live .ab-words blockquote {
    grid-area: 1 / 1;
    margin: 0;
    opacity: 0;
    transform: translateY(10px);
    visibility: hidden;
    transition: opacity 0.6s var(--ab-ease), transform 0.6s var(--ab-ease), visibility 0s 0.6s;
}
.ab-quotes.is-live .ab-words blockquote.is-on {
    opacity: 1;
    transform: none;
    visibility: visible;
    transition: opacity 0.6s var(--ab-ease), transform 0.6s var(--ab-ease);
}

.ab-words p {
    margin: 0;
    font-size: var(--ab-t1);
    font-weight: var(--fw-light);
    line-height: 1.35;
    letter-spacing: -0.03em;
    color: var(--text-primary);
    text-wrap: pretty;
}

.ab-words img {
    display: block;
    width: min(320px, 70%);
    height: auto;
    aspect-ratio: 1040 / 599;
    object-fit: cover;
    margin-bottom: 28px;
    border-radius: 10px;
}

.ab-words footer {
    margin-top: 24px;
    font-size: var(--ab-t3);
    color: var(--ab-muted);
}

.ab-rating {
    display: inline-flex;
    align-items: baseline;
    gap: 10px;
    margin-top: clamp(40px, 4.4vw, 64px);
    color: var(--text-primary);
    font-size: var(--ab-t3);
    text-decoration: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.3);
    padding-bottom: 6px;
}

.ab-rating b {
    font-size: var(--ab-t2);
    font-weight: var(--fw-semibold);
}

.ab-rating span { color: var(--text-secondary); }
.ab-rating svg { align-self: center; transition: transform 0.5s var(--ab-ease); }
.ab-rating:hover svg { transform: translate(3px, -3px); }

.ab-cards a:focus-visible,
.ab-who button:focus-visible,
.ab-rating:focus-visible,
.ab-all:focus-visible,
.ab-go:focus-visible,
.about-page .so-cta:focus-visible,
.about-page .so-col a:focus-visible,
.about-page .so-up:focus-visible {
    outline: 2px solid var(--accent-orange);
    outline-offset: 4px;
}

/* --- Narrower ---
   The name with the photograph first, the words under them. */
@media (max-width: 900px) {
    .ab-hero { --ab-pad: 24px; }
    .ab-say { top: 46%; }
    .ab-row { margin-top: 32px; }

    .ab-tile,
    .ab-ai { grid-template-columns: minmax(0, 1fr); }
    .ab-film { border-right: 0; border-bottom: 1px solid var(--ab-line); }

    .ab-team,
    .ab-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .ab-lead-card { grid-column: 1 / -1; grid-row: auto; }
    .ab-services { grid-template-columns: minmax(0, 1fr); }
    .ab-svc { padding: 28px 0 32px; }
    .ab-svc:not(:nth-child(3n + 1)) { border-left: 0; }
    .ab-svc + .ab-svc { border-top: 1px solid var(--ab-line); }
    .ab-svc h3 { margin-top: 32px; }
    .ab-puzzle { grid-template-columns: 1fr 1fr; grid-template-rows: repeat(3, 1fr); height: auto; }
    .ab-piece { aspect-ratio: 1; }
    .ab-piece span { font-size: 20px; }
    .ab-glyph { width: 64px; }
    .ab-how { grid-template-columns: minmax(0, 1fr); gap: 12px; }
    .ab-member figcaption { padding: 0 16px 18px; }
    .ab-vows { grid-template-columns: minmax(0, 1fr); }

    .ab-line::before,
    .ab-fill,
    .ab-mark2 { left: 6px; }
    .ab-stop { grid-template-columns: 1fr; padding: 32px 0 32px 40px; }
    .ab-stop:nth-child(n) { --side: 1; --align: left; }
    .ab-mark2 { top: 48px; }

    .ab-quotes { grid-template-columns: minmax(0, 1fr); }
    .ab-who { order: 2; }
}

/* Nothing arrives or moves for someone who asked for stillness. */
@media (prefers-reduced-motion: reduce) {
    .ab-row,
    .ab-w {
        opacity: 1;
        transform: none;
        animation: none;
    }

    .about-page .scroll-reveal {
        opacity: 1;
        transform: none;
        transition: none;
    }

    .ab-code pre i,
    .ab-caret { animation: none; }
    .ab-face { animation: none; }
    .ab-track { height: auto; }
    .ab-hero { position: relative; height: calc(100svh - 74px); }
    .ab-body { margin-top: 0; }
    .ab-card { transition: none; }
    .ab-quotes.is-live .ab-words blockquote { transition: none; transform: none; }
    .ab-spin,
    .ab-pulse,
    .ab-scan,
    .ab-glyph2 .ab-pulse,
    .ab-glyph2 .ab-o1,
    .ab-glyph2 .ab-o2,
    .ab-glyph2 .ab-o3 { animation: none; }
    .ab-puzzle,
    .ab-member,
    .ab-block,
    .ab-cards img { transition: none; }
    .ab-member:hover,
    .ab-cards a:hover img { transform: none; }
}

/* The hairlines, on a desktop (js/about.js): each laid over its box as a
   line of its own, unseen until the reader has come to it, then drawn out,
   across from the left or down from the top. */
.ab-ln {
    position: absolute;
    z-index: 1;
    pointer-events: none;
    transform-origin: 0 0;
    transition: transform 1.6s cubic-bezier(0.45, 0, 0.2, 1);
}
.ab-ln-across { transform: scaleX(0); }
.ab-ln-down { transform: scaleY(0); }
.ab-drawn > .ab-ln { transform: none; }
