/*
Theme Name: i-Phoenix 2026
Theme URI: https://iphoenixthemes.com/
Author: i-Phoenix
Description: Hand-written studio theme. From deep navy to daylight: the page starts dark and brightens as you scroll. English and Vietnamese, no page builder, no jQuery.
Version: 1.4.0
Requires at least: 6.3
Requires PHP: 7.4
License: GPL-2.0-or-later
Text Domain: iphoenix-2026
*/

:root {
	--ash-950: #051320;
	--ash-900: #071a2b;
	--ash-800: #0c2438;
	--ash-700: #153247;
	--ash-600: #21455c;
	--smoke: #9db3c0;
	--smoke-dim: #6f8797;
	--paper: #f5f7f7;
	--paper-2: #eaf0f0;
	--paper-3: #d5e0e0;
	--ink: #071a2b;
	--ink-soft: #46596a;
	/* Brand palette: Emerald Green, Forest Green, Tech Cyan, Deep Navy, Soft White, Gold Accent.
	   The variable names are kept from the first version of the theme. */
	--ember: #168f6b;      /* Emerald Green: primary */
	--ember-deep: #0f5132; /* Forest Green: text and links on light backgrounds */
	--orange: #2bb3ad;     /* teal, between emerald and cyan */
	--flame: #00a6c7;      /* Tech Cyan: accent */
	--blood: #0f5132;      /* Forest Green: depth */
	--gold: #c9a227;       /* Gold Accent: small highlights */
	--mint: #5ed0aa;       /* emerald, lightened so small text reads on navy */
	--sky: #4cc9e3;        /* cyan, lightened so small text reads on navy */
	--slate: #587286;      /* muted display text on navy */
	--ok: #5ed0aa;
	--bad: #ef6a5b;
	/* Fills that carry navy text are a step lighter than the brand hexes so the text stays readable. */
	--grad: linear-gradient(100deg, #2dbd90, #12b0d0);
	--grad-deep: linear-gradient(100deg, #0f5132, #168f6b 50%, #00a6c7);

	--font-display: "Bricolage Grotesque", "Be Vietnam Pro", system-ui, -apple-system, "Segoe UI", sans-serif;
	--font-body: "Be Vietnam Pro", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
	--font-mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;

	--wrap: 1180px;
	--gutter: clamp(18px, 4vw, 40px);
	--radius: 18px;
	--header-h: 104px;
	--logo: 92px;
}

*,
*::before,
*::after { box-sizing: border-box; }

html {
	-webkit-text-size-adjust: 100%;
	scroll-behavior: smooth;
	scroll-padding-top: calc(var(--header-h) + 12px);
}

body {
	margin: 0;
	background: var(--ash-900);
	color: var(--paper);
	font-family: var(--font-body);
	font-size: 17px;
	line-height: 1.65;
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
	overflow-x: hidden;
}

img, svg { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3, p, ul, ol, dl, dd { margin: 0; }
ul, ol { padding: 0; list-style: none; }
button, input, select, textarea { font: inherit; color: inherit; }

h1, h2, h3 {
	font-family: var(--font-display);
	font-weight: 700;
	line-height: 1.08;
	letter-spacing: -0.02em;
	text-wrap: balance;
}

::selection { background: rgba(0, 166, 199, .32); }

:focus-visible {
	outline: 2px solid var(--flame);
	outline-offset: 3px;
	border-radius: 4px;
}

.sr {
	position: absolute; width: 1px; height: 1px; overflow: hidden;
	clip: rect(0 0 0 0); white-space: nowrap;
}

.skip {
	position: absolute; left: 12px; top: -60px; z-index: 100;
	background: var(--paper); color: var(--ink);
	padding: 10px 16px; border-radius: 8px; text-decoration: none; font-weight: 600;
}
.skip:focus { top: 12px; }

.wrap {
	width: 100%;
	max-width: calc(var(--wrap) + var(--gutter) * 2);
	margin-inline: auto;
	padding-inline: var(--gutter);
}
.wrap--narrow { max-width: calc(760px + var(--gutter) * 2); }

/* ------------------------------------------------------------ Buttons */

.btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 8px;
	min-height: 50px; padding: 0 26px;
	border: 1.5px solid transparent; border-radius: 999px;
	font-family: var(--font-body); font-weight: 600; font-size: 16px; line-height: 1;
	text-decoration: none; cursor: pointer;
	transition: transform .2s ease, box-shadow .2s ease, background-color .2s ease, border-color .2s ease;
}
.btn--sm { min-height: 40px; padding: 0 18px; font-size: 15px; }
.btn--ember {
	background: var(--grad); color: #071a2b;
	box-shadow: 0 8px 28px -10px rgba(0, 166, 199, .7);
}
.btn--ember:hover { transform: translateY(-2px); box-shadow: 0 14px 34px -10px rgba(0, 166, 199, .85); }
.btn--ghost { border-color: var(--ash-600); color: var(--paper); }
.btn--ghost:hover { border-color: var(--smoke); background: rgba(255, 255, 255, .04); }

.link {
	color: var(--ember-deep); font-weight: 600; text-decoration: none;
	border-bottom: 1.5px solid currentColor; padding-bottom: 1px;
}
.link:hover { color: var(--ink); }

/* ------------------------------------------------------------ Header */

.site-header {
	position: sticky; top: 0; z-index: 50;
	height: var(--header-h);
	transition: background-color .25s ease, border-color .25s ease, height .25s ease;
	border-bottom: 1px solid transparent;
}
.site-header.is-stuck,
body:not(.home) .site-header {
	background: rgba(7, 26, 43, .86);
	-webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
	border-bottom-color: rgba(255, 255, 255, .07);
}
/* Logged-in admins see the WordPress toolbar above the page. */
.admin-bar .site-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .site-header { top: 46px; } }
@media (max-width: 600px) { .admin-bar .site-header { top: 0; } }
.site-header__in { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 20px; }

.brand { display: inline-flex; align-items: center; text-decoration: none; flex: none; }
/* The logo is shown whole, never cropped or recoloured; it only scales. */
.brand__img { display: block; width: var(--logo); height: var(--logo); object-fit: contain; transition: width .25s ease, height .25s ease; }
.brand__name { font-family: var(--font-display); font-weight: 700; font-size: 22px; letter-spacing: -0.02em; }
.site-header.is-stuck { height: 76px; }
.site-header.is-stuck .brand__img { width: 66px; height: 66px; }

.site-nav { display: flex; align-items: center; gap: clamp(14px, 2.2vw, 30px); }
.site-nav > a:not(.btn) {
	text-decoration: none; font-size: 15.5px; font-weight: 500; color: var(--smoke);
	transition: color .2s ease;
}
.site-nav > a:not(.btn):hover { color: var(--paper); }

.lang {
	display: inline-flex; padding: 3px; border-radius: 999px;
	border: 1px solid var(--ash-600);
	font-family: var(--font-mono); font-size: 12.5px; letter-spacing: .04em;
}
.lang a { padding: 5px 10px; border-radius: 999px; text-decoration: none; color: var(--smoke); line-height: 1; }
.lang a[aria-current] { background: var(--paper); color: var(--ink); }

.nav-toggle {
	display: none; width: 44px; height: 44px; padding: 0;
	background: none; border: 1px solid var(--ash-600); border-radius: 12px; cursor: pointer;
}
.nav-toggle__bars,
.nav-toggle__bars::before,
.nav-toggle__bars::after {
	display: block; width: 18px; height: 2px; border-radius: 2px; background: var(--paper);
	margin-inline: auto; position: relative; content: "";
}
.nav-toggle__bars::before { position: absolute; top: -6px; left: 0; }
.nav-toggle__bars::after { position: absolute; top: 6px; left: 0; }

/* ------------------------------------------------------------ Hero */

.hero {
	position: relative;
	margin-top: calc(var(--header-h) * -1);
	padding: calc(var(--header-h) + clamp(36px, 7vw, 88px)) 0 clamp(40px, 6vw, 72px);
	background:
		radial-gradient(900px 520px at 88% 8%, rgba(0, 166, 199, .16), transparent 62%),
		var(--ash-950);
	overflow: hidden;
}
.hero__in {
	display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
	gap: clamp(28px, 5vw, 72px); align-items: center;
}

.eyebrow, .kicker {
	font-family: var(--font-mono); font-size: 12.5px; font-weight: 500;
	letter-spacing: .14em; text-transform: uppercase; color: var(--mint);
}
.eyebrow { margin-bottom: 22px; }

.hero__title { font-size: clamp(40px, 6.6vw, 86px); font-weight: 800; letter-spacing: -0.035em; line-height: .98; }
.hero__line { display: block; color: var(--slate); }
/* Vietnamese stacks tone marks above and below letters, so lines need more room. */
:lang(vi) .hero__title { line-height: 1.14; }
:lang(vi) h1, :lang(vi) h2, :lang(vi) h3 { line-height: 1.2; }
.hero__line--ember {
	color: var(--mint);
	background: linear-gradient(100deg, var(--mint), var(--sky)); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
	padding-bottom: .08em;
}
.hero__lead { margin-top: 26px; max-width: 34em; font-size: clamp(17px, 1.5vw, 19px); color: #d3dee6; }
.hero__cta { margin-top: 32px; display: flex; flex-wrap: wrap; gap: 12px; }

/* Before / After demo */

.reborn {
	border: 1px solid var(--ash-700); border-radius: 22px;
	background: linear-gradient(180deg, rgba(255, 255, 255, .035), rgba(255, 255, 255, .01));
	padding: 14px;
	box-shadow: 0 40px 80px -40px rgba(0, 0, 0, .8);
	transition: border-color .6s ease, box-shadow .6s ease;
}
.reborn[data-state="after"] {
	border-color: rgba(0, 166, 199, .45);
	box-shadow: 0 40px 90px -40px rgba(0, 166, 199, .45);
}
.reborn__bar { display: flex; align-items: center; justify-content: space-between; padding: 4px 6px 14px; }
.reborn__dots { display: inline-flex; gap: 6px; }
.reborn__dots i { width: 9px; height: 9px; border-radius: 50%; background: var(--ash-600); }

.switch {
	display: inline-flex; align-items: center; gap: 10px; padding: 6px 8px;
	background: none; border: 0; cursor: pointer;
	font-family: var(--font-mono); font-size: 12px; letter-spacing: .1em; text-transform: uppercase;
}
.switch__label { color: var(--smoke-dim); transition: color .3s ease; }
.switch__track {
	width: 46px; height: 26px; border-radius: 999px; background: var(--ash-600);
	padding: 3px; display: inline-flex; transition: background-color .35s ease;
}
.switch__thumb {
	width: 20px; height: 20px; border-radius: 50%; background: var(--paper);
	transition: transform .35s cubic-bezier(.5, 1.6, .4, 1);
}
.reborn[data-state="before"] .switch__label--a,
.reborn[data-state="after"] .switch__label--b { color: var(--paper); }
.reborn[data-state="after"] .switch__track { background: var(--ember); }
.reborn[data-state="after"] .switch__thumb { transform: translateX(20px); }

.reborn__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.reborn__hint { padding: 12px 6px 2px; font-size: 13.5px; color: var(--smoke-dim); text-align: right; }

.tile {
	position: relative; aspect-ratio: 1 / .86; overflow: hidden;
	border-radius: 14px; background: var(--ash-800); border: 1px solid var(--ash-700);
}
.tile__tag {
	position: absolute; left: 12px; top: 10px; z-index: 2;
	font-family: var(--font-mono); font-size: 10.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--smoke-dim);
}
.tile__face {
	position: absolute; inset: 34px 12px 12px;
	display: flex; flex-direction: column; gap: 8px;
	transition: opacity .5s ease, transform .6s cubic-bezier(.2, .8, .2, 1), filter .5s ease;
}
.tile__after { opacity: 0; transform: translateY(14px) scale(.97); }
.reborn[data-state="after"] .tile__before { opacity: 0; transform: translateY(-10px) scale(.97); filter: blur(3px); }
.reborn[data-state="after"] .tile__after { opacity: 1; transform: none; }
.tile--code .tile__face { transition-delay: .08s; }
.tile--flow .tile__face { transition-delay: .16s; }
.tile--data .tile__face { transition-delay: .24s; }

.tile__status {
	margin-top: auto; display: inline-flex; align-items: center; gap: 7px;
	font-family: var(--font-mono); font-size: 11.5px; color: var(--smoke);
}
.tile__status--bad { color: var(--bad); }
.tile__status--ok { color: var(--ok); }

.sk { display: block; border-radius: 6px; background: var(--ash-700); animation: ipx-pulse 1.4s ease-in-out infinite; }
.sk--img { flex: 1; min-height: 20px; }
.sk--line { height: 8px; }
.sk--short { width: 55%; }
.spin {
	width: 11px; height: 11px; border-radius: 50%;
	border: 2px solid var(--ash-600); border-top-color: var(--smoke);
	animation: ipx-spin .9s linear infinite;
}

.prod__img { flex: 1; min-height: 20px; border-radius: 8px; background: linear-gradient(135deg, #8fe3c8, #168f6b 55%, #00a6c7); }
.prod__line { height: 8px; width: 70%; border-radius: 6px; background: #dfe8ee; }
.prod__row { display: flex; align-items: center; justify-content: space-between; gap: 8px; font-size: 13px; }
.prod__row b { font-family: var(--font-display); font-size: 15px; }
.prod__btn {
	background: var(--grad); color: #071a2b; font-weight: 600; font-size: 11px;
	padding: 5px 9px; border-radius: 999px; white-space: nowrap;
}

.code { display: block; height: 8px; width: var(--w, 60%); border-radius: 6px; background: var(--ash-600); position: relative; }
.code--bad::after {
	content: ""; position: absolute; left: 0; right: 0; bottom: -5px; height: 3px;
	background: repeating-linear-gradient(90deg, var(--bad) 0 4px, transparent 4px 7px);
	border-radius: 2px;
}
.tile--code .tile__before { gap: 13px; }
.tile--code .tile__after { gap: 13px; }
.code--ok { background: linear-gradient(90deg, rgba(94, 208, 170, .75), rgba(94, 208, 170, .25)); }

.tile--flow .tile__before { flex-flow: row wrap; align-content: flex-start; gap: 6px; }
.chip {
	font-size: 11px; padding: 4px 9px; border-radius: 6px;
	background: var(--ash-700); color: var(--smoke); border: 1px dashed var(--ash-600);
}
.chip--loop { color: var(--bad); border-color: rgba(239, 106, 91, .5); }
.flow { flex: 1; display: flex; align-items: center; justify-content: space-between; position: relative; padding-inline: 6px; }
.flow::before {
	content: ""; position: absolute; left: 12px; right: 12px; top: 50%; height: 2px;
	background: linear-gradient(90deg, var(--flame), var(--ember)); transform: translateY(-50%);
}
.flow i {
	position: relative; width: 16px; height: 16px; border-radius: 50%;
	background: var(--ash-800); border: 2px solid var(--ember);
}
.flow i:last-child { background: var(--ember); box-shadow: 0 0 0 0 rgba(0, 166, 199, .6); animation: ipx-ping 1.8s ease-out infinite; }

.cells { flex: 1; display: grid; grid-template-columns: repeat(3, 1fr); gap: 3px; }
.cells i {
	display: flex; align-items: center; justify-content: center; overflow: hidden;
	background: var(--ash-700); border-radius: 3px;
	font-family: var(--font-mono); font-style: normal; font-size: 9.5px; color: var(--smoke-dim);
}
.cells i:nth-child(1), .cells i:nth-child(5), .cells i:nth-child(8) { color: var(--bad); }
.bars { flex: 1; display: flex; align-items: flex-end; gap: 7px; padding-top: 4px; }
.bars i { flex: 1; height: var(--h); border-radius: 5px 5px 2px 2px; background: linear-gradient(180deg, var(--flame), var(--ember)); transform-origin: bottom; }
.reborn[data-state="before"] .bars i { transform: scaleY(.2); }
.reborn[data-state="after"] .bars i { transform: none; transition: transform .7s cubic-bezier(.2, .8, .2, 1) .35s; }

@keyframes ipx-pulse { 50% { opacity: .5; } }
@keyframes ipx-spin { to { transform: rotate(360deg); } }
@keyframes ipx-ping { 70%, 100% { box-shadow: 0 0 0 10px rgba(0, 166, 199, 0); } }

/* Facts */

.facts {
	margin-top: clamp(40px, 6vw, 76px);
	display: grid; grid-template-columns: repeat(4, 1fr);
	border-top: 1px solid var(--ash-700);
}
.facts__item { display: flex; flex-direction: column-reverse; gap: 2px; padding: 22px 20px 0 0; }
.facts__item + .facts__item { padding-left: 20px; border-left: 1px solid var(--ash-700); }
.facts dd { font-family: var(--font-display); font-weight: 700; font-size: clamp(24px, 2.8vw, 36px); letter-spacing: -0.02em; line-height: 1.1; }
.facts dt { font-size: 14px; color: var(--smoke); }

/* ------------------------------------------------------------ Section heads */

.head { max-width: 46em; margin-bottom: clamp(32px, 4.5vw, 56px); }
.head h2, .contact h2 { font-size: clamp(30px, 4.4vw, 54px); margin-top: 14px; }
.head__intro { margin-top: 16px; font-size: clamp(17px, 1.5vw, 19px); color: var(--smoke); max-width: 36em; }
.head--light .kicker, .contact .kicker, .doc .kicker { color: var(--ember-deep); }
.head--light .head__intro, .contact .head__intro { color: var(--ink-soft); }

/* ------------------------------------------------------------ Services */

.services { background: linear-gradient(180deg, var(--ash-950), var(--ash-900)); padding: clamp(64px, 9vw, 120px) 0; }
.svc-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.svc {
	position: relative; padding: clamp(22px, 2.6vw, 34px);
	border: 1px solid var(--ash-700); border-radius: var(--radius);
	background: var(--ash-800);
	transition: border-color .3s ease, transform .3s ease, opacity .6s ease;
}
.svc::before {
	content: ""; position: absolute; left: 0; top: 24px; bottom: 24px; width: 3px; border-radius: 3px;
	background: var(--grad); transform: scaleY(0); transform-origin: bottom; transition: transform .45s cubic-bezier(.2, .8, .2, 1);
}
.svc:hover { border-color: var(--ash-600); }
.svc:hover::before { transform: none; }
.svc__head { display: flex; align-items: baseline; gap: 14px; }
.svc__num { font-family: var(--font-mono); font-size: 13px; color: var(--mint); }
.svc h3 { font-size: clamp(22px, 2.3vw, 28px); }
.svc__ba { margin: 20px 0 22px; display: grid; gap: 8px; }
.svc__before, .svc__after { display: grid; grid-template-columns: 62px 1fr; gap: 10px; align-items: baseline; }
.svc__ba b { font-family: var(--font-mono); font-weight: 500; font-size: 11px; letter-spacing: .1em; text-transform: uppercase; }
.svc__before { color: var(--smoke-dim); }
.svc__before s { text-decoration-color: rgba(111, 135, 151, .7); }
.svc__after b { color: var(--gold); }
.svc__after span { color: var(--paper); font-weight: 500; }
.svc__list { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 20px; padding-top: 20px; border-top: 1px solid var(--ash-700); font-size: 15px; color: #c3d0da; }
.svc__list li { padding-left: 16px; position: relative; }
.svc__list li::before { content: ""; position: absolute; left: 0; top: .72em; width: 6px; height: 2px; background: var(--ember); }

/* ------------------------------------------------------------ Process */

.process { background: linear-gradient(180deg, var(--ash-900), var(--ash-800)); padding: clamp(40px, 6vw, 80px) 0 clamp(56px, 8vw, 104px); }
.steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; counter-reset: step; position: relative; }
.steps::before { content: ""; position: absolute; left: 0; right: 0; top: 19px; height: 1px; background: linear-gradient(90deg, var(--ash-600), var(--ember)); }
.step { position: relative; padding-right: 26px; }
.step__num {
	position: relative; display: inline-flex; align-items: center; justify-content: center;
	width: 38px; height: 38px; border-radius: 50%;
	background: var(--ash-800); border: 1px solid var(--ash-600);
	font-family: var(--font-mono); font-size: 13px; color: var(--sky);
}
.step:last-child .step__num { background: var(--grad); color: #071a2b; border-color: transparent; }
.step h3 { font-size: 22px; margin: 18px 0 8px; }
.step p { font-size: 15.5px; color: var(--smoke); }

.process__notes { margin-top: clamp(36px, 5vw, 60px); display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.note { padding: clamp(22px, 2.6vw, 32px); border-radius: var(--radius); border: 1px solid var(--ash-600); }
.note h3 { font-size: 22px; margin-bottom: 8px; }
.note p { color: #c3d0da; font-size: 16px; }
.note--case { border-color: rgba(0, 166, 199, .4); background: linear-gradient(135deg, rgba(0, 166, 199, .12), rgba(22, 143, 107, .04)); }
.note__label { font-family: var(--font-mono); font-size: 12px !important; letter-spacing: .12em; text-transform: uppercase; color: var(--gold) !important; margin-bottom: 8px; }

/* The dawn: where the page turns from ash to paper. */

.dawn {
	height: clamp(120px, 16vw, 220px);
	background: linear-gradient(180deg, var(--ash-800) 0%, #0e3046 20%, #14566c 42%, #2a8fa8 60%, #7fc8d8 76%, #cde9ef 89%, var(--paper) 100%);
}

/* ------------------------------------------------------------ Themes */

.themes, .notes, .contact { background: var(--paper); color: var(--ink); }
.themes { padding: clamp(40px, 6vw, 72px) 0 clamp(56px, 8vw, 104px); }
.theme-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.theme-card {
	display: flex; flex-direction: column; overflow: hidden;
	background: #ffffff; border: 1px solid var(--paper-3); border-radius: var(--radius);
	transition: transform .3s ease, box-shadow .3s ease, opacity .6s ease;
}
.theme-card:hover { transform: translateY(-4px); box-shadow: 0 24px 48px -28px rgba(7, 26, 43, .45); }
.theme-card__media {
	display: flex; align-items: center; justify-content: center;
	aspect-ratio: 16 / 10; overflow: hidden; background: var(--paper-2); text-decoration: none;
}
.theme-card__media img { width: 100%; height: 100%; object-fit: cover; }
.theme-card__type {
	font-family: var(--font-display); font-weight: 800; font-size: clamp(40px, 5vw, 64px); letter-spacing: -0.04em;
	background: linear-gradient(120deg, #0f5132, #168f6b 50%, #00a6c7);
	-webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; color: var(--ember-deep);
}
.theme-card__body { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; padding: 22px 24px 26px; flex: 1; }
.theme-card h3 { font-size: 26px; }
.theme-card p { color: var(--ink-soft); font-size: 16px; }
.theme-card .link, .theme-card .btn { margin-top: auto; }
.theme-card--custom { background: var(--ash-900); color: var(--paper); border-color: var(--ash-900); justify-content: flex-end; }
.theme-card--custom p { color: var(--smoke); }
.theme-card--custom .theme-card__body { flex: 0 1 auto; gap: 14px; }
.theme-card--custom .btn { margin-top: 8px; }

.tags { display: flex; flex-wrap: wrap; gap: 6px; }
.tags li {
	font-family: var(--font-mono); font-size: 11.5px; letter-spacing: .04em;
	padding: 4px 9px; border-radius: 999px; border: 1px solid var(--paper-3); color: var(--ink-soft);
}

/* ------------------------------------------------------------ Notes */

.notes { padding: 0 0 clamp(56px, 8vw, 104px); }
.note-list { border-top: 1px solid var(--paper-3); }
.note-list a {
	display: grid; grid-template-columns: 120px 1fr auto; gap: 18px; align-items: baseline;
	padding: 20px 4px; border-bottom: 1px solid var(--paper-3); text-decoration: none;
	transition: padding .25s ease, background-color .25s ease;
}
.note-list a:hover { padding-left: 14px; background: rgba(15, 81, 50, .05); }
.note-list time { font-family: var(--font-mono); font-size: 13px; color: var(--ink-soft); }
.note-list span { font-family: var(--font-display); font-weight: 700; font-size: clamp(19px, 2vw, 24px); line-height: 1.2; }
.note-list em { font-style: normal; font-weight: 600; font-size: 15px; color: var(--ember-deep); white-space: nowrap; }

/* ------------------------------------------------------------ Contact */

.contact { background: linear-gradient(180deg, var(--paper), var(--paper-2)); padding: clamp(40px, 6vw, 72px) 0 clamp(64px, 9vw, 120px); }
.contact__in { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(28px, 5vw, 72px); align-items: start; }
.contact h2 { margin-top: 14px; }
.contact__mail { margin-top: 26px; color: var(--ink-soft); }
.contact__mail a { color: var(--ember-deep); font-weight: 600; }

.form {
	background: var(--ash-900); color: var(--paper);
	border-radius: 22px; padding: clamp(22px, 3vw, 36px);
	box-shadow: 0 40px 80px -44px rgba(7, 26, 43, .7);
	display: grid; gap: 16px;
}
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form__hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.field { display: grid; gap: 7px; }
.field label { font-size: 14px; font-weight: 500; color: var(--smoke); }
.field input, .field select, .field textarea {
	width: 100%; min-height: 50px; padding: 12px 14px;
	background: var(--ash-800); border: 1px solid var(--ash-600); border-radius: 12px;
	color: var(--paper); font-size: 16px;
	transition: border-color .2s ease, box-shadow .2s ease;
}
.field textarea { resize: vertical; min-height: 130px; line-height: 1.5; }
.field ::placeholder { color: var(--smoke-dim); }
.field input:focus, .field select:focus, .field textarea:focus {
	outline: none; border-color: var(--ember); box-shadow: 0 0 0 3px rgba(0, 166, 199, .25);
}
.field select {
	appearance: none; -webkit-appearance: none; padding-right: 40px;
	background-image: linear-gradient(45deg, transparent 50%, var(--smoke) 50%), linear-gradient(135deg, var(--smoke) 50%, transparent 50%);
	background-position: calc(100% - 21px) 22px, calc(100% - 15px) 22px;
	background-size: 6px 6px; background-repeat: no-repeat;
}
.field select option { background: var(--ash-800); color: var(--paper); }
.form__msg { padding: 12px 14px; border-radius: 12px; font-size: 15px; font-weight: 500; }
.form__msg--ok { background: rgba(94, 208, 170, .14); color: #9fe3bf; border: 1px solid rgba(94, 208, 170, .4); }
.form__msg--bad { background: rgba(239, 106, 91, .12); color: #ffb3a8; border: 1px solid rgba(239, 106, 91, .4); }

/* ------------------------------------------------------------ Footer */

.site-footer { background: var(--ash-950); color: var(--smoke); padding: 40px 0; font-size: 15px; }
.site-footer__in { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px 32px; }
.site-footer__brand { display: flex; align-items: center; gap: 14px; }
.site-footer__logo { display: block; width: 96px; height: 96px; object-fit: contain; flex: none; }
.site-footer__brand p { line-height: 1.45; }
.site-footer__nav { display: flex; flex-wrap: wrap; gap: 8px 22px; }
.site-footer a { text-decoration: none; }
.site-footer a:hover { color: var(--paper); }
.site-footer__top { font-family: var(--font-mono); font-size: 12.5px; letter-spacing: .08em; text-transform: uppercase; }

/* ------------------------------------------------------------ Inner pages */

.doc { background: var(--paper); color: var(--ink); padding: clamp(48px, 7vw, 96px) 0 clamp(64px, 9vw, 120px); min-height: 60vh; }
.doc__head { margin-bottom: clamp(28px, 4vw, 44px); }
.doc h1 { font-size: clamp(32px, 5vw, 56px); margin-top: 12px; }
.doc--404 h1 { margin-bottom: 18px; }
.doc--404 p { color: var(--ink-soft); margin-bottom: 26px; }
.doc--404 .kicker { margin-bottom: 0; }
.stale {
	margin-top: 18px; padding: 10px 14px; border-radius: 10px;
	background: rgba(15, 81, 50, .08); border-left: 3px solid var(--ember-deep);
	font-size: 15px; color: var(--ink-soft);
}
.doc__back { margin-top: 48px; }
.pager { display: flex; justify-content: space-between; margin-top: 28px; font-weight: 600; }
.pager a { color: var(--ember-deep); text-decoration: none; }

.prose { font-size: 18px; line-height: 1.75; }
.prose > * + * { margin-top: 1.15em; }
.prose h2, .prose h3 { margin-top: 1.8em; font-size: clamp(22px, 2.6vw, 30px); }
.prose h3 { font-size: clamp(19px, 2.1vw, 24px); }
.prose a { color: var(--ember-deep); text-decoration-thickness: 1.5px; text-underline-offset: 3px; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose ul { list-style: disc; }
.prose ol { list-style: decimal; }
.prose li + li { margin-top: .4em; }
.prose img { border-radius: 12px; border: 1px solid var(--paper-3); }
.prose figure { margin-inline: 0; }
.prose figcaption { font-size: 14px; color: var(--ink-soft); margin-top: 8px; }
.prose blockquote { margin-inline: 0; padding-left: 20px; border-left: 3px solid var(--ember-deep); color: var(--ink-soft); }
.prose pre, .prose code { font-family: var(--font-mono); font-size: .88em; }
.prose pre { background: var(--ash-900); color: var(--paper); padding: 18px; border-radius: 12px; overflow-x: auto; }
.prose :not(pre) > code { background: var(--paper-2); padding: 2px 6px; border-radius: 6px; }
.prose table { width: 100%; border-collapse: collapse; font-size: 16px; }
.prose th, .prose td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--paper-3); }

/* ------------------------------------------------------------ Motion */

.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .7s cubic-bezier(.2, .8, .2, 1); }
.js .reveal.is-in { opacity: 1; transform: none; }
.js .svc-grid .reveal:nth-child(2), .js .steps .reveal:nth-child(2), .js .theme-grid .reveal:nth-child(2) { transition-delay: .08s; }
.js .svc-grid .reveal:nth-child(3), .js .steps .reveal:nth-child(3), .js .theme-grid .reveal:nth-child(3) { transition-delay: .16s; }
.js .svc-grid .reveal:nth-child(4), .js .steps .reveal:nth-child(4) { transition-delay: .24s; }

@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	*, *::before, *::after { animation: none !important; transition: none !important; }
	.js .reveal { opacity: 1; transform: none; }
}

/* ------------------------------------------------------------ Responsive */

@media (max-width: 980px) {
	.hero__in { grid-template-columns: 1fr; }
	.reborn { max-width: 560px; }
	.theme-grid { grid-template-columns: 1fr 1fr; }
	.theme-card--custom { grid-column: 1 / -1; }
	.steps { grid-template-columns: 1fr 1fr; gap: 32px 0; }
	.steps::before { display: none; }
	.contact__in { grid-template-columns: 1fr; }
}

@media (max-width: 820px) {
	:root { --header-h: 80px; --logo: 68px; }
	.site-header.is-stuck { height: var(--header-h); }
	.site-header.is-stuck .brand__img { width: var(--logo); height: var(--logo); }
	.nav-toggle { display: inline-flex; align-items: center; justify-content: center; }
	.site-nav {
		position: absolute; left: 0; right: 0; top: 100%;
		flex-direction: column; align-items: stretch; gap: 0;
		padding: 8px var(--gutter) 22px;
		background: var(--ash-900); border-bottom: 1px solid var(--ash-700);
		display: none;
	}
	.site-nav.is-open { display: flex; }
	.site-nav > a:not(.btn) { padding: 14px 0; border-bottom: 1px solid var(--ash-700); font-size: 17px; color: var(--paper); }
	.site-nav .lang { align-self: flex-start; margin: 16px 0; }
	.site-nav .btn { min-height: 48px; }
	.site-header { background: rgba(7, 26, 43, .86); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); }
}

@media (max-width: 700px) {
	body { font-size: 16px; }
	.svc-grid, .process__notes, .theme-grid { grid-template-columns: 1fr; }
	.svc__list { grid-template-columns: 1fr; }
	.facts { grid-template-columns: 1fr 1fr; }
	.facts__item { padding: 18px 12px 18px 0; border-bottom: 1px solid var(--ash-700); }
	.facts__item + .facts__item { padding-left: 0; border-left: 0; }
	.facts__item:nth-child(even) { padding-left: 16px; border-left: 1px solid var(--ash-700); }
	.form__row { grid-template-columns: 1fr; }
	.note-list a { grid-template-columns: 1fr; gap: 4px; }
	.note-list em { display: none; }
	.hero__cta .btn { flex: 1 1 auto; }
}

@media (max-width: 460px) {
	.steps { grid-template-columns: 1fr; }
	.tile { aspect-ratio: 1 / 1; }
	.tile__face { inset: 32px 10px 10px; }
	.prod__btn { display: none; }
}

/* ============================================================ Inner pages (services, themes, about) */

.phero {
	padding: clamp(40px, 6vw, 80px) 0 clamp(44px, 6vw, 76px);
	background: radial-gradient(900px 480px at 90% 0%, rgba(0, 166, 199, .15), transparent 62%), var(--ash-950);
}
.phero h1 { font-size: clamp(34px, 5.2vw, 64px); font-weight: 800; letter-spacing: -0.03em; max-width: 17em; }
.phero__lead { margin-top: 22px; max-width: 40em; font-size: clamp(17px, 1.5vw, 20px); color: #d3dee6; }
.phero__split { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: clamp(28px, 5vw, 64px); align-items: center; }
.phero__media {
	display: flex; align-items: center; justify-content: center; overflow: hidden;
	aspect-ratio: 16 / 10; border-radius: 18px; border: 1px solid var(--ash-700); background: var(--paper-2);
	box-shadow: 0 40px 80px -40px rgba(0, 166, 199, .35);
}
.phero__media img { width: 100%; height: 100%; object-fit: cover; }

.crumbs { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 26px; font-family: var(--font-mono); font-size: 12.5px; letter-spacing: .06em; color: var(--smoke-dim); }
.crumbs a { color: var(--smoke); text-decoration: none; }
.crumbs a:hover { color: var(--paper); }

.tfacts { margin-top: clamp(36px, 5vw, 60px); display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--ash-700); }
.tfacts > div { padding: 20px 20px 0 0; }
.tfacts > div + div { padding-left: 20px; border-left: 1px solid var(--ash-700); }
.tfacts dt { margin-bottom: 6px; font-family: var(--font-mono); font-size: 11.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--mint); }
.tfacts dd { font-size: 15.5px; color: #d3dee6; }

.band { padding: clamp(56px, 8vw, 104px) 0; }
.band--ash { background: linear-gradient(180deg, var(--ash-950), var(--ash-800)); }
.band--steps { background: var(--ash-900); }
.band--paper { background: var(--paper); color: var(--ink); }
.band--paper2 { background: var(--paper-2); color: var(--ink); }
.band--paper .kicker, .band--paper2 .kicker { color: var(--ember-deep); }
.band__split { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(24px, 5vw, 72px); align-items: start; }
.band__head h2 { font-size: clamp(28px, 3.6vw, 44px); margin-top: 14px; }
.band .head:last-child { margin-bottom: 0; }
.dawn--short { height: clamp(80px, 10vw, 140px); }

.pairs { display: grid; gap: 12px; }
.pairs__row {
	display: grid; grid-template-columns: 1fr auto 1fr; gap: clamp(14px, 2.5vw, 32px); align-items: center;
	padding: clamp(18px, 2.2vw, 26px) clamp(18px, 2.4vw, 30px);
	border: 1px solid var(--ash-700); border-radius: var(--radius); background: var(--ash-800);
}
.pairs__before, .pairs__after { display: grid; gap: 6px; }
.pairs b { font-family: var(--font-mono); font-weight: 500; font-size: 11px; letter-spacing: .1em; text-transform: uppercase; }
.pairs__before { color: var(--smoke-dim); }
.pairs__before s { text-decoration-color: rgba(111, 135, 151, .7); }
.pairs__after b { color: var(--gold); }
.pairs__after span { color: var(--paper); font-weight: 500; font-size: clamp(17px, 1.5vw, 19px); }
.pairs__arrow { color: var(--mint); font-size: 22px; line-height: 1; }

.gets { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.gets__item { padding: 24px 24px 26px; background: #ffffff; border: 1px solid var(--paper-3); border-radius: var(--radius); }
.gets__num { font-family: var(--font-mono); font-size: 12.5px; color: var(--ember-deep); }
.gets h3 { font-size: 21px; margin: 10px 0 8px; }
.gets p { color: var(--ink-soft); font-size: 15.5px; }

.jobs { border-top: 1px solid var(--paper-3); }
.jobs li { position: relative; padding: 18px 0 18px 30px; border-bottom: 1px solid var(--paper-3); font-size: clamp(17px, 1.6vw, 20px); font-weight: 500; line-height: 1.45; }
.jobs li::before { content: ""; position: absolute; left: 0; top: 1.6em; width: 14px; height: 2px; background: var(--ember-deep); }

.faq { border-top: 1px solid var(--paper-3); }
.faq__item { border-bottom: 1px solid var(--paper-3); }
.faq summary {
	position: relative; cursor: pointer; list-style: none; padding: 20px 44px 20px 0;
	font-family: var(--font-display); font-weight: 700; font-size: clamp(18px, 1.8vw, 21px); line-height: 1.3;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 4px; top: 14px; font-size: 28px; font-weight: 400; line-height: 1; color: var(--ember-deep); transition: transform .25s ease; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq p { padding: 0 44px 22px 0; color: var(--ink-soft); max-width: 44em; }

.related { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.related--two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.related--four { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.related a {
	display: flex; flex-direction: column; gap: 8px; height: 100%; padding: 24px;
	background: #ffffff; border: 1px solid var(--paper-3); border-radius: var(--radius); text-decoration: none;
	transition: transform .3s ease, box-shadow .3s ease;
}
.related a:hover { transform: translateY(-4px); box-shadow: 0 24px 48px -28px rgba(7, 26, 43, .45); }
.related__num { font-family: var(--font-mono); font-size: 12.5px; letter-spacing: .06em; text-transform: uppercase; color: var(--ember-deep); }
.related strong { font-family: var(--font-display); font-size: 22px; line-height: 1.2; overflow-wrap: anywhere; }
.related strong.related__fine { font-size: clamp(15px, 1.25vw, 17px); letter-spacing: -0.01em; }
.related em { font-style: normal; color: var(--ink-soft); font-size: 15.5px; }
.related__go { margin-top: auto; padding-top: 10px; font-weight: 600; font-size: 15px; color: var(--ember-deep); }

.cta-band { background: radial-gradient(700px 300px at 85% 120%, rgba(0, 166, 199, .35), transparent 65%), var(--ash-950); padding: clamp(48px, 7vw, 88px) 0; }
.cta-band__in { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px 40px; }
.cta-band h2 { font-size: clamp(26px, 3.4vw, 42px); }
.cta-band p { margin-top: 10px; color: var(--smoke); }

.story__row { display: grid; grid-template-columns: minmax(0, .7fr) minmax(0, 1.3fr); gap: clamp(20px, 4vw, 64px); padding: clamp(26px, 3.4vw, 44px) 0; border-top: 1px solid var(--paper-3); }
.story__row:first-child { border-top: 0; padding-top: 0; }
.story__row:last-child { padding-bottom: 0; }
.story h2 { font-size: clamp(22px, 2.6vw, 32px); }
.story p { font-size: 18px; }
.story p + p { margin-top: 1em; color: var(--ink-soft); }

.doc__lead { margin-top: 16px; font-size: 18px; color: var(--ink-soft); }

/* Homepage links into the inner pages */
.svc h3 a, .theme-card h3 a { text-decoration: none; }
.svc h3 a:hover { color: var(--sky); }
.theme-card h3 a:hover { color: var(--ember-deep); }
.svc__more { display: inline-block; margin-top: 20px; font-weight: 600; font-size: 15px; color: var(--sky); text-decoration: none; }
.svc__more:hover { color: var(--paper); }
.theme-card__links { display: flex; flex-wrap: wrap; gap: 8px 20px; margin-top: auto; }
.theme-card .theme-card__links .link { margin-top: 0; }
.link--quiet { color: var(--ink-soft); border-bottom-color: var(--paper-3); }

/* Footer with page links */
.site-footer { padding: clamp(40px, 6vw, 64px) 0 28px; }
.site-footer__cols { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 28px 32px; padding-bottom: 32px; margin-bottom: 22px; border-bottom: 1px solid var(--ash-700); }
.site-footer__brand { flex-direction: column; align-items: flex-start; gap: 10px; }
.site-footer__brand .brand__name { color: var(--paper); }
.site-footer__col { display: flex; flex-direction: column; align-items: flex-start; gap: 9px; }
.site-footer__col h2 { margin-bottom: 6px; font-family: var(--font-mono); font-weight: 500; font-size: 11.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--smoke); }

@media (max-width: 980px) {
	.phero__split, .band__split { grid-template-columns: 1fr; }
	.gets { grid-template-columns: 1fr 1fr; }
	.related, .related--four { grid-template-columns: 1fr 1fr; }
	.tfacts { grid-template-columns: 1fr 1fr; }
	.tfacts > div { padding: 18px 16px 18px 0; border-bottom: 1px solid var(--ash-700); }
	.tfacts > div + div { padding-left: 0; border-left: 0; }
	.tfacts > div:nth-child(even) { padding-left: 16px; border-left: 1px solid var(--ash-700); }
	.site-footer__cols { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 700px) {
	.pairs__row { grid-template-columns: 1fr; gap: 12px; }
	.pairs__arrow { transform: rotate(90deg); justify-self: start; }
	.gets, .related, .related--two, .related--four { grid-template-columns: minmax(0, 1fr); }
	.story__row { grid-template-columns: 1fr; gap: 12px; }
	.cta-band__in .btn { width: 100%; }
}

@media (max-width: 460px) {
	.tfacts { grid-template-columns: 1fr; }
	.tfacts > div:nth-child(even) { padding-left: 0; border-left: 0; }
	.site-footer__cols { grid-template-columns: 1fr; }
}

/* ============================================================ Blog and contact */

[data-topic="technology"] { --topic: var(--sky); }
[data-topic="engineering"] { --topic: var(--mint); }
[data-topic="admin-tips"] { --topic: var(--gold); }
[data-topic="shopify"] { --topic: var(--orange); }

@property --spin { syntax: "<angle>"; inherits: false; initial-value: 0deg; }
@property --p { syntax: "<number>"; inherits: true; initial-value: 0; }

/* Headings that rise in one word at a time. Without JavaScript they are simply visible. */
.js .rise span {
	display: inline-block; opacity: 0; transform: translateY(.55em) rotate(2.5deg);
	animation: ipx-rise .8s cubic-bezier(.2, .8, .2, 1) forwards;
	animation-delay: calc(var(--i) * 70ms + 80ms);
}
@keyframes ipx-rise { to { opacity: 1; transform: none; } }

/* Topic ticker */
.phero--journal { padding-bottom: clamp(28px, 4vw, 44px); overflow: hidden; }
.ticker {
	margin: clamp(30px, 4vw, 52px) 0 clamp(22px, 3vw, 36px); padding: 16px 0; overflow: hidden;
	border-block: 1px solid var(--ash-700);
	-webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
	mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.ticker__track { display: flex; width: max-content; animation: ipx-ticker 60s linear infinite; }
.ticker:hover .ticker__track { animation-play-state: paused; }
.ticker span {
	position: relative; padding: 0 .55em; white-space: nowrap;
	font-family: var(--font-display); font-weight: 800; font-size: clamp(30px, 4.6vw, 60px); line-height: 1.15; letter-spacing: -0.03em;
	color: transparent; -webkit-text-stroke: 1px var(--ash-600);
}
.ticker span::after {
	content: ""; position: absolute; right: -.11em; top: 50%; width: .2em; height: .2em; border-radius: 50%;
	background: var(--topic, var(--ember)); transform: translateY(-50%);
}
.ticker span:nth-child(5n + 1) { color: var(--topic, var(--ember)); -webkit-text-stroke: 0; }
@keyframes ipx-ticker { to { transform: translateX(-50%); } }

/* Filter chips with a pill that slides to the active one */
.jchips { position: relative; display: flex; flex-wrap: wrap; gap: 8px; }
.jchips a {
	position: relative; z-index: 1; display: inline-flex; align-items: center; gap: 8px;
	min-height: 44px; padding: 0 18px; border-radius: 999px; border: 1px solid var(--ash-600);
	text-decoration: none; font-weight: 500; font-size: 15.5px; color: var(--smoke);
	transition: color .25s ease, border-color .25s ease;
}
.jchips a:hover { color: var(--paper); border-color: var(--smoke-dim); }
.jchips a i { font-style: normal; font-family: var(--font-mono); font-size: 11.5px; color: var(--smoke-dim); transition: color .25s ease; }
.jchips a.is-active { color: #071a2b; border-color: transparent; font-weight: 600; }
.jchips a.is-active i { color: rgba(7, 26, 43, .7); }
.jchips__pill {
	position: absolute; left: 0; top: 0; width: 0; height: 44px; border-radius: 999px; background: var(--grad); opacity: 0;
	transition: transform .5s cubic-bezier(.3, 1.35, .5, 1), width .5s cubic-bezier(.3, 1.35, .5, 1), opacity .2s ease;
	box-shadow: 0 8px 24px -10px rgba(0, 166, 199, .8);
}
.jchips.has-pill .jchips__pill { opacity: 1; }
.jchips:not(.has-pill) a.is-active { background: var(--grad); }

/* Post grid */
.journal { padding-top: clamp(28px, 4vw, 52px); }
.jgrid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.jcard {
	--mx: 50%; --my: 0%;
	position: relative; overflow: hidden; border-radius: var(--radius);
	background: var(--ash-800); border: 1px solid var(--ash-700);
	transition: border-color .3s ease, transform .35s cubic-bezier(.2, .8, .2, 1), opacity .6s ease;
}
.jcard[hidden] { display: none; }
/* An ember glow that follows the pointer. */
.jcard::before {
	content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity .35s ease;
	background: radial-gradient(340px circle at var(--mx) var(--my), rgba(0, 166, 199, .22), transparent 62%);
}
.jcard:hover { border-color: rgba(0, 166, 199, .5); transform: translateY(-4px); }
.jcard:hover::before { opacity: 1; }
.jcard__link { position: relative; display: flex; flex-direction: column; gap: 14px; height: 100%; padding: clamp(20px, 2.2vw, 28px); text-decoration: none; }
.jcard__media img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 12px; }
.jcard__top { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 22px; }
.jcard__topic {
	display: inline-flex; align-items: center; gap: 8px;
	font-family: var(--font-mono); font-size: 11.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--topic, var(--smoke));
}
.jcard__topic::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.jcard:hover .jcard__topic::before { animation: ipx-beat 1.2s ease-in-out infinite; }
.jcard__flag { padding: 3px 10px; border-radius: 999px; background: var(--gold); color: #071a2b; font-family: var(--font-mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; }
.jcard__title { font-size: clamp(20px, 2vw, 24px); line-height: 1.22; }
.jcard__title span {
	padding-bottom: 2px;
	background: linear-gradient(90deg, var(--flame), var(--ember)) no-repeat 0 100% / 0 2px;
	transition: background-size .5s cubic-bezier(.2, .8, .2, 1);
}
.jcard:hover .jcard__title span { background-size: 100% 2px; }
.jcard__excerpt { color: var(--smoke); font-size: 15.5px; }
.jcard__meta {
	margin-top: auto; display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px;
	padding-top: 14px; border-top: 1px solid var(--ash-700);
	font-family: var(--font-mono); font-size: 12px; color: var(--smoke-dim);
}
.jcard__lang { padding: 2px 7px; border: 1px solid var(--ash-600); border-radius: 6px; font-family: var(--font-mono); font-size: 11px; }
.jcard__go { margin-left: auto; font-size: 18px; line-height: 1; color: var(--sky); transition: transform .3s ease; }
.jcard:hover .jcard__go { transform: translateX(6px); }

/* The newest post: full width, with a flame that travels round its edge. */
.jcard--featured { grid-column: 1 / -1; }
.jcard--featured .jcard__link { padding: clamp(24px, 3.4vw, 44px); gap: 18px; }
.jcard--featured .jcard__title { font-size: clamp(26px, 3.4vw, 44px); line-height: 1.1; max-width: 20em; }
.jcard--featured .jcard__excerpt { font-size: clamp(16px, 1.4vw, 18px); max-width: 46em; }
.jcard--featured::after {
	content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1.5px; pointer-events: none;
	background: conic-gradient(from var(--spin), transparent 0 58%, var(--flame), var(--ember), var(--blood), transparent 100%);
	-webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
	-webkit-mask-composite: xor; mask-composite: exclude;
	animation: ipx-orbit 7s linear infinite;
}
/* With a featured image, the newest post puts the picture beside the text instead of above it. */
.jcard--featured.jcard--media .jcard__link { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); grid-template-rows: auto auto 1fr auto; column-gap: clamp(22px, 3vw, 44px); row-gap: 16px; }
.jcard--featured.jcard--media .jcard__media { grid-column: 1; grid-row: 1 / -1; align-self: stretch; }
.jcard--featured.jcard--media .jcard__media img { height: 100%; aspect-ratio: 4 / 3; }
.jcard--featured.jcard--media .jcard__top, .jcard--featured.jcard--media .jcard__title, .jcard--featured.jcard--media .jcard__excerpt, .jcard--featured.jcard--media .jcard__meta { grid-column: 2; }
.jcard--featured.jcard--media .jcard__title { font-size: clamp(24px, 2.8vw, 36px); }
.jcard__media { display: block; overflow: hidden; border-radius: 12px; }
.jcard__media img { transition: transform .6s cubic-bezier(.2, .8, .2, 1); }
.jcard:hover .jcard__media img { transform: scale(1.04); }
@keyframes ipx-orbit { to { --spin: 360deg; } }
@keyframes ipx-beat { 50% { transform: scale(1.7); opacity: .55; } }

.jempty { padding: 48px 0; text-align: center; font-size: 18px; color: var(--smoke); }
.jempty[hidden] { display: none; }
.jpager { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 32px; }
.jpager__at { font-family: var(--font-mono); font-size: 12px; color: var(--smoke-dim); }
.notes__all { margin-top: 24px; }

/* Post page */
.progress { position: fixed; left: 0; right: 0; top: 0; z-index: 60; height: 3px; pointer-events: none; }
.progress i { display: block; height: 100%; background: var(--grad); transform: scaleX(0); transform-origin: 0 50%; }
.admin-bar .progress { top: 32px; }
.crumbs--light { color: var(--ink-soft); margin-bottom: 18px; }
.crumbs--light a { color: var(--ember-deep); }
.crumbs--light a:hover { color: var(--ink); }
.doc__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 16px; margin-top: 18px; font-family: var(--font-mono); font-size: 13px; color: var(--ink-soft); }
.doc__meta .jcard__lang { border-color: var(--paper-3); }

/* Contact page */
.ct { padding-top: clamp(24px, 3vw, 40px); }
.ct__grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr); gap: clamp(24px, 4vw, 56px); align-items: start; }
.ct__form { display: grid; gap: clamp(26px, 3vw, 40px); }
.ct__step { min-width: 0; margin: 0; padding: 0; border: 0; }
.ct__step legend {
	display: flex; align-items: center; gap: 12px; padding: 0; margin-bottom: 16px;
	font-family: var(--font-display); font-weight: 700; font-size: clamp(20px, 2.2vw, 26px); letter-spacing: -0.02em;
}
.ct__num {
	display: inline-flex; align-items: center; justify-content: center; flex: none; width: 34px; height: 34px;
	border-radius: 50%; border: 1px solid var(--ash-600);
	font-family: var(--font-mono); font-size: 13px; font-weight: 500; color: var(--sky); letter-spacing: 0;
}

.picker { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.picker__tile { position: relative; display: block; cursor: pointer; }
.picker__tile:last-child { grid-column: 1 / -1; }
.picker__tile input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.picker__body {
	position: relative; display: grid; grid-template-columns: auto 1fr; gap: 4px 12px; align-items: baseline;
	height: 100%; padding: 16px 46px 16px 16px;
	border-radius: 14px; border: 1px solid var(--ash-600); background: var(--ash-800);
	transition: border-color .25s ease, background-color .25s ease, transform .35s cubic-bezier(.3, 1.6, .5, 1);
}
.picker__num { font-family: var(--font-mono); font-size: 12px; color: var(--mint); }
.picker__body strong { font-family: var(--font-display); font-size: 18px; line-height: 1.2; }
.picker__body em { grid-column: 2; font-style: normal; font-size: 14px; color: var(--smoke-dim); transition: color .25s ease; }
.picker__body::after {
	content: ""; position: absolute; right: 14px; top: 16px; width: 18px; height: 18px; border-radius: 50%;
	border: 1.5px solid var(--ash-600);
	transition: transform .35s cubic-bezier(.3, 1.8, .5, 1), border-color .25s ease;
}
.picker__tile:hover .picker__body { border-color: var(--smoke-dim); }
.picker__tile input:focus-visible + .picker__body { outline: 2px solid var(--flame); outline-offset: 3px; }
.picker__tile input:checked + .picker__body { border-color: var(--ember); background: rgba(0, 166, 199, .10); transform: scale(1.015); }
.picker__tile input:checked + .picker__body em { color: var(--smoke); }
.picker__tile input:checked + .picker__body::after {
	border-color: transparent; transform: scale(1.15);
	background: radial-gradient(circle, #071a2b 0 3.5px, transparent 4.5px), var(--grad);
}

.ct__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 24px; }
.ct__or { font-size: 15px; color: var(--smoke); }
.ct__or a { color: var(--sky); }
.ct__form.is-ready .ct__send { animation: ipx-glow 1.8s ease-in-out infinite; }
.ct__send.is-sending { pointer-events: none; opacity: .9; }
.ct__send.is-sending::before {
	content: ""; width: 14px; height: 14px; border-radius: 50%;
	border: 2px solid rgba(7, 26, 43, .3); border-top-color: #071a2b; animation: ipx-spin .8s linear infinite;
}
@keyframes ipx-glow { 50% { box-shadow: 0 0 0 8px rgba(0, 166, 199, .18), 0 14px 34px -10px rgba(0, 166, 199, .9); } }

/* The brief: a card that writes itself as the form is filled in. Its border burns round a quarter per field. */
.brief {
	--p: 0;
	position: sticky; top: 104px; padding: 22px 22px 18px; border-radius: 22px;
	background: linear-gradient(180deg, #0f2a40, var(--ash-800));
	transition: --p .7s cubic-bezier(.2, .8, .2, 1), box-shadow .6s ease;
}
.brief::before {
	content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1.5px; pointer-events: none;
	background: conic-gradient(from -90deg, var(--flame) 0, var(--ember) calc(var(--p) * 25%), var(--ash-600) calc(var(--p) * 25%));
	-webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
	-webkit-mask-composite: xor; mask-composite: exclude;
}
.brief.is-ready { box-shadow: 0 30px 80px -40px rgba(0, 166, 199, .7); }
.brief__head {
	display: flex; justify-content: space-between; gap: 12px; padding-bottom: 14px; border-bottom: 1px dashed var(--ash-600);
	font-family: var(--font-mono); font-size: 11.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--mint);
}
.brief__count { color: var(--smoke-dim); letter-spacing: .04em; }
.brief__count b { font-weight: 500; color: var(--paper); }
.brief__rows > div { display: grid; grid-template-columns: 96px 1fr; gap: 10px; padding: 12px 0; border-bottom: 1px dashed var(--ash-700); }
.brief dt { padding-top: 4px; font-family: var(--font-mono); font-size: 10.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--smoke-dim); transition: color .3s ease; }
.brief dd { min-height: 1.6em; font-size: 15.5px; line-height: 1.5; color: var(--paper); overflow-wrap: anywhere; }
.brief dd:empty::before {
	content: ""; display: inline-block; width: 60%; height: 9px; border-radius: 5px; background: var(--ash-700);
	animation: ipx-pulse 1.6s ease-in-out infinite;
}
.brief .is-active dd::after {
	content: ""; display: inline-block; width: 2px; height: 1.05em; margin-left: 3px; vertical-align: -.15em;
	background: var(--flame); animation: ipx-caret 1s steps(1) infinite;
}
.brief .is-done dt { color: var(--mint); }
.brief__status { display: flex; align-items: center; gap: 8px; padding-top: 14px; font-family: var(--font-mono); font-size: 12px; color: var(--smoke-dim); }
.brief__status::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--ash-600); transition: background-color .3s ease; }
.brief.is-ready .brief__status { color: var(--ok); }
.brief.is-ready .brief__status::before { background: var(--ok); animation: ipx-beat 1.2s ease-in-out infinite; }
@keyframes ipx-caret { 50% { opacity: 0; } }

.sent { max-width: 580px; margin: clamp(16px, 4vw, 48px) auto; text-align: center; }
.sent__mark { margin: 0 auto 22px; }
.sent__mark circle {
	fill: none; stroke: var(--ember); stroke-width: 3; stroke-linecap: round;
	stroke-dasharray: 183; stroke-dashoffset: 183; transform: rotate(-90deg); transform-origin: center;
	animation: ipx-draw .9s .15s ease forwards;
}
.sent__mark path {
	fill: none; stroke: var(--flame); stroke-width: 4; stroke-linecap: round; stroke-linejoin: round;
	stroke-dasharray: 46; stroke-dashoffset: 46; animation: ipx-draw .5s .9s ease forwards;
}
@keyframes ipx-draw { to { stroke-dashoffset: 0; } }
.sent h2 { font-size: clamp(28px, 4vw, 44px); }
.sent p { margin-top: 12px; color: var(--smoke); }
.sent__links { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 26px; }

.nextup li { position: relative; display: grid; grid-template-columns: 44px 1fr; gap: 18px; padding-bottom: 30px; }
.nextup li:last-child { padding-bottom: 0; }
.nextup li::before {
	content: ""; position: absolute; left: 21px; top: 44px; bottom: 0; width: 2px;
	background: linear-gradient(var(--ember-deep), var(--orange)); transform-origin: top;
}
.nextup li:last-child::before { display: none; }
.js .nextup li::before { transform: scaleY(0); transition: transform .9s .35s cubic-bezier(.2, .8, .2, 1); }
.js .nextup li.is-in::before { transform: none; }
.nextup__num {
	position: relative; display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px;
	border-radius: 50%; border: 1.5px solid var(--ember-deep); background: var(--paper);
	font-family: var(--font-mono); font-size: 14px; color: var(--ember-deep);
}
.nextup li:last-child .nextup__num { border-color: transparent; background: var(--grad); color: #071a2b; }
.nextup h3 { font-size: 22px; margin: 8px 0 6px; }
.nextup p { color: var(--ink-soft); }

@media (max-width: 980px) {
	.jgrid { grid-template-columns: 1fr 1fr; }
	.ct__grid { grid-template-columns: 1fr; }
	.brief { position: relative; top: auto; }
}

@media (max-width: 700px) {
	.jgrid { grid-template-columns: 1fr; }
	.jcard--featured.jcard--media .jcard__link { display: flex; }
	.jcard--featured.jcard--media .jcard__media img { height: auto; aspect-ratio: 16 / 9; }
	.admin-bar .progress { top: 46px; }
}

@media (max-width: 600px) {
	.admin-bar .progress { top: 0; }
}

@media (max-width: 520px) {
	.picker { grid-template-columns: 1fr; }
	.brief__rows > div { grid-template-columns: 1fr; gap: 2px; }
	.ct__actions .btn { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
	.js .rise span { opacity: 1; transform: none; }
	.js .nextup li::before { transform: none; }
	.sent__mark circle, .sent__mark path { stroke-dashoffset: 0; }
}

/* ============================================================ Menu: current item */

.site-nav > a:not(.btn) { position: relative; }
.site-nav > a:not(.btn)::after {
	content: ""; position: absolute; left: 0; right: 0; bottom: -9px; height: 2px; border-radius: 2px;
	background: var(--grad); transform: scaleX(0); transform-origin: left;
	transition: transform .35s cubic-bezier(.2, .8, .2, 1);
}
.site-nav > a:not(.btn):hover::after,
.site-nav > a.is-current::after { transform: none; }
.site-nav > a.is-current { color: var(--paper); font-weight: 600; }

@media (max-width: 820px) {
	.site-nav > a:not(.btn)::after { display: none; }
	.site-nav > a.is-current { color: var(--sky); padding-left: 14px; box-shadow: inset 3px 0 0 var(--sky); }
}
