/* ==========================================================================
   Affinix — site styles
   ========================================================================== */

:root {
  --paper: #ebe9e4;
  --paper-hi: #f4f3ef;
  --ink: #0b0b0b;
  --ink-soft: #262624;
  --muted: #5c5a55;
  --rule: rgba(11, 11, 11, 0.16);
  --night: #0b0b0b;
  --night-panel: #121212;
  --night-line: #2a2a2a;
  --on-night: #f2f1ed;
  --on-night-muted: #9a9893;

  --display: "Archivo", "Arial Black", sans-serif;
  --sans: "Archivo", system-ui, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "Cascadia Mono", monospace;
  --jp: "Noto Sans JP", "Hiragino Sans", "Yu Gothic", sans-serif;

  --wrap: 1320px;
  --gutter: clamp(16px, 4vw, 48px);
  --header-h: 64px;
}

*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
}
html.lenis, html.lenis body { height: auto; }
html.lenis { scroll-behavior: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.55;
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* concrete grain — sits behind content, only shows on paper sections */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 .13 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='900' height='900'%3E%3Cfilter id='m'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.006' numOctaves='4' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 .06 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23m)'/%3E%3C/svg%3E");
  background-size: 180px 180px, 900px 900px;
}

img { max-width: 100%; }
a { color: inherit; }
::selection { background: var(--ink); color: var(--paper); }

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* ---------- small type pieces ---------- */

.tag {
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.spark {
  width: 14px;
  height: 14px;
  fill: currentColor;
  flex: none;
}

.kana-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.kana-badge .pill {
  background: var(--ink);
  color: var(--paper);
  font-family: var(--jp);
  font-weight: 500;
  font-size: 13px;
  letter-spacing: 0.22em;
  line-height: 1.5;
  padding: 2px 9px 2px 12px;
  border-radius: 5px;
}
.kana-badge .spark { animation: spin 10s linear infinite; }
.kana-badge .spark:last-child { animation-direction: reverse; }

.outline {
  color: transparent;
  -webkit-text-stroke: max(1.5px, 0.02em) var(--ink);
}

/* ---------- buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  line-height: 1.2;
  color: var(--paper);
  background: var(--ink);
  border: 1.5px solid var(--ink);
  border-radius: 0;
  padding: 14px 20px;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease, color 0.15s ease;
}
.btn:hover {
  transform: translate(-3px, -3px);
  box-shadow: 3px 3px 0 var(--ink);
}
.btn:active { transform: none; box-shadow: none; }
.btn:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
.btn[disabled] { opacity: 0.6; cursor: progress; transform: none; box-shadow: none; }

.btn-ghost { background: transparent; color: var(--ink); }
.btn-ghost:hover { background: var(--paper-hi); }

.btn-lg { padding: 18px 26px; font-size: 14px; }
.btn-block { width: 100%; justify-content: center; }
.btn .arrow { font-family: var(--sans); font-size: 1.15em; line-height: 1; transition: transform 0.2s ease; }
.btn:hover .arrow { transform: translateX(4px); }

/* ---------- header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--paper) 86%, transparent);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--ink);
}
.header-inner {
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.brand { display: block; flex: none; }
.brand img { display: block; height: 22px; width: auto; }

.nav {
  display: flex;
  align-items: center;
  gap: clamp(16px, 2.6vw, 30px);
}
.nav a:not(.btn) {
  position: relative;
  padding: 6px 0;
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
}
.nav a:not(.btn)::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 1.5px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.2s ease;
}
.nav a:not(.btn):hover::after,
.nav a[aria-current="page"]::after { transform: scaleX(1); }
.nav .btn { padding: 10px 14px; font-size: 12px; }

@media (max-width: 860px) {
  .nav .nav-extra { display: none; }
}
@media (max-width: 560px) {
  .nav .btn { display: none; }
  .brand img { height: 18px; }
}

/* ---------- hero ---------- */

.hero {
  padding-top: clamp(28px, 4vw, 56px);
  padding-bottom: clamp(40px, 6vw, 72px);
}
.hero-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px 24px;
}

/* the ink stage: liquid ink under the logo */
.stage {
  position: relative;
  margin-top: clamp(20px, 2.6vw, 32px);
  height: clamp(300px, 56vh, 620px);
  border: 1.5px solid var(--ink);
  box-shadow: 8px 8px 0 var(--ink);
  background: var(--paper-hi);
  overflow: hidden;
  isolation: isolate;
  cursor: grab;
  touch-action: pan-y;
  user-select: none;
  -webkit-user-select: none;
}
.stage canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  opacity: 0;
  transition: opacity 1.2s ease;
}
.gl-on .stage canvas { opacity: 1; }
.stage-logo {
  position: absolute;
  left: 50%;
  top: 50%;
  width: min(68%, 820px);
  height: auto;
  transform: translate(-50%, -50%);
  pointer-events: none;
  user-select: none;
}
.gl-logo .stage-logo { opacity: 0; }
.stage-corner {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 8px;
  pointer-events: none;
  mix-blend-mode: difference;
  color: #fff;
}
.stage-corner.tl { left: 16px; top: 14px; }
.stage-corner.br { right: 16px; bottom: 14px; }
.stage-corner .spark { width: 12px; height: 12px; animation: spin 8s linear infinite; }

.hero-title {
  margin: clamp(36px, 4.5vw, 56px) 0 0;
  font-family: var(--display);
  font-stretch: 125%;
  font-weight: 900;
  text-transform: uppercase;
  font-size: clamp(32px, 4.6vw, 64px);
  line-height: 0.92;
  letter-spacing: -0.03em;
}
.hero-title .line { display: block; }
.hero-title .indent { padding-left: 0.5em; }
.hero-title .spark {
  width: 0.6em;
  height: 0.6em;
  margin-left: 0.06em;
  vertical-align: 0.04em;
  animation: spin 14s linear infinite;
}

.hero-foot {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 28px 40px;
  margin-top: clamp(24px, 3vw, 40px);
  padding-top: 24px;
  border-top: 1.5px solid var(--ink);
}
.lede {
  margin: 0;
  max-width: 54ch;
  font-size: clamp(17px, 1.4vw, 20px);
  line-height: 1.5;
  color: var(--ink-soft);
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }

.hero-points {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px 24px;
  margin: 32px 0 0;
  padding: 18px 0 0;
  list-style: none;
  border-top: 1px solid var(--rule);
}
.hero-points li {
  display: flex;
  align-items: center;
  gap: 10px;
}

@media (max-width: 760px) {
  .stage { height: 72vw; min-height: 260px; box-shadow: 5px 5px 0 var(--ink); }
  .stage-logo { width: 84%; }
  .hero-foot { grid-template-columns: 1fr; }
  .hero-title .indent { padding-left: 0; }
  .hero-points { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .hero-actions { display: grid; }
  .hero-actions .btn { justify-content: center; }
}

@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- marquee ---------- */

.marquee {
  overflow: hidden;
  background: var(--ink);
  color: var(--paper);
  padding: 14px 0;
  user-select: none;
}
.marquee-track {
  display: flex;
  width: max-content;
  animation: marquee 40s linear infinite;
  will-change: transform;
}
.js-marquee .marquee-track { animation: none; }
.marquee-group {
  display: flex;
  align-items: center;
  flex: none;
  gap: 28px;
  padding-right: 28px;
}
.marquee-group span {
  font-family: var(--display);
  font-stretch: 125%;
  font-weight: 800;
  text-transform: uppercase;
  font-size: clamp(15px, 1.5vw, 20px);
  letter-spacing: -0.01em;
  white-space: nowrap;
}
.marquee .spark { width: 14px; height: 14px; }

@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- generic section ---------- */

.section { padding-block: clamp(64px, 9vw, 128px); }
.section + .section { padding-top: 0; }

.section-head {
  display: grid;
  grid-template-columns: minmax(180px, 1fr) 2fr;
  gap: 20px 48px;
  align-items: start;
  margin-bottom: clamp(36px, 5vw, 64px);
}
.section-label {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  padding-top: 0.4em;
}
.section-head p {
  grid-column: 2;
  margin: 0;
  max-width: 56ch;
  color: var(--muted);
  font-size: 18px;
}
.h2 {
  margin: 0;
  font-family: var(--display);
  font-stretch: 125%;
  font-weight: 900;
  text-transform: uppercase;
  font-size: clamp(26px, 3vw, 44px);
  line-height: 0.95;
  letter-spacing: -0.03em;
}

@media (max-width: 760px) {
  .section-head { grid-template-columns: 1fr; }
  .section-head p { grid-column: 1; }
  .section-label { flex-direction: row; align-items: center; gap: 14px; padding-top: 0; }
}

/* ---------- services (4 columns) ---------- */

.pillars {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1.5px solid var(--ink);
}
.pillar { padding: 26px 24px 8px 0; }
.pillar + .pillar { padding-left: 24px; border-left: 1px solid var(--rule); }
.pillar-num { display: flex; align-items: center; gap: 8px; }
.pillar h3 {
  margin: 28px 0 12px;
  font-family: var(--display);
  font-stretch: 115%;
  font-weight: 800;
  text-transform: uppercase;
  font-size: clamp(19px, 1.7vw, 23px);
  line-height: 1.05;
  letter-spacing: -0.01em;
}
.pillar p { margin: 0; max-width: 38ch; color: var(--muted); }

/* pillar visuals */
.pv {
  position: relative;
  margin-top: 22px;
  aspect-ratio: 1;
  border: 1.5px solid var(--ink);
  background: var(--paper-hi);
  overflow: hidden;
  display: grid;
  place-items: center;
  container-type: inline-size;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.pillar:hover .pv { transform: translate(-3px, -3px); box-shadow: 4px 4px 0 var(--ink); }

/* 01 web design — a blank page becomes a layout, then a phone */
.wd-frame { position: absolute; left: 10%; top: 19%; width: 80%; height: 62%; border: 1.5px solid var(--ink); background: #fbfaf8; overflow: hidden; }
.wd-bar { position: absolute; left: 0; right: 0; top: 0; height: 7cqw; border-bottom: 1.5px solid var(--ink); display: flex; align-items: center; gap: 1.6cqw; padding-left: 2.6cqw; }
.wd-bar i { width: 2.2cqw; height: 2.2cqw; border: 1.5px solid var(--ink); border-radius: 50%; }
.wd-page { position: absolute; left: 0; right: 0; top: 7cqw; bottom: 0; }
.wd-b { position: absolute; border: 1.5px dashed var(--ink); --f: 1; }
.wd-b::after { content: ""; position: absolute; inset: -1.5px; background: var(--ink); transform: scaleX(var(--f)); transform-origin: left; }
.wd-logo { left: 6%; top: 8%; width: 24%; height: 10%; }
.wd-nav { left: 62%; top: 10%; width: 32%; height: 6%; }
.wd-hero { left: 6%; top: 26%; width: 88%; height: 34%; }
.wd-c1 { left: 6%; top: 68%; width: 27%; height: 24%; }
.wd-c2 { left: 36.5%; top: 68%; width: 27%; height: 24%; }
.wd-c3 { left: 67%; top: 68%; width: 27%; height: 24%; }
.wd-pen { position: absolute; left: 50%; top: 50%; width: 7cqw; height: 7cqw; margin: -3.5cqw 0 0 -3.5cqw; fill: var(--ink); opacity: 0; filter: drop-shadow(0 0 2px #fbfaf8); }

/* 02 SEO & traffic — a search, a climb to #1, a rising line */
.se-search { position: absolute; left: 9%; top: 8%; width: 82%; height: 12%; border: 1.5px solid var(--ink); border-radius: 999px; background: #fbfaf8; display: flex; align-items: center; gap: 2.4cqw; padding: 0 3.4cqw; }
.se-glass { width: 5cqw; height: 5cqw; flex: none; fill: none; stroke: var(--ink); stroke-width: 2.4; }
.se-q { display: flex; align-items: center; gap: 1.2cqw; }
.se-q i { display: block; height: 2.4cqw; background: var(--ink); transform-origin: left; }
.se-q i:nth-child(1) { width: 5cqw; } .se-q i:nth-child(2) { width: 7cqw; } .se-q i:nth-child(3) { width: 4cqw; }
.se-q i:nth-child(4) { width: 8cqw; } .se-q i:nth-child(5) { width: 5cqw; } .se-q i:nth-child(6) { width: 6cqw; }
.se-caret { width: 1.5px; height: 5cqw; background: var(--ink); animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.se-results { position: absolute; left: 9%; right: 9%; top: 26%; height: 48%; margin: 0; padding: 0; list-style: none; }
.se-results li { position: absolute; left: 0; right: 0; height: 16%; display: flex; flex-direction: column; justify-content: center; gap: 1.2cqw; }
.se-results li:nth-child(1) { top: 0%; } .se-results li:nth-child(2) { top: 20%; } .se-results li:nth-child(3) { top: 40%; }
.se-results li:nth-child(4) { top: 60%; } .se-results li:nth-child(5) { top: 80%; }
.se-results b { display: block; height: 2.6cqw; background: #bdb9b1; }
.se-results i { display: block; height: 1.5cqw; background: #d8d5ce; }
.se-you { transform-origin: left center; }
.se-you b { background: var(--ink); }
.se-you i { background: #8f8b83; }
.se-you .spark { position: absolute; right: 0; top: 50%; width: 5cqw; height: 5cqw; margin-top: -2.5cqw; animation: spin 6s linear infinite; }
.se-chart { position: absolute; left: 9%; width: 82%; bottom: 7%; height: 14%; overflow: visible; }
.se-axis { fill: none; stroke: rgba(11, 11, 11, .25); stroke-width: 1; vector-effect: non-scaling-stroke; }
.se-line { fill: none; stroke: var(--ink); stroke-width: 1.4; stroke-dasharray: 100; stroke-dashoffset: 0; stroke-linejoin: round; }

/* 03 redesigns — old site swept into the new one */
.pv-redo { background: #dcd9d2; }
.rd-bg { position: absolute; inset: 0; background: var(--paper-hi); }
.rd-load { position: absolute; left: 0; right: 0; top: 0; height: 2cqw; background: rgba(11, 11, 11, .06); opacity: 0; }
.rd-load i { display: block; height: 100%; background: #8f8b83; transform-origin: left; transform: scaleX(.05); }
.rd-b { position: absolute; background: var(--ink); }
.rd-junk { position: absolute; opacity: 0; background: repeating-linear-gradient(45deg, #b3afa6 0 3px, transparent 3px 6px); border: 1px solid #b3afa6; }
.rd-spin { position: absolute; left: 44%; top: 37%; width: 12%; aspect-ratio: 1; border: 2px solid #8f8b83; border-top-color: transparent; border-radius: 50%; opacity: 0; animation: spin 1.4s linear infinite; }
.rd-check { position: absolute; right: 7%; top: 5%; width: 10%; height: 10%; overflow: visible; }
.rd-check path { fill: none; stroke: var(--ink); stroke-width: 2.6; stroke-dasharray: 100; stroke-dashoffset: 0; }
.rd-scan { position: absolute; top: 0; bottom: 0; left: 0; width: 1.5px; background: var(--ink); opacity: 0; box-shadow: 0 0 0 1px rgba(244, 243, 239, .8); }

/* 04 maintenance — fix, update, add a page, lock it */
.mt-page { position: absolute; width: 46%; height: 56%; background: #fbfaf8; border: 1.5px solid var(--ink); padding: 9% 8%; display: flex; flex-direction: column; gap: 2.6cqw; }
.mt-line { display: block; height: 2.6cqw; background: var(--ink); flex: none; }
.mt-broken { position: absolute; left: 8%; right: 8%; bottom: 9%; height: 32%; background: var(--ink); }
.mt-new { left: 32%; top: 29%; }
.mt-tool { position: absolute; left: 88%; top: 10%; width: 9%; height: 9%; margin: -4.5% 0 0 -4.5%; fill: var(--ink); opacity: 0; }
.mt-lock { position: absolute; right: 7%; bottom: 7%; width: 15%; height: 15%; overflow: visible; }
.mt-lock path { fill: none; stroke: var(--ink); stroke-width: 2.2; }
.mt-lock rect { fill: var(--ink); }
.mt-ring { position: absolute; right: 7%; bottom: 7%; width: 15%; aspect-ratio: 1; border: 1.5px solid var(--ink); border-radius: 50%; opacity: 0; }

@media (max-width: 1100px) {
  .pillars { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pillar, .pillar + .pillar { padding: 26px 24px 30px 0; border-left: 0; }
  .pillar:nth-child(even) { padding-left: 24px; padding-right: 0; border-left: 1px solid var(--rule); }
  .pillar:nth-child(n+3) { border-top: 1px solid var(--rule); }
}
@media (max-width: 640px) {
  .pillars { grid-template-columns: 1fr; }
  .pillar, .pillar + .pillar, .pillar:nth-child(even) {
    padding: 22px 0 26px;
    border-left: 0;
    border-top: 0;
    border-bottom: 1px solid var(--rule);
  }
  .pillar h3 { margin-top: 20px; }
  .pv { width: 72%; }
}

/* ---------- traffic / SEO (dark) ---------- */

.traffic {
  background: var(--night);
  color: var(--on-night);
  padding-block: clamp(64px, 9vw, 128px);
}
.traffic .section-head p { color: var(--on-night-muted); }
.traffic .kana-badge .pill { background: var(--on-night); color: var(--night); }
.traffic .outline { -webkit-text-stroke-color: var(--on-night); }

.traffic-body {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  align-items: start;
  gap: clamp(32px, 4vw, 64px);
}
@media (max-width: 980px) {
  .traffic-body { grid-template-columns: 1fr; }
}

.scores {
  padding: clamp(22px, 2.6vw, 32px);
  border: 1px solid var(--night-line);
  background: var(--night-panel);
}
.scores-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--night-line);
}
.score-rings {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px 16px;
  margin: 28px 0;
}
.ring {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  margin: 0;
}
.ring svg { width: min(128px, 100%); height: auto; overflow: visible; }
.ring-track { fill: none; stroke: var(--night-line); stroke-width: 6; }
.ring-progress {
  fill: none;
  stroke: var(--on-night);
  stroke-width: 6;
  stroke-linecap: butt;
  stroke-dasharray: 95 100;
  transform: rotate(-90deg);
  transform-origin: 50% 50%;
  transition: stroke-dashoffset 1.6s cubic-bezier(.2,.7,.2,1) 0.2s;
}
.js .reveal:not(.in) .ring-progress { stroke-dashoffset: 95; }
.ring text {
  fill: var(--on-night);
  font-family: var(--display);
  font-stretch: 125%;
  font-weight: 900;
  font-size: 24px;
  letter-spacing: -0.02em;
}
.ring figcaption { color: var(--on-night-muted); text-align: center; }
.scores-note {
  margin: 0;
  padding-top: 16px;
  border-top: 1px solid var(--night-line);
  font-size: 15px;
  color: var(--on-night-muted);
}

.seo-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border-top: 1.5px solid var(--on-night);
}
.seo-item {
  position: relative;
  padding: 22px 24px 24px 0;
  border-bottom: 1px solid var(--night-line);
  transition: background-color 0.2s ease, color 0.2s ease;
}
.seo-item:nth-child(even) { padding: 22px 0 24px 24px; border-left: 1px solid var(--night-line); }
.seo-item .tag { color: var(--on-night-muted); }
.seo-item h3 {
  margin: 14px 0 8px;
  font-family: var(--display);
  font-stretch: 115%;
  font-weight: 800;
  text-transform: uppercase;
  font-size: 18px;
  line-height: 1.1;
  letter-spacing: -0.005em;
}
.seo-item p { margin: 0; font-size: 15.5px; color: var(--on-night-muted); }
@media (hover: hover) {
  .seo-item:hover { background: var(--on-night); color: var(--night); box-shadow: -24px 0 0 var(--on-night), 24px 0 0 var(--on-night); }
  .seo-item:nth-child(odd):hover { box-shadow: -24px 0 0 var(--on-night); }
  .seo-item:nth-child(even):hover { box-shadow: 24px 0 0 var(--on-night); }
  .seo-item:hover .tag, .seo-item:hover p { color: #4a4945; }
}

@media (max-width: 600px) {
  .seo-grid { grid-template-columns: 1fr; }
  .seo-item, .seo-item:nth-child(even) { padding: 20px 0 22px; border-left: 0; }
}

/* ---------- comparison ---------- */

.compare-wrap { border-top: 1.5px solid var(--ink); }
.compare {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
}
.compare col.c-feature { width: 40%; }
.compare th,
.compare td {
  padding: 16px 10px;
  border-bottom: 1px solid var(--rule);
  text-align: center;
  vertical-align: middle;
}
.compare thead th {
  padding-block: 18px;
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-bottom: 1.5px solid var(--ink);
}
.compare thead th:first-child,
.compare tbody th {
  padding-left: 0;
  text-align: left;
}
.compare tbody th {
  font-size: 17px;
  font-weight: 600;
  line-height: 1.3;
}
.compare tbody tr { transition: background-color 0.15s ease; }
.compare tbody tr:hover { background: var(--paper-hi); }
.compare .us {
  background: var(--ink);
  color: var(--paper);
  border-bottom-color: #2a2a2a;
}
.compare thead .us {
  font-family: var(--display);
  font-stretch: 125%;
  font-weight: 900;
  font-size: 15px;
  letter-spacing: 0;
}
.compare .ic { width: 20px; height: 20px; vertical-align: middle; }
.compare .ic-yes { fill: none; stroke: currentColor; stroke-width: 2.5; }
.compare .ic-no { fill: none; stroke: var(--muted); stroke-width: 2; opacity: 0.7; }
.compare tbody tr:hover .ic-yes { animation: tick 0.4s ease; }
@keyframes tick { 50% { transform: scale(1.35) rotate(-8deg); } }
.compare .note {
  display: inline-block;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
  line-height: 1.35;
}

@media (max-width: 640px) {
  .compare th, .compare td { padding: 14px 4px; }
  .compare tbody th { font-size: 15px; padding-right: 8px; }
  .compare thead th { font-size: 10px; letter-spacing: 0.04em; }
  .compare thead .us { font-size: 12px; }
  .compare .note { font-size: 9.5px; letter-spacing: 0; }
}

/* ---------- process ---------- */

.process-wrap { position: relative; }
.process {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1.5px solid var(--rule);
}
.process-bar {
  position: absolute;
  left: 0; right: 0; top: -1.5px;
  height: 1.5px;
  background: var(--ink);
  transform-origin: left;
}
.js-process .process-bar { transform: scaleX(0); }
.process li { padding: 24px 20px 8px 0; }
.process li + li { padding-left: 20px; border-left: 1px solid var(--rule); }
.process-num {
  display: block;
  font-family: var(--display);
  font-stretch: 125%;
  font-weight: 900;
  font-size: clamp(30px, 3vw, 44px);
  line-height: 1;
  letter-spacing: -0.03em;
  transition: color 0.3s ease;
}
.js-process .process li:not(.on) .process-num {
  color: transparent;
  -webkit-text-stroke: 1.5px var(--ink);
}
.process h3 {
  margin: 24px 0 8px;
  font-family: var(--display);
  font-stretch: 115%;
  font-weight: 800;
  text-transform: uppercase;
  font-size: 18px;
  line-height: 1.1;
}
.process p { margin: 0; font-size: 15.5px; color: var(--muted); }

@media (max-width: 1000px) {
  .process { grid-template-columns: 1fr; border-top: 0; border-left: 1.5px solid var(--rule); }
  .process-bar { left: -1.5px; right: auto; top: 0; bottom: 0; width: 1.5px; height: auto; transform-origin: top; }
  .js-process .process-bar { transform: scaleY(0); }
  .process li, .process li + li {
    display: grid;
    grid-template-columns: 80px 1fr;
    align-items: start;
    padding: 20px 0 20px 20px;
    border-left: 0;
    border-bottom: 1px solid var(--rule);
  }
  .process h3 { margin-top: 2px; }
}

/* ---------- FAQ ---------- */

.faq-layout {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  align-items: start;
  gap: 32px clamp(32px, 5vw, 80px);
}
.faq-intro {
  position: sticky;
  top: calc(var(--header-h) + 32px);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
}
.faq-intro p { margin: 0; max-width: 40ch; color: var(--muted); }
.faq-intro a { color: var(--ink); text-underline-offset: 3px; }

.faq-list { border-top: 1.5px solid var(--ink); }
.faq-list details { border-bottom: 1px solid var(--rule); }
.faq-list summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 22px 0;
  list-style: none;
  cursor: pointer;
  font-family: var(--display);
  font-stretch: 112%;
  font-weight: 800;
  text-transform: uppercase;
  font-size: clamp(16px, 1.45vw, 19px);
  line-height: 1.2;
  transition: padding 0.2s ease;
}
.faq-list summary:hover { padding-left: 8px; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary:focus-visible { outline: 2px solid var(--ink); outline-offset: 4px; }
.faq-list summary:hover .pm { transform: rotate(90deg); }
.pm {
  position: relative;
  flex: none;
  width: 16px;
  height: 16px;
  transition: transform 0.25s ease;
}
.pm::before,
.pm::after {
  content: "";
  position: absolute;
  left: 0; right: 0; top: 50%;
  height: 2px;
  margin-top: -1px;
  background: currentColor;
}
.pm::after { transform: rotate(90deg); }
.faq-list details[open] .pm { transform: rotate(45deg); }
.faq-list details p {
  margin: 0;
  padding: 0 40px 24px 0;
  max-width: 64ch;
  color: var(--muted);
}
.faq-list details[open] p { animation: drop 0.35s ease; }
@keyframes drop { from { opacity: 0; transform: translateY(-6px); } }

@media (max-width: 900px) {
  .faq-layout { grid-template-columns: 1fr; }
  .faq-intro { position: static; }
}

/* ---------- CTA ---------- */

.cta {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 28px;
  padding-block: clamp(72px, 11vw, 160px);
  text-align: center;
}
.cta-sparks { position: absolute; inset: 0; pointer-events: none; overflow: hidden; z-index: -1; }
.cta-sparks .fly, .burst .fly { position: absolute; left: 0; top: 0; width: 18px; height: 18px; fill: var(--ink); }
.cta-title {
  margin: 0;
  font-family: var(--display);
  font-stretch: 125%;
  font-weight: 900;
  text-transform: uppercase;
  font-size: clamp(30px, 4.2vw, 58px);
  line-height: 0.95;
  letter-spacing: -0.03em;
}
.cta-note { margin: 0; font-family: var(--mono); font-size: 13px; color: var(--muted); }
.cta-note a { color: var(--ink); text-underline-offset: 3px; }

.burst { position: fixed; inset: 0; pointer-events: none; z-index: 160; }

/* ---------- footer ---------- */

.site-footer {
  background: var(--night);
  color: var(--on-night);
  padding: clamp(48px, 7vw, 96px) 0 28px;
}
.footer-mark {
  display: block;
  width: 100%;
  height: auto;
  filter: invert(95%);
}
.js .footer-mark.reveal { opacity: 1; transform: none; clip-path: inset(0 0 100% 0); transition: clip-path 1.1s cubic-bezier(.7,0,.2,1); }
.js .footer-mark.reveal.in { clip-path: inset(0 0 0 0); }
.footer-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px 24px;
  margin-top: clamp(36px, 5vw, 64px);
  padding-top: 20px;
  border-top: 1px solid var(--night-line);
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--on-night-muted);
}
.footer-row a { color: var(--on-night); text-decoration: none; }
.footer-row a:hover { text-decoration: underline; text-underline-offset: 3px; }
.footer-row nav { display: flex; flex-wrap: wrap; gap: 22px; }

/* ---------- cursor ---------- */

.cursor { display: none; }
.has-cursor, .has-cursor * { cursor: none !important; }
.has-cursor input, .has-cursor textarea { cursor: text !important; }
.has-cursor .cursor { display: block; position: fixed; inset: 0; z-index: 200; pointer-events: none; mix-blend-mode: difference; opacity: 0; transition: opacity 0.3s ease; }
.has-cursor.cur-live .cursor { opacity: 1; }
.cursor__box, .cursor__dot { position: absolute; left: 0; top: 0; will-change: transform; }
.cursor__box { width: 30px; height: 30px; border: 1.5px solid #fff; transition: width 0.25s ease, height 0.25s ease, background-color 0.2s ease; }
.cursor__dot { width: 6px; height: 6px; background: #fff; }
.cur-hover .cursor__box { width: 46px; height: 46px; background: #fff; }
.cur-down .cursor__box { width: 22px; height: 22px; }
.cur-stage .cursor__box { width: 58px; height: 58px; border-radius: 50%; }
.cur-grab .cursor__box { width: 34px; height: 34px; border-radius: 50%; background: #fff; }

/* ---------- reveal on scroll ---------- */

.js .reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s ease, transform 0.7s cubic-bezier(.2,.7,.2,1);
}
.js .reveal.in { opacity: 1; transform: none; }

/* ==========================================================================
   Contact page
   ========================================================================== */

.contact {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  align-items: start;
  gap: clamp(44px, 6vw, 96px);
  padding-top: clamp(36px, 6vw, 88px);
  padding-bottom: clamp(64px, 8vw, 120px);
}
@media (max-width: 940px) {
  .contact { grid-template-columns: 1fr; }
}

.contact-title {
  margin: clamp(24px, 3.5vw, 40px) 0 0;
  font-family: var(--display);
  font-stretch: 125%;
  font-weight: 900;
  text-transform: uppercase;
  font-size: clamp(34px, 4.6vw, 62px);
  line-height: 0.92;
  letter-spacing: -0.03em;
}
.contact-intro .lede { margin-top: 28px; }

.steps {
  list-style: none;
  margin: 40px 0 0;
  padding: 0;
  border-top: 1.5px solid var(--ink);
}
.steps li {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 12px;
  padding: 18px 0;
  border-bottom: 1px solid var(--rule);
}
.steps .tag { padding-top: 4px; }
.steps strong {
  display: block;
  font-family: var(--display);
  font-stretch: 115%;
  font-weight: 800;
  text-transform: uppercase;
  font-size: 17px;
  letter-spacing: -0.005em;
}
.steps p { margin: 4px 0 0; font-size: 15.5px; color: var(--muted); }

.direct { display: flex; flex-direction: column; gap: 8px; margin-top: 36px; }
.direct-email {
  width: fit-content;
  font-family: var(--display);
  font-stretch: 115%;
  font-weight: 800;
  font-size: clamp(22px, 2.5vw, 32px);
  letter-spacing: -0.01em;
  text-decoration: none;
  border-bottom: 2px solid var(--ink);
  overflow-wrap: anywhere;
}
.direct-email:hover { border-bottom-width: 4px; }

.form-card {
  position: relative;
  background: var(--paper-hi);
  border: 1.5px solid var(--ink);
  box-shadow: 8px 8px 0 var(--ink);
  padding: clamp(22px, 3.2vw, 40px);
}
.form-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 28px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--rule);
}
.form-card-head .spark { animation: spin 10s linear infinite; }

.field {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
  margin: 0 0 22px;
  padding: 0;
  border: 0;
}
.field > span,
.field legend {
  padding: 0;
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.field legend { margin-bottom: 10px; }
.field em { font-style: normal; color: var(--muted); }

.field input,
.field textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1.5px solid var(--ink);
  border-radius: 0;
  background: #fbfaf8;
  color: var(--ink);
  font: inherit;
  font-size: 16px;
  outline: none;
  transition: box-shadow 0.15s ease, transform 0.15s ease;
}
.field textarea { min-height: 140px; resize: vertical; }
.field input::placeholder,
.field textarea::placeholder { color: #8a8883; }
.field input:focus-visible,
.field textarea:focus-visible {
  box-shadow: 4px 4px 0 var(--ink);
  transform: translate(-2px, -2px);
}

.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 16px;
}
@media (max-width: 520px) {
  .field-row { grid-template-columns: 1fr; }
}

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { position: relative; }
.chip input {
  position: absolute;
  opacity: 0;
  width: 1px; height: 1px;
}
.chip span {
  display: inline-block;
  padding: 9px 14px;
  border: 1.5px solid var(--ink);
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background-color 0.15s ease, color 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
}
.chip span:hover { background: #e4e2dc; }
.chip input:checked + span { background: var(--ink); color: var(--paper); transform: translate(-2px, -2px); box-shadow: 2px 2px 0 var(--ink); }
.chip input:focus-visible + span { outline: 2px solid var(--ink); outline-offset: 2px; }

.hp { position: absolute; left: -9999px; }

.form-note {
  min-height: 1.2em;
  margin: 14px 0 0;
  font-family: var(--mono);
  font-size: 12px;
  line-height: 1.6;
}
.form-note a { color: inherit; text-underline-offset: 3px; }

.form-success { padding: 12px 0 4px; }
.form-success:focus { outline: none; }
.form-success h2 {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 0 0 14px;
  font-family: var(--display);
  font-stretch: 125%;
  font-weight: 900;
  text-transform: uppercase;
  font-size: clamp(28px, 3vw, 40px);
  line-height: 0.95;
  letter-spacing: -0.03em;
}
.form-success h2 .spark { width: 0.7em; height: 0.7em; animation: spin 6s linear infinite; }
.form-success p { margin: 0 0 24px; color: var(--muted); max-width: 42ch; }

/* ---------- motion preferences ---------- */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .js .reveal:not(.in) .ring-progress { stroke-dashoffset: 0; }
  .js .footer-mark.reveal { clip-path: none; }
  .ring-progress, .btn, .field input, .field textarea, .pm { transition: none; }
  .pv-redo .new { clip-path: none; }
}
