redesign-landing #1

Merged
jselesan merged 2 commits from redesign-landing into main 2026-11-06 00:19:48 +00:00
32 changed files with 2232 additions and 591 deletions
Showing only changes of commit 93bc7688c3 - Show all commits

View File

@@ -0,0 +1,44 @@
---
target: landing page v2
total_score: 25
max_score: 32
na_heuristics: 7,10
p0_count: 0
p1_count: 2
target_identity: "file:/Users/jose/personal-projects/2pidev/landing-page/src/index.njk"
target_fingerprint: "sha256:4cecffbfabd47f37a241e4bcd8419dac59645614fd14543c275897a342d1276c"
target_path: /Users/jose/personal-projects/2pidev/landing-page/src/index.njk
timestamp: 2026-11-05T20-15-53Z
slug: src-index-njk
---
# Critique v2: 2piDev landing (src/index.njk via _includes/landing.njk)
Method: dual-agent (A design review, B detector). Browser overlay skipped (no browser automation). Previous run: 17/32.
## Heuristics: 25/32 (78%, Good); 7 and 10 n/a
1 Status 3: sticky cycle shows a literal "×N" outside stage 2 (cycle.njk:38); counter freezes after leaving stage 2 (landing.njk:319).
2 Match 3: plain tú copy; degrees and "relevamiento / historias de usuario / entorno aparte" are developer vocabulary for an SME owner.
3 Control 3: Esc closes menu; thanks page is a dead end.
4 Consistency 3: nav order (process, services, team, FAQ) differs from page order (process, team, services, FAQ).
5 Error prevention 3: realistic placeholders ("Ana García") read as filled values; one-character messages pass.
6 Recognition 4: "Recibes" on every stage, promises beside the form.
8 Aesthetic 3: clean; "1 día hábil" repeated 5x; FAQ Q1 duplicates.
9 Recovery 3: specific messages, focus to first error, aria wired; summary does not link to fields.
## Specificity
Reaches the Linear/Stripe category bar in hero, problem and process. The 2π cycle is the only product-specific element and it carries real meaning. Below the process section (team, services, stack, FAQ) the page reverts to generic; on mobile the cycle sits below the fold and the sticky interaction is hidden. Detector: 0 real findings (was 38). 3 low-contrast hits on dimmed aria-hidden SVG labels (static scan only), OpenReplay script-error is environmental.
## Priority issues
- [P1] Credibility gap: no names, faces, place or checkable artifact; team claims unverifiable. Fix: real "Quiénes somos" (names, roles, LinkedIn), a redacted sample deliverable, state location/time zone. -> clarify / user assets
- [P1] "×N" placeholder visible at stages 0/1/3 and frozen counter. Fix: show counter only while stage 2 active; reset on exit. -> polish
- [P2] 16px horizontal overflow at 320px from nbsp "de punta a punta". Fix: drop that join or lower clamp minimum. -> adapt
- [P2] Placeholders read as values on the night form. Fix: instruction placeholders, ~4.5:1 colour. -> clarify / polish
- [P2] Signature vanishes on mobile; middle of page generic. Fix: inline cycle glyph per stage on mobile, bring the ring back at contact/thanks. -> adapt / delight
## Personas
Jordan: jargon, degrees, no cost signal, "afinamos el presupuesto" can read as moving price. Riley: 320 overflow, ×N, frozen counter, hard-coded production thanks URL, dead stage-4 CSS. Casey: cycle below the fold, ~8,450px page, no sticky cycle, 9.5px degree labels.
## Minor
Thanks page half-empty on desktop, email not a link, no footer/lang switch; hero promise markers look like radio buttons; nav/section order mismatch; dead CSS for stage 4.
## Questions
Could the contact form be the visitor's own 0°? Real face or redacted proposal: which is the most persuasive true thing? Degrees or weeks for an SME owner?

View File

@@ -0,0 +1,45 @@
---
target: landing page v3
total_score: 23
max_score: 32
na_heuristics: 7,10
p0_count: 0
p1_count: 2
target_identity: "file:/Users/jose/personal-projects/2pidev/landing-page/src/index.njk"
target_fingerprint: "sha256:4cecffbfabd47f37a241e4bcd8419dac59645614fd14543c275897a342d1276c"
target_path: /Users/jose/personal-projects/2pidev/landing-page/src/index.njk
timestamp: 2026-11-06T00-05-13Z
slug: src-index-njk
---
# Critique v3: 2piDev landing (src/index.njk via _includes/landing.njk)
Method: dual-agent. Overlay skipped (no browser automation). Previous: 17/32 -> 25/32.
## Heuristics: 23/32 (72%, Good); 7 and 10 n/a
1 Status 3: nav has no current-section state; FormSubmit step after submit is opaque.
2 Match 3: "relevamiento", "historias de usuario", degrees unexplained for SME owner.
3 Control 3: Esc/focus return good; menu does not close on outside tap.
4 Consistency 2: "Escribirnos es el 0°" (i18n.js:145) contradicts the cycle where Relevamiento is 0° (cycle.njk, thanks active=0); "1 día hábil" vs "un día hábil"; EN "turn" vs "cycle".
5 Error prevention 3: required + email check; no counter for 4000 limit.
6 Recognition 3: persistent labels, hint placeholders; no scrollspy.
8 Aesthetic 3: disciplined; problem and services rows flat.
9 Recovery 3: summary does not name fields; name error wraps at 1440.
## Specificity
Process section, degrees, "Recibes", iteration loop, contact 0° and thanks "tu vuelta empezó" are unmistakably 2piDev. Problem, team, services (~45% of scroll) could be any studio. The ring never completes: the close line "la vuelta empieza de nuevo" gets no visual response. Detector: 3 low-contrast (dimmed inactive cycle labels at .55 opacity, 4.1:1, static scan only, real but borderline), OpenReplay script-error environmental.
## Priority issues
- [P1] "Equipo" shows no people; claims unverifiable. Fix: 2-3 real engineers (name, role, years, LinkedIn). Needs user material.
- [P1] FormSubmit captcha interstitial (English, unbranded) between submit and /gracias (no _captcha field). Fix: _captcha=false (honeypot exists) or AJAX submit. User decision; captcha was turned on deliberately in the redesign brief.
- [P2] 0° metaphor contradicts itself (contact says writing is 0°, cycle says Relevamiento is 0°). Fix: reword "Escribirnos te pone en el 0°…" or show a pre-0° marker.
- [P2] Cycle text too small on phones (~9.5px degrees, ~13px labels at 390) and inactive labels at .55. Fix: larger viewBox font sizes when the cycle is narrow; inactive labels >= .7.
- [P2] The full turn never completes. Fix: arc progress tied to stage; close the ring at the close line.
- [P3] Mobile first viewport has no cycle (starts y≈706 at 390).
## Personas
Jordan: jargon, no people, no size/cost signal. Riley: iteration counter unbounded ("Iteración 167" when idle), captcha, hard-coded prod thanks URL, PostHog session recording vs privacy line needs verification, menu no outside-tap close. Casey: 8,681px page, 36px menu/EN targets (<44), crowded header at 320, tiny cycle degrees, light strip above dark contact on anchor jump.
## Minor
Hero cycle could mark 0° as start; "Sistemas que no escalan" wraps; thanks lacks lang switch and fallback; FAQ Q1 duplicates promise; summary could link fields.
## Questions
If people are the only proof, why show none? Could an anonymized sample proposal be the proof? Should the ring actually close as the reader's reward?

View File

@@ -217,7 +217,7 @@ Flat by default; depth comes from tonal bands (ground vs white vs night) and hai
## Shapes ## Shapes
Gently rounded controls (8px for buttons, fields and the error summary; 6px for nav links, the menu button and focus outlines). Content regions have no corners at all: they are bands and rows. The one recurring geometry is the circle: the cycle ring, its 11px-radius nodes, the hollow node marks beside the hero promises, and the round-capped arcs (10px stroke) of the logo. Gently rounded controls (8px for buttons, fields and the error summary; 6px for nav links, the menu button and focus outlines). Content regions have no corners at all: they are bands and rows. The one recurring geometry is the circle: the cycle ring, its 11px-radius nodes and the round-capped arcs (10px stroke) of the logo.
## Components ## Components
@@ -241,14 +241,20 @@ Live only on the night surface.
The system's container. A list whose children each carry a top hairline, the last also a bottom one. Rows use a two-column grid from `sm` (title column 12–20rem, description fills), titles in Title Small Ink, descriptions in Body Muted. The FAQ is a row list of `details`: 1.125rem/500 summaries at 24px padding, a drawn plus (two 1.5px Slate Ink bars) that collapses to a minus on open (300ms). The system's container. A list whose children each carry a top hairline, the last also a bottom one. Rows use a two-column grid from `sm` (title column 12–20rem, description fills), titles in Title Small Ink, descriptions in Body Muted. The FAQ is a row list of `details`: 1.125rem/500 summaries at 24px padding, a drawn plus (two 1.5px Slate Ink bars) that collapses to a minus on open (300ms).
### Navigation ### Navigation
Sticky 4rem header on Cool Ground, transparent bottom border that turns Hairline on scroll. Desktop links are Label weight in Slate Ink, hover Ink, 8px/12px padding. A language switch in Muted and a small primary "Hablemos" button stay visible at every width. Below `md`, a 36px menu button toggles a full-width panel of 1rem/500 links separated by hairlines, with the Menu-drop shadow. Sticky 4rem header on Cool Ground, transparent bottom border that turns Hairline on scroll. Desktop links (from `lg`, 1024px) are Label weight in Slate Ink, hover Ink, 8px/12px padding, never wrapping. A language switch in Muted and a small primary "Hablemos" button stay visible at every width. Below `lg` (phones and tablets), a 36px menu button toggles a full-width panel of 1rem/500 links separated by hairlines, with the Menu-drop shadow.
### The Cycle Diagram (signature) ### The Cycle Diagram (signature)
A 600-unit SVG: a 250-radius ring split into two round-capped 10px arcs, orange on the right (0° to 180°) and blue on the left, with a small gap at top and bottom. Four 11px nodes at 0° (Relevamiento), 90° (Propuesta), 180° (Iteraciones), 270° (Soporte) (white fill, 5px stroke in their arc's hue); labels sit inside the ring at 23px/600 Ink with a 17px/500 tabular degree beneath in Muted (side labels sit 52 units below their node so they never share a line with the centre); "2π" at 76px/600 (-0.04em) sits above centre over a 19px caption. A 600-unit SVG: a 250-radius ring split into two round-capped 10px arcs, orange on the right (0° to 180°) and blue on the left, with a small gap at top and bottom. Four 11px nodes at 0° (Relevamiento), 90° (Propuesta), 180° (Iteraciones), 270° (Soporte) (white fill, 5px stroke in their arc's hue); labels sit inside the ring at 23px/600 Ink with a 17px/500 tabular degree beneath in Muted (side labels sit 52 units below their node so they never share a line with the centre); "2π" at 76px/600 (-0.04em) sits above centre over a 19px caption.
- **Iteration loop:** a 90-radius inner circle tangent to the ring at 180°, drawn as the logo in miniature (orange right half, blue left half, 7px round-capped, gaps top and bottom), holding the "Iteraciones / 180°" label. The ring is presence for the whole turn; the loop is iterative development. Never draw development as a single segment of the ring. - **Iteration loop:** a 90-radius inner circle tangent to the ring at 180°, drawn as the logo in miniature (orange right half, blue left half, 7px round-capped, gaps top and bottom), holding the "Iteraciones / 180°" label. The ring is presence for the whole turn; the loop is iterative development. Never draw development as a single segment of the ring.
- **Draw on load:** arcs draw over 1.1s (blue delayed 0.45s, the loop's halves at 0.75s and 0.95s), nodes scale in from 0 staggered 0.25s apart, all on `ease-out` and only under `prefers-reduced-motion: no-preference`. - **Draw on load:** arcs draw over 1.1s (blue delayed 0.45s, the loop's halves at 0.75s and 0.95s), nodes scale in from 0 staggered 0.25s apart, all on `ease-out` and only under `prefers-reduced-motion: no-preference`.
- **Sticky follow:** in the process section the active stage's node scales to 1.45 and fills with its arc hue; inactive nodes keep their opaque white fill (the arc never shows through) and only their outline lightens to #ffcaa5 (orange side) or #a9cfff (blue side); labels drop to 55%, degrees 75% (0.4s transform, 0.3s fill/stroke/opacity). Never dim a node with opacity. - **Sticky follow:** in the process section the active stage's node scales to 1.45 and fills with its arc hue; inactive nodes keep their opaque white fill (the arc never shows through) and only their outline lightens to #ffcaa5 (orange side) or #a9cfff (blue side); labels drop to 55%, degrees 75% (0.4s transform, 0.3s fill/stroke/opacity). Never dim a node with opacity.
- **Iteration turn:** while the iterations stage (180°) is active, the loop rotates 360° every 1.8s on `ease-out` and a 17px tabular counter under its label reads "Iteración 1, 2, 3…" (static "×N" under reduced motion). - **The turn fills (sticky cycle only):** the ring starts as a 20%-opacity track; full-colour progress arcs fill with the stage being read (0°, 90°, 180°, 270°) via `stroke-dashoffset` driven by `--pa`/`--pb` (0.6s `ease-out`, interruptible). When the closing line ("…la vuelta empieza de nuevo") reaches 55% of the viewport, the ring closes to 360°, the 0° stage becomes active again and its node pulses once (scale 1.45→1.9→1.45, 0.9s). Scrolling back above the line reopens it at the last stage read. Reduced motion keeps the progress (it is state) but drops the transition and the pulse.
- **Iteration turn:** while the iterations stage (180°) is active, the loop rotates 360° every 1.8s on `ease-out` and a 17px tabular counter under its label reads "Iteración 1, 2, 3" and loops back to 1 (never an ever-growing number) (empty whenever the loop is not turning: under reduced motion and at every other stage; it resets on exit, never a placeholder).
- **Mini cycle (below `lg`):** where the sticky cycle does not exist, each process stage carries a 24px glyph above its degree: the two arcs at 1.8px with that stage's node filled in its arc hue at its own angle (the 180° glyph adds the tiny inner loop). Static, no motion; hidden from `lg` up.
- **The visitor's 0° (contact close):** under the promises, a 48px ring (3.5px arcs) with its 0° node lit, beside one line of copy: writing in puts the visitor at 0°, where the conversation and discovery start. It draws once (0.9s, node at 0.7s) the first time it is 60% in view; static under reduced motion. It never sits above a heading.
- **Thanks page:** the full cycle sits in the right five columns (below the steps on mobile) with `active` 0: Relevamiento lit, the rest dimmed, and the centre caption replaced by "tu vuelta empezó". It draws on load like the hero.
### Night Contact Surface ### Night Contact Surface
The page's close and footer on solid Ink. Headline in white, lede in `night-text`, captions and footer in `night-muted`, links white with a 40% white underline that goes solid on hover. Check marks are drawn 1.8px strokes in `night-text`. Focus outlines switch to `night-focus`, selection to Turn Orange. The footer sits on the same ground separated by a 10% white hairline. The page's close and footer on solid Ink. Headline in white, lede in `night-text`, captions and footer in `night-muted`, links white with a 40% white underline that goes solid on hover. Check marks are drawn 1.8px strokes in `night-text`. Focus outlines switch to `night-focus`, selection to Turn Orange. The footer sits on the same ground separated by a 10% white hairline.

View File

@@ -23,7 +23,7 @@ module.exports = {
skip: "Saltar al contenido", skip: "Saltar al contenido",
}, },
hero: { hero: {
title: "Software a\u00a0medida, de\u00a0punta\u00a0a\u00a0punta.", title: "Software a\u00a0medida, de\u00a0punta a\u00a0punta.",
lede: lede:
"Somos un equipo pequeño de ingenieros senior. Relevamos cómo funciona tu empresa, te proponemos por escrito qué construir y lo desarrollamos en iteraciones cortas que puedes ver y probar. Después, lo mantenemos.", "Somos un equipo pequeño de ingenieros senior. Relevamos cómo funciona tu empresa, te proponemos por escrito qué construir y lo desarrollamos en iteraciones cortas que puedes ver y probar. Después, lo mantenemos.",
primary: "Cuéntanos tu proyecto", primary: "Cuéntanos tu proyecto",
@@ -119,7 +119,7 @@ module.exports = {
faq: { faq: {
title: "Antes de escribirnos", title: "Antes de escribirnos",
items: [ items: [
{ q: "¿Cuánto tardan en responder?", a: "Respondemos cada consulta en un día hábil." }, { q: "¿Cuánto tardan en responder?", a: "Respondemos cada consulta en 1 día hábil." },
{ {
q: "¿Qué pasa después del primer contacto?", q: "¿Qué pasa después del primer contacto?",
a: "Coordinamos una conversación, hacemos el relevamiento y te entregamos una propuesta escrita con alcance, etapas, plazos y presupuesto. Recién ahí decides si avanzamos. Después desarrollamos en iteraciones cortas, con entregas que puedes probar.", a: "Coordinamos una conversación, hacemos el relevamiento y te entregamos una propuesta escrita con alcance, etapas, plazos y presupuesto. Recién ahí decides si avanzamos. Después desarrollamos en iteraciones cortas, con entregas que puedes probar.",
@@ -142,6 +142,7 @@ module.exports = {
"Propuesta escrita antes de cualquier compromiso.", "Propuesta escrita antes de cualquier compromiso.",
"Usamos tus datos solo para responderte.", "Usamos tus datos solo para responderte.",
], ],
startTurn: "Escribirnos te pone en el 0°: la conversación y el relevamiento empiezan ahí.",
orEmail: "¿Prefieres el correo?", orEmail: "¿Prefieres el correo?",
form: { form: {
name: "Nombre", name: "Nombre",
@@ -149,10 +150,10 @@ module.exports = {
companyHint: "Opcional", companyHint: "Opcional",
email: "Email", email: "Email",
message: "¿Qué necesitas resolver?", message: "¿Qué necesitas resolver?",
namePh: "Ana García", namePh: "Cómo te llamas",
companyPh: "Nombre de tu empresa", companyPh: "Dónde trabajas",
emailPh: "ana@empresa.com", emailPh: "Dónde te respondemos",
messagePh: "Hoy llevamos los pedidos en planillas y…", messagePh: "Por ejemplo: hoy llevamos los pedidos en planillas y…",
submit: "Enviar mensaje", submit: "Enviar mensaje",
sending: "Enviando…", sending: "Enviando…",
privacy: privacy:
@@ -172,13 +173,14 @@ module.exports = {
thanks: { thanks: {
title: "Gracias | 2piDev", title: "Gracias | 2piDev",
heading: "Recibimos tu mensaje.", heading: "Recibimos tu mensaje.",
lede: "Te respondemos en un día hábil desde hola@2pidev.com. Esto es lo que sigue:", lede: "Te respondemos en 1 día hábil desde hola@2pidev.com. Esto es lo que sigue:",
steps: [ steps: [
"Te escribimos para coordinar una primera conversación.", "Te escribimos para coordinar una primera conversación.",
"Hacemos el relevamiento de tu proceso.", "Hacemos el relevamiento de tu proceso.",
"Te entregamos una propuesta escrita con alcance, etapas, plazos y presupuesto.", "Te entregamos una propuesta escrita con alcance, etapas, plazos y presupuesto.",
], ],
back: "Volver al inicio", back: "Volver al inicio",
center: "tu vuelta empezó",
}, },
}, },
@@ -300,7 +302,7 @@ module.exports = {
faq: { faq: {
title: "Before you write", title: "Before you write",
items: [ items: [
{ q: "How fast do you reply?", a: "We reply to every inquiry within one business day." }, { q: "How fast do you reply?", a: "We reply to every inquiry within 1 business day." },
{ {
q: "What happens after the first contact?", q: "What happens after the first contact?",
a: "We set up a conversation, run discovery and hand you a written proposal with scope, stages, timeline and budget. Only then do you decide whether to go ahead. Then we develop in short iterations, with deliveries you can try.", a: "We set up a conversation, run discovery and hand you a written proposal with scope, stages, timeline and budget. Only then do you decide whether to go ahead. Then we develop in short iterations, with deliveries you can try.",
@@ -323,6 +325,7 @@ module.exports = {
"Written proposal before any commitment.", "Written proposal before any commitment.",
"We only use your details to reply to you.", "We only use your details to reply to you.",
], ],
startTurn: "Writing to us puts you at 0°: the conversation and discovery start there.",
orEmail: "Prefer email?", orEmail: "Prefer email?",
form: { form: {
name: "Name", name: "Name",
@@ -330,10 +333,10 @@ module.exports = {
companyHint: "Optional", companyHint: "Optional",
email: "Email", email: "Email",
message: "What do you need to solve?", message: "What do you need to solve?",
namePh: "Ana García", namePh: "What should we call you",
companyPh: "Your company name", companyPh: "Where you work",
emailPh: "ana@company.com", emailPh: "Where we’ll reply",
messagePh: "Today we track orders in spreadsheets and…", messagePh: "For example: today we track orders in spreadsheets and…",
submit: "Send message", submit: "Send message",
sending: "Sending…", sending: "Sending…",
privacy: privacy:
@@ -353,13 +356,14 @@ module.exports = {
thanks: { thanks: {
title: "Thank you | 2piDev", title: "Thank you | 2piDev",
heading: "We got your message.", heading: "We got your message.",
lede: "We will reply within one business day from hola@2pidev.com. Here is what happens next:", lede: "We will reply within 1 business day from hola@2pidev.com. Here is what happens next:",
steps: [ steps: [
"We write to set up a first conversation.", "We write to set up a first conversation.",
"We run discovery on your process.", "We run discovery on your process.",
"We hand you a written proposal with scope, stages, timeline and budget.", "We hand you a written proposal with scope, stages, timeline and budget.",
], ],
back: "Back to home", back: "Back to home",
center: "your turn has begun",
}, },
}, },
}; };

View File

@@ -5,7 +5,7 @@
many times (refine → build → deliver). Labels sit inside the ring. many times (refine → build → deliver). Labels sit inside the ring.
Geometry: viewBox 600×600, centre (300,300), ring radius 250; loop centre (300,460), radius 90. Geometry: viewBox 600×600, centre (300,300), ring radius 250; loop centre (300,460), radius 90.
#} #}
{% macro cycle(c, id, draw=false, sticky=false) %} {% macro cycle(c, id, draw=false, sticky=false, active=none, center=none) %}
{% set nodes = [ {% set nodes = [
{ x: 300, y: 50, lx: 300, ly: 140, side: "a" }, { x: 300, y: 50, lx: 300, ly: 140, side: "a" },
{ x: 550, y: 300, lx: 455, ly: 352, side: "a" }, { x: 550, y: 300, lx: 455, ly: 352, side: "a" },
@@ -13,11 +13,16 @@
{ x: 50, y: 300, lx: 145, ly: 352, side: "b" } { x: 50, y: 300, lx: 145, ly: 352, side: "b" }
] %} ] %}
{% set degs = ["0°", "90°", "180°", "270°"] %} {% set degs = ["0°", "90°", "180°", "270°"] %}
<svg class="cycle{% if draw %} cycle-draw{% endif %}" id="{{ id }}" viewBox="-12 -12 624 624" role="img" aria-labelledby="{{ id }}-title {{ id }}-desc"{% if sticky %} data-active="0"{% endif %}> <svg class="cycle{% if draw %} cycle-draw{% endif %}" id="{{ id }}" viewBox="-12 -12 624 624" role="img" aria-labelledby="{{ id }}-title {{ id }}-desc"{% if sticky %} data-active="0" style="--pa:0;--pb:0"{% elif active != none %} data-active="{{ active }}"{% endif %}>
<title id="{{ id }}-title">{{ c.title }}</title> <title id="{{ id }}-title">{{ c.title }}</title>
<desc id="{{ id }}-desc">{{ c.desc }}</desc> <desc id="{{ id }}-desc">{{ c.desc }}</desc>
<path class="arc arc-a" pathLength="1" d="M 326.1 51.4 A 250 250 0 0 1 326.1 548.6" /> <path class="arc arc-a{% if sticky %} track{% endif %}" pathLength="1" d="M 326.1 51.4 A 250 250 0 0 1 326.1 548.6" />
<path class="arc arc-b" pathLength="1" d="M 273.9 548.6 A 250 250 0 0 1 273.9 51.4" /> <path class="arc arc-b{% if sticky %} track{% endif %}" pathLength="1" d="M 273.9 548.6 A 250 250 0 0 1 273.9 51.4" />
{% if sticky %}
{# Progress: the turn fills as the reader moves through the stages and closes at the end #}
<path class="arc arc-a progress progress-a" pathLength="1" d="M 326.1 51.4 A 250 250 0 0 1 326.1 548.6" />
<path class="arc arc-b progress progress-b" pathLength="1" d="M 273.9 548.6 A 250 250 0 0 1 273.9 51.4" />
{% endif %}
{# Iteration loop: a small 2π inside the ring #} {# Iteration loop: a small 2π inside the ring #}
<g class="loop" aria-hidden="true"> <g class="loop" aria-hidden="true">
@@ -35,11 +40,11 @@
</g> </g>
{% endfor %} {% endfor %}
{% if sticky %} {% if sticky %}
<text class="loop-count" x="300" y="505" text-anchor="middle" aria-hidden="true" data-loop-count data-word="{{ c.iteration }}">×N</text> <text class="loop-count" x="300" y="505" text-anchor="middle" aria-hidden="true" data-loop-count data-word="{{ c.iteration }}"></text>
{% endif %} {% endif %}
<g aria-hidden="true"> <g aria-hidden="true">
<text class="pi" x="300" y="268" text-anchor="middle">2π</text> <text class="pi" x="300" y="268" text-anchor="middle">2π</text>
<text class="center" x="300" y="302" text-anchor="middle">{{ c.center }}</text> <text class="center" x="300" y="302" text-anchor="middle">{{ center or c.center }}</text>
</g> </g>
</svg> </svg>
{% endmacro %} {% endmacro %}

View File

@@ -1,7 +1,8 @@
{% from "cycle.njk" import cycle %} {% from "cycle.njk" import cycle %}
{% set t = i18n[lang] %} {% set t = i18n[lang] %}
{% set pageTitle = t.meta.title %} {% set pageTitle = t.meta.title %}
{% macro nodeIcon() %}<svg viewBox="0 0 16 16" aria-hidden="true"><circle cx="8" cy="8" r="5" fill="#fff" stroke="#0b1220" stroke-width="2"/></svg>{% endmacro %} {% macro checkIcon() %}<svg viewBox="0 0 16 16" fill="none" aria-hidden="true"><path d="M3 8.5l3.2 3L13 4.5" stroke="#0b1220" stroke-width="1.8" stroke-linecap="round" stroke-linejoin="round"/></svg>{% endmacro %}
{% macro miniCycle(i) %}{% set pos = [[12,3],[21,12],[12,21],[3,12]] %}{% set fill = "#ff7f2a" if i < 3 else "#0079ff" %}<svg class="mini-cycle" viewBox="0 0 24 24" fill="none" aria-hidden="true"><path d="M13.2 3.1A9 9 0 0 1 13.2 20.9" stroke="#ff7f2a" stroke-width="1.8" stroke-linecap="round"/><path d="M10.8 20.9A9 9 0 0 1 10.8 3.1" stroke="#0079ff" stroke-width="1.8" stroke-linecap="round"/>{% if i == 2 %}<path d="M12.6 12.6a3.6 3.6 0 0 1 0 7.2" stroke="#ff7f2a" stroke-width="1.4" stroke-linecap="round"/><path d="M11.4 19.8a3.6 3.6 0 0 1 0-7.2" stroke="#0079ff" stroke-width="1.4" stroke-linecap="round"/>{% endif %}<circle cx="{{ pos[i][0] }}" cy="{{ pos[i][1] }}" r="3" fill="{{ fill }}" stroke="#fbfcfe" stroke-width="1.6"/></svg>{% endmacro %}
{% macro arrow() %}<svg class="arrow h-4 w-4" viewBox="0 0 16 16" fill="none" aria-hidden="true"><path d="M3 8h9.5M8.5 4l4 4-4 4" stroke="currentColor" stroke-width="1.6" stroke-linecap="round" stroke-linejoin="round"/></svg>{% endmacro %} {% macro arrow() %}<svg class="arrow h-4 w-4" viewBox="0 0 16 16" fill="none" aria-hidden="true"><path d="M3 8h9.5M8.5 4l4 4-4 4" stroke="currentColor" stroke-width="1.6" stroke-linecap="round" stroke-linejoin="round"/></svg>{% endmacro %}
<!doctype html> <!doctype html>
<html lang="{{ t.htmlLang }}"> <html lang="{{ t.htmlLang }}">
@@ -17,14 +18,14 @@
<img src="/images/logo-64x64.png" width="32" height="32" alt="" class="h-8 w-8"> <img src="/images/logo-64x64.png" width="32" height="32" alt="" class="h-8 w-8">
<span class="text-lg font-semibold tracking-[-0.02em]">2piDev</span> <span class="text-lg font-semibold tracking-[-0.02em]">2piDev</span>
</a> </a>
<nav class="hidden items-center md:flex" aria-label="{{ t.nav.main }}"> <nav class="hidden items-center lg:flex" aria-label="{{ t.nav.main }}">
<a class="nav-link" href="#process">{{ t.nav.process }}</a> <a class="nav-link" href="#process">{{ t.nav.process }}</a>
<a class="nav-link" href="#services">{{ t.nav.services }}</a>
<a class="nav-link" href="#team">{{ t.nav.team }}</a> <a class="nav-link" href="#team">{{ t.nav.team }}</a>
<a class="nav-link" href="#services">{{ t.nav.services }}</a>
<a class="nav-link" href="#faq">{{ t.nav.faq }}</a> <a class="nav-link" href="#faq">{{ t.nav.faq }}</a>
</nav> </nav>
<div class="flex items-center gap-1.5"> <div class="flex items-center gap-1.5">
<button class="menu-btn md:hidden" type="button" aria-expanded="false" aria-controls="mobile-nav" data-menu-btn> <button class="menu-btn lg:hidden" type="button" aria-expanded="false" aria-controls="mobile-nav" data-menu-btn>
<span class="sr-only">{{ t.nav.menu }}</span> <span class="sr-only">{{ t.nav.menu }}</span>
<svg class="h-5 w-5" viewBox="0 0 20 20" fill="none" aria-hidden="true"><path class="menu-open" d="M3 6.5h14M3 13.5h14" stroke="currentColor" stroke-width="1.6" stroke-linecap="round"/><path class="menu-close" d="M5 5l10 10M15 5L5 15" stroke="currentColor" stroke-width="1.6" stroke-linecap="round"/></svg> <svg class="h-5 w-5" viewBox="0 0 20 20" fill="none" aria-hidden="true"><path class="menu-open" d="M3 6.5h14M3 13.5h14" stroke="currentColor" stroke-width="1.6" stroke-linecap="round"/><path class="menu-close" d="M5 5l10 10M15 5L5 15" stroke="currentColor" stroke-width="1.6" stroke-linecap="round"/></svg>
</button> </button>
@@ -32,11 +33,11 @@
<a class="btn-primary btn-small" href="#contact" data-cta="header">{{ t.nav.cta }}</a> <a class="btn-primary btn-small" href="#contact" data-cta="header">{{ t.nav.cta }}</a>
</div> </div>
</div> </div>
<nav class="mobile-nav md:hidden" id="mobile-nav" aria-label="{{ t.nav.main }}" hidden data-mobile-nav> <nav class="mobile-nav lg:hidden" id="mobile-nav" aria-label="{{ t.nav.main }}" hidden data-mobile-nav>
<div class="shell flex flex-col py-2"> <div class="shell flex flex-col py-2">
<a href="#process">{{ t.nav.process }}</a> <a href="#process">{{ t.nav.process }}</a>
<a href="#services">{{ t.nav.services }}</a>
<a href="#team">{{ t.nav.team }}</a> <a href="#team">{{ t.nav.team }}</a>
<a href="#services">{{ t.nav.services }}</a>
<a href="#faq">{{ t.nav.faq }}</a> <a href="#faq">{{ t.nav.faq }}</a>
</div> </div>
</nav> </nav>
@@ -54,8 +55,8 @@
<a class="btn-secondary" href="#process" data-cta="hero-secondary">{{ t.hero.secondary }}</a> <a class="btn-secondary" href="#process" data-cta="hero-secondary">{{ t.hero.secondary }}</a>
</div> </div>
<ul class="mt-9 flex flex-col gap-3 sm:flex-row sm:gap-7"> <ul class="mt-9 flex flex-col gap-3 sm:flex-row sm:gap-7">
<li class="promise">{{ nodeIcon() }}{{ t.hero.promises[0] }}</li> <li class="promise">{{ checkIcon() }}{{ t.hero.promises[0] }}</li>
<li class="promise">{{ nodeIcon() }}{{ t.hero.promises[1] }}</li> <li class="promise">{{ checkIcon() }}{{ t.hero.promises[1] }}</li>
</ul> </ul>
</div> </div>
<div class="mx-auto w-full max-w-[26rem] sm:max-w-[30rem] lg:max-w-[33rem]"> <div class="mx-auto w-full max-w-[26rem] sm:max-w-[30rem] lg:max-w-[33rem]">
@@ -97,7 +98,7 @@
{% for s in t.process.stages %} {% for s in t.process.stages %}
<li class="stage-item" data-stage="{{ loop.index0 }}"> <li class="stage-item" data-stage="{{ loop.index0 }}">
<div class="grid grid-cols-[3.75rem_1fr] items-baseline sm:grid-cols-[4.5rem_1fr]"> <div class="grid grid-cols-[3.75rem_1fr] items-baseline sm:grid-cols-[4.5rem_1fr]">
<span class="stage-deg {{ 'text-orange-text' if loop.index0 < 3 else 'text-blue-text' }}">{{ s.deg }}</span> <span class="stage-deg {{ 'text-orange-text' if loop.index0 < 3 else 'text-blue-text' }}">{{ miniCycle(loop.index0) }}{{ s.deg }}</span>
<h3 class="stage-title text-2xl font-semibold tracking-[-0.025em] text-ink">{{ s.title }}</h3> <h3 class="stage-title text-2xl font-semibold tracking-[-0.025em] text-ink">{{ s.title }}</h3>
</div> </div>
<div class="pl-[3.75rem] sm:pl-[4.5rem]"> <div class="pl-[3.75rem] sm:pl-[4.5rem]">
@@ -125,7 +126,7 @@
</li> </li>
{% endfor %} {% endfor %}
</ol> </ol>
<p class="mt-4 grid grid-cols-[3.75rem_1fr] items-start border-t border-line pt-10 text-lg font-medium tracking-[-0.01em] text-ink sm:grid-cols-[4.5rem_1fr]"> <p data-cycle-close class="mt-4 grid grid-cols-[3.75rem_1fr] items-start border-t border-line pt-10 text-lg font-medium tracking-[-0.01em] text-ink sm:grid-cols-[4.5rem_1fr]">
<svg class="mt-1 h-5 w-5 flex-none" viewBox="0 0 20 20" fill="none" aria-hidden="true"><path d="M16.5 10A6.5 6.5 0 1 1 13.8 4.7" stroke="#0b1220" stroke-width="1.8" stroke-linecap="round"/><path d="M14.2 1.8l-.3 3.1-3.1-.3" stroke="#0b1220" stroke-width="1.8" stroke-linecap="round" stroke-linejoin="round"/></svg> <svg class="mt-1 h-5 w-5 flex-none" viewBox="0 0 20 20" fill="none" aria-hidden="true"><path d="M16.5 10A6.5 6.5 0 1 1 13.8 4.7" stroke="#0b1220" stroke-width="1.8" stroke-linecap="round"/><path d="M14.2 1.8l-.3 3.1-3.1-.3" stroke="#0b1220" stroke-width="1.8" stroke-linecap="round" stroke-linejoin="round"/></svg>
<span>{{ t.process.close }}</span> <span>{{ t.process.close }}</span>
</p> </p>
@@ -210,7 +211,15 @@
</li> </li>
{% endfor %} {% endfor %}
</ul> </ul>
<p class="mt-10 text-night-muted">{{ t.contact.orEmail }} <a class="night-link" href="mailto:{{ site.email }}">{{ site.email }}</a></p> <div class="start-turn mt-10 flex items-center gap-4 border-t border-white/10 pt-8" data-start-turn>
<svg class="h-12 w-12 flex-none" viewBox="0 0 48 48" fill="none" aria-hidden="true">
<path class="st-arc" pathLength="1" d="M26.4 4.1A20 20 0 0 1 26.4 43.9" stroke="#ff7f2a" stroke-width="3.5" stroke-linecap="round"/>
<path class="st-arc st-arc-b" pathLength="1" d="M21.6 43.9A20 20 0 0 1 21.6 4.1" stroke="#0079ff" stroke-width="3.5" stroke-linecap="round"/>
<circle class="st-node" cx="24" cy="4" r="4.5" fill="#ff7f2a" stroke="#0b1220" stroke-width="2.5"/>
</svg>
<p class="text-[0.9375rem] leading-6 text-night-text">{{ t.contact.startTurn }}</p>
</div>
<p class="mt-8 text-night-muted">{{ t.contact.orEmail }} <a class="night-link" href="mailto:{{ site.email }}">{{ site.email }}</a></p>
</div> </div>
<form class="lg:col-span-7" action="https://formsubmit.co/{{ site.email }}" method="POST" data-contact-form <form class="lg:col-span-7" action="https://formsubmit.co/{{ site.email }}" method="POST" data-contact-form
@@ -292,34 +301,81 @@
document.addEventListener('keydown', function (e) { document.addEventListener('keydown', function (e) {
if (e.key === 'Escape' && !menu.hidden) { setMenu(false); menuBtn.focus(); } if (e.key === 'Escape' && !menu.hidden) { setMenu(false); menuBtn.focus(); }
}); });
window.matchMedia('(min-width: 768px)').addEventListener('change', function (m) { if (m.matches) setMenu(false); }); window.matchMedia('(min-width: 1024px)').addEventListener('change', function (m) { if (m.matches) setMenu(false); });
// Sticky cycle follows the stage being read // Sticky cycle follows the stage being read
var cycleEl = document.getElementById('cycle-process'); var cycleEl = document.getElementById('cycle-process');
var stages = document.querySelectorAll('[data-stage]'); var stages = document.querySelectorAll('[data-stage]');
if (cycleEl && stages.length && 'IntersectionObserver' in window) { if (cycleEl && stages.length && 'IntersectionObserver' in window) {
// The ring fills with the reader: 0°, 90°, 180°, 270°, and closes (360°) at the closing line.
// Orange arc spans 6°–174°, blue 186°–354° (pathLength 1 each).
var closeLine = document.querySelector('[data-cycle-close]');
var closed = false; // while the closing line is in view, the turn stays closed
var lastStage = '0';
function setProgress(deg) {
var pa = Math.min(Math.max((deg - 6) / 168, 0), 1);
var pb = Math.min(Math.max((deg - 186) / 168, 0), 1);
cycleEl.style.setProperty('--pa', pa);
cycleEl.style.setProperty('--pb', pb);
}
var io = new IntersectionObserver(function (entries) { var io = new IntersectionObserver(function (entries) {
entries.forEach(function (entry) { entries.forEach(function (entry) {
if (!entry.isIntersecting) return; if (!entry.isIntersecting) return;
var i = entry.target.getAttribute('data-stage'); var i = entry.target.getAttribute('data-stage');
lastStage = i;
if (closed) return;
setProgress(i * 90);
cycleEl.setAttribute('data-active', i); cycleEl.setAttribute('data-active', i);
stages.forEach(function (s) { s.toggleAttribute('data-current', s === entry.target); }); stages.forEach(function (s) { s.toggleAttribute('data-current', s === entry.target); });
}); });
}, { rootMargin: '-40% 0px -59% 0px' }); }, { rootMargin: '-40% 0px -59% 0px' });
stages.forEach(function (s) { io.observe(s); }); stages.forEach(function (s) { io.observe(s); });
// The turn closes as soon as the closing line comes into view (while the ring is still whole),
// and reopens at 270° if the reader scrolls back above it.
if (closeLine) {
new IntersectionObserver(function (entries) {
var e = entries[0];
if (e.isIntersecting) {
closed = true;
setProgress(360);
cycleEl.setAttribute('data-active', '0');
cycleEl.setAttribute('data-complete', '');
stages.forEach(function (s) { s.removeAttribute('data-current'); });
} else if (closed && e.boundingClientRect.top > 0) {
closed = false;
cycleEl.removeAttribute('data-complete');
setProgress(lastStage * 90);
cycleEl.setAttribute('data-active', lastStage);
stages.forEach(function (s) { s.toggleAttribute('data-current', s.getAttribute('data-stage') === lastStage); });
}
}, { rootMargin: '0px 0px -45% 0px' }).observe(closeLine);
}
// While the iterations stage is being read, the inner loop turns and counts // While the iterations stage is being read, the inner loop turns and counts
var counter = cycleEl.querySelector('[data-loop-count]'); var counter = cycleEl.querySelector('[data-loop-count]');
var still = window.matchMedia('(prefers-reduced-motion: reduce)'); var still = window.matchMedia('(prefers-reduced-motion: reduce)');
var timer = null, turn = 0; var timer = null, turn = 0;
function tick() { turn += 1; counter.textContent = counter.dataset.word + ' ' + turn; } function tick() { turn = turn % 3 + 1; counter.textContent = counter.dataset.word + ' ' + turn; }
new MutationObserver(function () { new MutationObserver(function () {
var on = cycleEl.getAttribute('data-active') === '2' && !still.matches; var on = cycleEl.getAttribute('data-active') === '2' && !still.matches;
if (on && !timer) { turn = 0; tick(); timer = setInterval(tick, 1800); } if (on && !timer) { turn = 0; tick(); timer = setInterval(tick, 1800); }
if (!on && timer) { clearInterval(timer); timer = null; } if (!on && timer) { clearInterval(timer); timer = null; counter.textContent = ''; }
}).observe(cycleEl, { attributes: true, attributeFilter: ['data-active'] }); }).observe(cycleEl, { attributes: true, attributeFilter: ['data-active'] });
} }
// The visitor's own turn: the small ring by the form draws once when it comes into view
var startTurn = document.querySelector('[data-start-turn]');
if (startTurn && 'IntersectionObserver' in window) {
startTurn.classList.add('is-waiting');
var sto = new IntersectionObserver(function (entries) {
if (!entries[0].isIntersecting) return;
startTurn.classList.remove('is-waiting');
startTurn.classList.add('is-drawn');
sto.disconnect();
}, { threshold: 0.6 });
sto.observe(startTurn);
}
// Contact form: accessible validation and sending state // Contact form: accessible validation and sending state
var form = document.querySelector('[data-contact-form]'); var form = document.querySelector('[data-contact-form]');
if (!form) return; if (!form) return;

View File

@@ -1,3 +1,4 @@
{% from "cycle.njk" import cycle %}
{% set t = i18n[lang] %} {% set t = i18n[lang] %}
{% set pageTitle = t.thanks.title %} {% set pageTitle = t.thanks.title %}
<!doctype html> <!doctype html>
@@ -26,7 +27,7 @@
<path d="M19 28.5l6 5.5 12-12" stroke="#0b1220" stroke-width="3" stroke-linecap="round" stroke-linejoin="round"/> <path d="M19 28.5l6 5.5 12-12" stroke="#0b1220" stroke-width="3" stroke-linecap="round" stroke-linejoin="round"/>
</svg> </svg>
<h1 class="display mt-8 max-w-[14ch]">{{ t.thanks.heading }}</h1> <h1 class="display mt-8 max-w-[14ch]">{{ t.thanks.heading }}</h1>
<p class="lede mt-6 max-w-[34rem]">{{ t.thanks.lede }}</p> <p class="lede mt-6 max-w-[34rem]">{{ t.thanks.lede | replace(site.email, '<a class="font-medium text-ink underline decoration-line underline-offset-4 hover:decoration-ink" href="mailto:' + site.email + '">' + site.email + '</a>') | safe }}</p>
<ol class="row-list mt-8 max-w-[34rem]"> <ol class="row-list mt-8 max-w-[34rem]">
{% for step in t.thanks.steps %} {% for step in t.thanks.steps %}
<li class="flex gap-4 py-4 text-ink-2"> <li class="flex gap-4 py-4 text-ink-2">
@@ -37,6 +38,9 @@
</ol> </ol>
<a class="btn-secondary mt-10" href="{{ t.home }}">{{ t.thanks.back }}</a> <a class="btn-secondary mt-10" href="{{ t.home }}">{{ t.thanks.back }}</a>
</div> </div>
<div class="mx-auto w-full max-w-[22rem] lg:col-span-5 lg:max-w-[28rem]">
{{ cycle(t.cycle, "cycle-thanks", true, false, 0, t.thanks.center) }}
</div>
</div> </div>
</main> </main>
</body> </body>

File diff suppressed because one or more lines are too long

View File

@@ -107,7 +107,7 @@
@apply border-line; @apply border-line;
} }
.nav-link { .nav-link {
@apply rounded-md px-3 py-2 text-[0.9375rem] font-medium text-ink-2 transition-colors hover:text-ink; @apply whitespace-nowrap rounded-md px-3 py-2 text-[0.9375rem] font-medium text-ink-2 transition-colors hover:text-ink;
} }
.lang-link { .lang-link {
@apply rounded-md px-2.5 py-2 text-sm font-medium text-muted transition-colors hover:text-ink; @apply rounded-md px-2.5 py-2 text-sm font-medium text-muted transition-colors hover:text-ink;
@@ -214,6 +214,27 @@
font-variant-numeric: tabular-nums; font-variant-numeric: tabular-nums;
transition: opacity 0.3s ease; transition: opacity 0.3s ease;
} }
/* Sticky cycle: the ring is a faint track that fills as the reader advances */
.cycle .track {
opacity: 0.2;
}
.cycle .progress {
stroke-dasharray: 1;
}
.cycle .progress-a {
stroke-dashoffset: calc(1 - var(--pa, 1));
}
.cycle .progress-b {
stroke-dashoffset: calc(1 - var(--pb, 1));
}
@media (prefers-reduced-motion: no-preference) {
.cycle .progress {
transition: stroke-dashoffset 0.6s var(--ease-out);
}
.cycle[data-complete] .stage-0 .node {
animation: node-pulse 0.9s var(--ease-out) 0.45s;
}
}
.cycle .loop-arc { .cycle .loop-arc {
stroke-width: 7; stroke-width: 7;
} }
@@ -238,6 +259,30 @@
animation-delay: 0.95s; animation-delay: 0.95s;
} }
} }
/* "Writing to us is your 0°": hidden only while JS waits for it to scroll in; drawn once */
@media (prefers-reduced-motion: no-preference) {
.start-turn.is-waiting .st-arc {
stroke-dasharray: 1;
stroke-dashoffset: 1;
}
.start-turn.is-waiting .st-node {
transform: scale(0);
}
.start-turn .st-node {
transform-box: fill-box;
transform-origin: center;
}
.start-turn.is-drawn .st-arc {
stroke-dasharray: 1;
animation: cycle-draw 0.9s var(--ease-out) both;
}
.start-turn.is-drawn .st-arc-b {
animation-delay: 0.3s;
}
.start-turn.is-drawn .st-node {
animation: cycle-node 0.5s var(--ease-out) 0.7s both;
}
}
.iter-steps > li { .iter-steps > li {
@apply border-t border-dashed border-line; @apply border-t border-dashed border-line;
} }
@@ -262,7 +307,7 @@
animation-delay: 0.45s; animation-delay: 0.45s;
} }
.cycle-draw .node { .cycle-draw .node {
animation: cycle-node 0.5s var(--ease-out) both; animation: cycle-node 0.5s var(--ease-out) backwards;
} }
.cycle-draw .stage-0 .node { .cycle-draw .stage-0 .node {
animation-delay: 0.05s; animation-delay: 0.05s;
@@ -276,13 +321,10 @@
.cycle-draw .stage-3 .node { .cycle-draw .stage-3 .node {
animation-delay: 0.8s; animation-delay: 0.8s;
} }
.cycle-draw .stage-4 .node {
animation-delay: 1.05s;
}
} }
/* Sticky cycle in "How we work": the node of the stage being read comes forward */ /* Active stage (sticky cycle in "How we work", thanks page): its node comes forward.
/* Inactive nodes keep an opaque white fill (the arc never shows through); only the outline dims */ Inactive nodes keep an opaque white fill (the arc never shows through); only the outline dims. */
.cycle[data-active] .stage .node-a circle { .cycle[data-active] .stage .node-a circle {
stroke: #ffcaa5; stroke: #ffcaa5;
} }
@@ -294,8 +336,7 @@
.cycle[data-active="2"] .stage-2 .node-a circle { .cycle[data-active="2"] .stage-2 .node-a circle {
stroke: #ff7f2a; stroke: #ff7f2a;
} }
.cycle[data-active="3"] .stage-3 .node-b circle, .cycle[data-active="3"] .stage-3 .node-b circle {
.cycle[data-active="4"] .stage-4 .node-b circle {
stroke: #0079ff; stroke: #0079ff;
} }
.cycle[data-active] .stage .label { .cycle[data-active] .stage .label {
@@ -307,15 +348,13 @@
.cycle[data-active="0"] .stage-0 :is(.node, .label, .deg), .cycle[data-active="0"] .stage-0 :is(.node, .label, .deg),
.cycle[data-active="1"] .stage-1 :is(.node, .label, .deg), .cycle[data-active="1"] .stage-1 :is(.node, .label, .deg),
.cycle[data-active="2"] .stage-2 :is(.node, .label, .deg), .cycle[data-active="2"] .stage-2 :is(.node, .label, .deg),
.cycle[data-active="3"] .stage-3 :is(.node, .label, .deg), .cycle[data-active="3"] .stage-3 :is(.node, .label, .deg) {
.cycle[data-active="4"] .stage-4 :is(.node, .label, .deg) {
opacity: 1; opacity: 1;
} }
.cycle[data-active="0"] .stage-0 .node, .cycle[data-active="0"] .stage-0 .node,
.cycle[data-active="1"] .stage-1 .node, .cycle[data-active="1"] .stage-1 .node,
.cycle[data-active="2"] .stage-2 .node, .cycle[data-active="2"] .stage-2 .node,
.cycle[data-active="3"] .stage-3 .node, .cycle[data-active="3"] .stage-3 .node {
.cycle[data-active="4"] .stage-4 .node {
transform: scale(1.45); transform: scale(1.45);
} }
.cycle[data-active="0"] .stage-0 .node-a circle, .cycle[data-active="0"] .stage-0 .node-a circle,
@@ -323,8 +362,7 @@
.cycle[data-active="2"] .stage-2 .node-a circle { .cycle[data-active="2"] .stage-2 .node-a circle {
fill: #ff7f2a; fill: #ff7f2a;
} }
.cycle[data-active="3"] .stage-3 .node-b circle, .cycle[data-active="3"] .stage-3 .node-b circle {
.cycle[data-active="4"] .stage-4 .node-b circle {
fill: #0079ff; fill: #0079ff;
} }
@@ -335,6 +373,10 @@
.stage-deg { .stage-deg {
@apply tnum text-base font-medium; @apply tnum text-base font-medium;
} }
/* Below lg there is no sticky cycle: each stage carries a mini cycle with its own node marked */
.mini-cycle {
@apply mb-1 block h-6 w-6 lg:hidden;
}
/* Mobile menu */ /* Mobile menu */
.menu-btn { .menu-btn {
@@ -416,8 +458,10 @@
.field { .field {
@apply mt-2 block w-full rounded-lg border border-night-edge bg-night-field px-4 py-3 text-base text-white transition-colors duration-150; @apply mt-2 block w-full rounded-lg border border-night-edge bg-night-field px-4 py-3 text-base text-white transition-colors duration-150;
} }
/* Placeholders are hints, never values: dimmer than typed text (#7a849d ≈ 4.6:1 on the field) */
.field::placeholder { .field::placeholder {
color: #8e98ad; color: #7a849d;
opacity: 1;
} }
.field:hover { .field:hover {
border-color: #74809d; border-color: #74809d;
@@ -471,11 +515,14 @@
} }
} }
@keyframes node-pulse {
40% {
transform: scale(1.9);
}
}
@keyframes cycle-node { @keyframes cycle-node {
from { from {
transform: scale(0); transform: scale(0);
} }
to {
transform: scale(1);
}
} }