Refine landing: mobile signature, clearer form, closing the 2π turn

- Fix 320px overflow; nav switches to the menu below 1024px; per-stage
  mini cycles below lg where the sticky cycle is hidden.
- Form placeholders become hints (dimmer, not fake values).
- Bring the cycle to the contact close ("Escribirnos te pone en el 0°")
  and to the thank-you page (Relevamiento lit, "tu vuelta empezó").
- Sticky cycle: ring fills with the stage being read and closes at
  360° on the closing line, with a single pulse at 0°; iteration
  counter loops 1–3 and clears when inactive.
- Nav order matches the page; check marks for hero promises; email
  link on the thank-you page; unified "1 día hábil" and "turn" copy.
- Record critique snapshots and update DESIGN.md.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
Jose Selesan
2026-11-05 21:19:00 -03:00
parent 0c18c6c834
commit 93bc7688c3
9 changed files with 268 additions and 57 deletions

View File

@@ -23,7 +23,7 @@ module.exports = {
skip: "Saltar al contenido",
},
hero: {
title: "Software a\u00a0medida, de\u00a0punta\u00a0a\u00a0punta.",
title: "Software a\u00a0medida, de\u00a0punta a\u00a0punta.",
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.",
primary: "Cuéntanos tu proyecto",
@@ -119,7 +119,7 @@ module.exports = {
faq: {
title: "Antes de escribirnos",
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?",
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.",
"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?",
form: {
name: "Nombre",
@@ -149,10 +150,10 @@ module.exports = {
companyHint: "Opcional",
email: "Email",
message: "¿Qué necesitas resolver?",
namePh: "Ana García",
companyPh: "Nombre de tu empresa",
emailPh: "ana@empresa.com",
messagePh: "Hoy llevamos los pedidos en planillas y…",
namePh: "Cómo te llamas",
companyPh: "Dónde trabajas",
emailPh: "Dónde te respondemos",
messagePh: "Por ejemplo: hoy llevamos los pedidos en planillas y…",
submit: "Enviar mensaje",
sending: "Enviando…",
privacy:
@@ -172,13 +173,14 @@ module.exports = {
thanks: {
title: "Gracias | 2piDev",
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: [
"Te escribimos para coordinar una primera conversación.",
"Hacemos el relevamiento de tu proceso.",
"Te entregamos una propuesta escrita con alcance, etapas, plazos y presupuesto.",
],
back: "Volver al inicio",
center: "tu vuelta empezó",
},
},
@@ -300,7 +302,7 @@ module.exports = {
faq: {
title: "Before you write",
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?",
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.",
"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?",
form: {
name: "Name",
@@ -330,10 +333,10 @@ module.exports = {
companyHint: "Optional",
email: "Email",
message: "What do you need to solve?",
namePh: "Ana García",
companyPh: "Your company name",
emailPh: "ana@company.com",
messagePh: "Today we track orders in spreadsheets and…",
namePh: "What should we call you",
companyPh: "Where you work",
emailPh: "Where we’ll reply",
messagePh: "For example: today we track orders in spreadsheets and…",
submit: "Send message",
sending: "Sending…",
privacy:
@@ -353,13 +356,14 @@ module.exports = {
thanks: {
title: "Thank you | 2piDev",
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: [
"We write to set up a first conversation.",
"We run discovery on your process.",
"We hand you a written proposal with scope, stages, timeline and budget.",
],
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.
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 = [
{ x: 300, y: 50, lx: 300, ly: 140, 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" }
] %}
{% 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>
<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-b" pathLength="1" d="M 273.9 548.6 A 250 250 0 0 1 273.9 51.4" />
<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{% 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 #}
<g class="loop" aria-hidden="true">
@@ -35,11 +40,11 @@
</g>
{% endfor %}
{% 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 %}
<g aria-hidden="true">
<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>
</svg>
{% endmacro %}

View File

@@ -1,7 +1,8 @@
{% from "cycle.njk" import cycle %}
{% set t = i18n[lang] %}
{% 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 %}
<!doctype html>
<html lang="{{ t.htmlLang }}">
@@ -17,14 +18,14 @@
<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>
</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="#services">{{ t.nav.services }}</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>
</nav>
<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>
<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>
@@ -32,11 +33,11 @@
<a class="btn-primary btn-small" href="#contact" data-cta="header">{{ t.nav.cta }}</a>
</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">
<a href="#process">{{ t.nav.process }}</a>
<a href="#services">{{ t.nav.services }}</a>
<a href="#team">{{ t.nav.team }}</a>
<a href="#services">{{ t.nav.services }}</a>
<a href="#faq">{{ t.nav.faq }}</a>
</div>
</nav>
@@ -54,8 +55,8 @@
<a class="btn-secondary" href="#process" data-cta="hero-secondary">{{ t.hero.secondary }}</a>
</div>
<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">{{ nodeIcon() }}{{ t.hero.promises[1] }}</li>
<li class="promise">{{ checkIcon() }}{{ t.hero.promises[0] }}</li>
<li class="promise">{{ checkIcon() }}{{ t.hero.promises[1] }}</li>
</ul>
</div>
<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 %}
<li class="stage-item" data-stage="{{ loop.index0 }}">
<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>
</div>
<div class="pl-[3.75rem] sm:pl-[4.5rem]">
@@ -125,7 +126,7 @@
</li>
{% endfor %}
</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>
<span>{{ t.process.close }}</span>
</p>
@@ -210,7 +211,15 @@
</li>
{% endfor %}
</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>
<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) {
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
var cycleEl = document.getElementById('cycle-process');
var stages = document.querySelectorAll('[data-stage]');
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) {
entries.forEach(function (entry) {
if (!entry.isIntersecting) return;
var i = entry.target.getAttribute('data-stage');
lastStage = i;
if (closed) return;
setProgress(i * 90);
cycleEl.setAttribute('data-active', i);
stages.forEach(function (s) { s.toggleAttribute('data-current', s === entry.target); });
});
}, { rootMargin: '-40% 0px -59% 0px' });
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
var counter = cycleEl.querySelector('[data-loop-count]');
var still = window.matchMedia('(prefers-reduced-motion: reduce)');
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 () {
var on = cycleEl.getAttribute('data-active') === '2' && !still.matches;
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'] });
}
// 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
var form = document.querySelector('[data-contact-form]');
if (!form) return;

View File

@@ -1,3 +1,4 @@
{% from "cycle.njk" import cycle %}
{% set t = i18n[lang] %}
{% set pageTitle = t.thanks.title %}
<!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"/>
</svg>
<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]">
{% for step in t.thanks.steps %}
<li class="flex gap-4 py-4 text-ink-2">
@@ -37,6 +38,9 @@
</ol>
<a class="btn-secondary mt-10" href="{{ t.home }}">{{ t.thanks.back }}</a>
</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>
</main>
</body>

File diff suppressed because one or more lines are too long

View File

@@ -107,7 +107,7 @@
@apply border-line;
}
.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 {
@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;
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 {
stroke-width: 7;
}
@@ -238,6 +259,30 @@
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 {
@apply border-t border-dashed border-line;
}
@@ -262,7 +307,7 @@
animation-delay: 0.45s;
}
.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 {
animation-delay: 0.05s;
@@ -276,13 +321,10 @@
.cycle-draw .stage-3 .node {
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 */
/* Inactive nodes keep an opaque white fill (the arc never shows through); only the outline dims */
/* 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. */
.cycle[data-active] .stage .node-a circle {
stroke: #ffcaa5;
}
@@ -294,8 +336,7 @@
.cycle[data-active="2"] .stage-2 .node-a circle {
stroke: #ff7f2a;
}
.cycle[data-active="3"] .stage-3 .node-b circle,
.cycle[data-active="4"] .stage-4 .node-b circle {
.cycle[data-active="3"] .stage-3 .node-b circle {
stroke: #0079ff;
}
.cycle[data-active] .stage .label {
@@ -307,15 +348,13 @@
.cycle[data-active="0"] .stage-0 :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="3"] .stage-3 :is(.node, .label, .deg),
.cycle[data-active="4"] .stage-4 :is(.node, .label, .deg) {
.cycle[data-active="3"] .stage-3 :is(.node, .label, .deg) {
opacity: 1;
}
.cycle[data-active="0"] .stage-0 .node,
.cycle[data-active="1"] .stage-1 .node,
.cycle[data-active="2"] .stage-2 .node,
.cycle[data-active="3"] .stage-3 .node,
.cycle[data-active="4"] .stage-4 .node {
.cycle[data-active="3"] .stage-3 .node {
transform: scale(1.45);
}
.cycle[data-active="0"] .stage-0 .node-a circle,
@@ -323,8 +362,7 @@
.cycle[data-active="2"] .stage-2 .node-a circle {
fill: #ff7f2a;
}
.cycle[data-active="3"] .stage-3 .node-b circle,
.cycle[data-active="4"] .stage-4 .node-b circle {
.cycle[data-active="3"] .stage-3 .node-b circle {
fill: #0079ff;
}
@@ -335,6 +373,10 @@
.stage-deg {
@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 */
.menu-btn {
@@ -416,8 +458,10 @@
.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;
}
/* Placeholders are hints, never values: dimmer than typed text (#7a849d ≈ 4.6:1 on the field) */
.field::placeholder {
color: #8e98ad;
color: #7a849d;
opacity: 1;
}
.field:hover {
border-color: #74809d;
@@ -471,11 +515,14 @@
}
}
@keyframes node-pulse {
40% {
transform: scale(1.9);
}
}
@keyframes cycle-node {
from {
transform: scale(0);
}
to {
transform: scale(1);
}
}