/* CustomizeMyPFP — one motif: the circle a pfp is cropped to.
   It runs the page at every scale: the hero orb, every picture mask, the buttons, the list markers, the footer mark. */
:root {
  /* colour: brand palette, flat */
  --ground: #f3ecfd;      /* lavender: the page */
  --field: #fbf8ff;       /* one tone step up: the maker's panels */
  --ink: #2a1b3d;         /* deep plum: all running text */
  --ink-soft: #5d4b73;    /* secondary notes only */
  --accent: #5b3fd0;      /* deep grape: the action, the selected state */
  --accent-strong: #4a2fbd;
  --orb: #9d84f4;         /* grape: the motif at large scale */
  --mint: #c4ecdd;
  --coral: #ffc9bc;
  --butter: #ffe6a6;
  --danger: #a3243a;

  /* type: two faces, five sizes */
  --face-display: "Bricolage Grotesque", "DM Sans", system-ui, sans-serif;
  --face-text: "DM Sans", system-ui, sans-serif;
  --s-small: 14px;
  --s-body: 17px;
  --s-lead: clamp(20px, 1.8vw, 26px);
  --s-head: clamp(34px, 4vw, 58px);
  --s-display: clamp(58px, 8.6vw, 140px);

  /* space */
  --margin: clamp(16px, 4vw, 56px);
  --gutter: clamp(16px, 2vw, 32px);
  --section: clamp(96px, 14vw, 200px);
  --radius: 22px;

  /* motion */
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --t-hover: 180ms;
  --t-press: 120ms;
  color-scheme: light;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body {
  margin: 0; background: var(--ground); color: var(--ink);
  font: var(--s-body)/1.55 var(--face-text);
  overflow-x: clip;
}
h1, h2, h3 { font-family: var(--face-display); font-weight: 800; margin: 0; letter-spacing: -0.03em; }
p { margin: 0; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
::selection { background: var(--orb); color: var(--ink); }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.wrap { width: 100%; max-width: 1360px; margin-inline: auto; padding-inline: var(--margin); }

/* ---------- buttons: one shape, fully round (the motif) ---------- */
.button {
  appearance: none; border: 0; border-radius: 999px; cursor: pointer; text-decoration: none;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  background: var(--accent); color: #fff; font: 700 var(--s-body)/1 var(--face-text);
  padding: 18px 30px; min-height: 52px;
  transition: transform var(--t-press) var(--ease-out), background-color var(--t-hover) ease;
}
.button:active:not(:disabled) { transform: scale(0.97); }
.button--small { padding: 12px 20px; min-height: 44px; font-size: var(--s-small); }
.button--big { font-family: var(--face-display); font-size: var(--s-lead); padding: 22px 40px; width: min(480px, 100%); }
.button--quiet { background: var(--field); color: var(--ink); }
.button:disabled { background: #ddd3f1; color: var(--ink-soft); cursor: not-allowed; }
.link {
  font-weight: 700; text-decoration: underline; text-underline-offset: 0.22em; text-decoration-thickness: 0.08em;
  text-decoration-color: color-mix(in srgb, currentColor 35%, transparent); background: none; border: 0; padding: 4px 0;
  cursor: pointer; font-family: inherit; font-size: inherit; color: inherit;
  transition: text-decoration-color var(--t-hover) ease;
}
@media (hover: hover) and (pointer: fine) {
  .button:hover:not(:disabled) { background: var(--accent-strong); }
  .button--quiet:hover:not(:disabled) { background: #fff; }
  .link:hover { text-decoration-color: currentColor; }
}

/* ---------- scripts the brand fonts do not cover: Noto fallbacks, natural tracking ---------- */
:lang(ja) { --face-display: "Bricolage Grotesque", "Noto Sans JP", system-ui, sans-serif; --face-text: "DM Sans", "Noto Sans JP", system-ui, sans-serif; }
:lang(ko) { --face-display: "Bricolage Grotesque", "Noto Sans KR", system-ui, sans-serif; --face-text: "DM Sans", "Noto Sans KR", system-ui, sans-serif; }
:lang(hi) { --face-display: "Bricolage Grotesque", "Noto Sans Devanagari", system-ui, sans-serif; --face-text: "DM Sans", "Noto Sans Devanagari", system-ui, sans-serif; }
:lang(ja) h1, :lang(ja) h2, :lang(ja) h3, :lang(ko) h1, :lang(ko) h2, :lang(ko) h3,
:lang(hi) h1, :lang(hi) h2, :lang(hi) h3 { letter-spacing: 0; }
:lang(ja) .hero h1, :lang(ko) .hero h1 { line-height: 1.08; }
:lang(ko) { word-break: keep-all; overflow-wrap: anywhere; } /* Korean wraps at spaces, never inside a word */
:lang(ja) { line-break: strict; }
:lang(hi) .hero h1 { line-height: 1.22; }
:lang(hi) h2, :lang(hi) h3, :lang(hi) .statement, :lang(hi) .style-row { line-height: 1.35; }

/* ---------- language switcher + suggestion bar ---------- */
.lang { position: relative; font-weight: 700; }
.lang summary {
  list-style: none; cursor: pointer; display: inline-flex; align-items: center; gap: 8px;
  min-height: 44px; padding: 0 14px; border-radius: 999px; background: var(--field);
  transition: background-color var(--t-hover) ease;
}
.lang summary::-webkit-details-marker { display: none; }
.lang summary::after { content: ""; width: 7px; height: 7px; border: solid currentColor; border-width: 0 2px 2px 0; transform: translateY(-2px) rotate(45deg); }
.lang[open] summary::after { transform: translateY(2px) rotate(-135deg); }
.lang__list {
  position: absolute; right: 0; top: calc(100% + 8px); z-index: 20; margin: 0; padding: 8px; list-style: none;
  background: #fff; border-radius: 18px; min-width: 220px; display: grid;
  border: 2px solid color-mix(in srgb, var(--ink) 14%, transparent);
  max-width: calc(100vw - 2 * var(--margin));
}
.lang:not([open]) .lang__list { display: none; }
.lang--foot .lang__list { top: auto; bottom: calc(100% + 8px); left: 0; right: auto; }
.lang__list a { display: block; padding: 10px 14px; border-radius: 12px; text-decoration: none; font-weight: 600; }
.lang__list a[aria-current="page"] { background: var(--accent); color: #fff; }
@media (hover: hover) and (pointer: fine) {
  .lang summary:hover { background: #fff; }
  .lang__list a:not([aria-current="page"]):hover { background: var(--ground); }
}
.lang--foot summary { background: rgba(255, 255, 255, 0.55); }
.suggest {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 8px 20px;
  background: var(--ink); color: #fff; padding: 12px var(--margin); font-weight: 600;
}
.suggest a { color: #fff; text-decoration: underline; text-underline-offset: 0.2em; }
.suggest .link { color: #fff; font-weight: 500; }

/* ---------- top bar ---------- */
.bar { display: flex; align-items: center; gap: 12px var(--gutter); padding-block: 18px; }
.bar nav { margin-inline: auto; }
.wordmark { font: 800 var(--s-lead)/1 var(--face-display); letter-spacing: -0.03em; text-decoration: none; }
.bar nav { display: flex; gap: 28px; font-weight: 600; }
.bar nav a { text-decoration: none; }
@media (hover: hover) and (pointer: fine) { .bar nav a:hover { text-decoration: underline; text-underline-offset: 0.25em; } }
@media (max-width: 760px) { .bar nav { display: none; } .bar { justify-content: space-between; } .lang--bar { display: none; } }

/* ---------- hero: headline left, the motif at enormous scale entering from the right ---------- */
.hero {
  display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 6fr); align-items: center; gap: var(--gutter);
  min-height: min(calc(100svh - 80px), 860px); padding-block: 8px 24px; position: relative; overflow: clip;
  padding-inline: max(var(--margin), calc((100vw - 1360px) / 2 + var(--margin)));
}
.hero__text { position: relative; z-index: 1; }
.hero h1 { font-size: var(--s-display); line-height: 0.92; letter-spacing: -0.045em; max-width: 7.2em; }
.hero__lead { font-size: var(--s-lead); line-height: 1.4; max-width: 30ch; margin-top: 36px; }
.hero__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 28px; margin-top: 40px; }

.orb {
  position: relative; justify-self: start; width: min(64vw, 118svh); aspect-ratio: 1;
  margin-right: -14vw; border-radius: 50%; background: var(--orb);
  display: grid; place-items: center start; padding-left: 9%;
}
.orb__frame { position: relative; width: 58%; aspect-ratio: 1; border-radius: 50%; overflow: hidden; background: var(--ink); }
.orb__frame img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; }
.orb__frame img:first-child { opacity: 1; }
.orb__caption {
  position: absolute; left: 9%; width: 58%; top: calc(50% + 29% + 18px); text-align: center;
  font: 700 var(--s-body)/1 var(--face-display); color: var(--ink);
}
.orb__caption span { position: absolute; inset: 0 0 auto; opacity: 0; }
.orb__caption span:first-child { opacity: 1; }

@media (max-width: 860px) {
  .hero { grid-template-columns: minmax(0, 1fr); min-height: auto; padding-block: 16px 0; gap: 48px; }
  .hero h1 { font-size: clamp(54px, 15.5vw, 96px); }
  .hero__lead { margin-top: 24px; }
  .hero__actions { margin-top: 28px; }
  .orb { width: 118vw; margin-right: 0; margin-left: calc(-1 * var(--margin)); justify-self: start; padding-left: calc(var(--margin) + 4vw); }
  .orb__frame { width: 62%; }
  .orb__caption { left: calc(var(--margin) + 4vw); width: 62%; top: calc(50% + 31% + 14px); }
}

/* ---------- the maker (a real interface: data-ui) ---------- */
.maker { padding-block: clamp(64px, 8vw, 128px) 0; }
.maker__head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 40px; }
.maker h2 { font-size: var(--s-head); line-height: 1; }
.maker h3 { font-size: var(--s-lead); line-height: 1.15; margin-bottom: 18px; }
.mode-switch { display: inline-grid; grid-template-columns: 1fr 1fr; gap: 4px; padding: 4px; background: var(--field); border-radius: 999px; }
.mode-switch button {
  appearance: none; border: 0; border-radius: 999px; background: transparent; color: var(--ink); cursor: pointer;
  font: 700 var(--s-body)/1 var(--face-text); padding: 14px 22px; min-height: 48px;
  transition: background-color var(--t-hover) ease, color var(--t-hover) ease;
}
.mode-switch button[aria-checked="true"] { background: var(--accent); color: #fff; }

.maker__grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: var(--gutter); align-items: start; }
.maker__panel { background: var(--field); border-radius: var(--radius); padding: clamp(20px, 2.4vw, 36px); }
#step-upload, #step-describe { grid-column: 1; grid-row: 1; }
.maker__styles { grid-column: 2; grid-row: 1 / span 2; }
#step-custom { grid-column: 1; grid-row: 2; }
@media (max-width: 960px) {
  .maker__grid { grid-template-columns: minmax(0, 1fr); }
  #step-upload, #step-describe, .maker__styles, #step-custom { grid-column: 1; grid-row: auto; }
}

/* upload */
.dropzone {
  display: grid; justify-items: center; gap: 8px; text-align: center; cursor: pointer;
  border: 2px dashed color-mix(in srgb, var(--ink) 35%, transparent); border-radius: var(--radius);
  padding: 36px 20px; color: var(--ink-soft); transition: background-color var(--t-hover) ease, border-color var(--t-hover) ease;
}
.dropzone strong { color: var(--ink); font-size: var(--s-lead); font-family: var(--face-display); }
.dropzone__dot { width: 64px; height: 64px; border-radius: 50%; background: var(--accent); color: #fff; display: grid; place-items: center; margin-bottom: 6px; }
.dropzone:hover, .dropzone.drag { background: var(--ground); border-color: var(--accent); }
.cropper { display: grid; justify-items: center; gap: 14px; }
#crop-canvas { width: min(320px, 100%); aspect-ratio: 1; border-radius: 50%; background: var(--ink); cursor: grab; touch-action: none; }
#crop-canvas:active { cursor: grabbing; }
.crop-controls { display: flex; align-items: center; gap: 12px; width: min(320px, 100%); font-weight: 600; }
.crop-controls input { flex: 1; accent-color: var(--accent); }
.hint { color: var(--ink-soft); font-size: var(--s-small); }

/* describe */
textarea, input[type="text"] {
  width: 100%; background: #fff; border: 2px solid color-mix(in srgb, var(--ink) 18%, transparent); color: var(--ink);
  border-radius: 16px; padding: 14px 16px; font: inherit;
}
textarea { resize: vertical; min-height: 120px; }
textarea:focus, input[type="text"]:focus { outline: none; border-color: var(--accent); }
::placeholder { color: #7d6d92; }
.desc-meta { display: flex; justify-content: space-between; gap: 12px; margin-top: 10px; }
.desc-meta .count { color: var(--ink-soft); font-size: var(--s-small); white-space: nowrap; font-variant-numeric: tabular-nums; }
.ideas-title { font-weight: 700; margin: 22px 0 10px; }

/* style index with preview: names on the left, one round frame beside them */
.style-index { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 0.9fr); gap: var(--gutter); align-items: start; }
.style-list { display: grid; }
.style-row {
  appearance: none; border: 0; background: none; color: var(--ink); cursor: pointer; text-align: left;
  display: flex; align-items: center; gap: 14px; padding: 8px 0;
  font: 800 var(--s-lead)/1.1 var(--face-display); letter-spacing: -0.02em;
  transition: opacity var(--t-hover) ease, color var(--t-hover) ease;
}
.style-row span { flex: 1 1 auto; overflow-wrap: break-word; hyphens: auto; }
.style-row img { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; flex: none; }
.style-row::after { content: ""; width: 12px; height: 12px; border-radius: 50%; background: var(--accent); margin-left: 4px; opacity: 0; transform: scale(0.6); transition: opacity var(--t-hover) ease, transform var(--t-hover) var(--ease-out); }
.style-row[aria-checked="true"] { color: var(--accent); }
.style-row[aria-checked="true"]::after { opacity: 1; transform: none; }
.style-preview { position: sticky; top: 24px; margin: 0; }
.style-preview img { width: 100%; aspect-ratio: 1; border-radius: 50%; object-fit: cover; background: var(--ink); transition: opacity 240ms ease; }
.style-preview figcaption { text-align: center; font: 700 var(--s-body)/1.2 var(--face-display); margin-top: 14px; }
@media (hover: hover) and (pointer: fine) {
  .style-list:has(.style-row:hover, .style-row:focus-visible) .style-row:not(:hover, :focus-visible) { opacity: 0.45; }
}
@media (max-width: 640px) {
  .style-index { grid-template-columns: minmax(0, 1fr); }
  .style-preview { display: none; }
  .style-list { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 12px; }
  .style-row { font-size: var(--s-body); }
  :lang(hi) .style-row, :lang(de) .style-row { font-size: var(--s-small); }
}

/* chips */
.field { margin-top: 22px; }
.field:first-of-type { margin-top: 0; }
.field__label { display: block; font-weight: 700; margin-bottom: 10px; }
.field--two { display: grid; grid-template-columns: 1fr; gap: 22px; }
@media (min-width: 560px) { .field--two { grid-template-columns: 1fr 1fr; } }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  appearance: none; border: 2px solid color-mix(in srgb, var(--ink) 18%, transparent); background: #fff; color: var(--ink);
  border-radius: 999px; padding: 8px 16px; min-height: 40px; font: 600 var(--s-small)/1 var(--face-text); cursor: pointer;
  display: inline-flex; align-items: center; gap: 8px;
  transition: background-color var(--t-hover) ease, border-color var(--t-hover) ease, transform var(--t-press) var(--ease-out);
}
.chip:active { transform: scale(0.96); }
.chip[aria-checked="true"] { background: var(--accent); border-color: var(--accent); color: #fff; }
@media (hover: hover) and (pointer: fine) { .chip:hover:not([aria-checked="true"]) { border-color: var(--accent); } }
.dots { display: inline-flex; }
.dots i { width: 14px; height: 14px; border-radius: 50%; margin-left: -4px; outline: 2px solid #fff; }
.dots i:first-child { margin-left: 0; }
.chips.ideas .chip { border-style: dashed; }

/* generate + status */
.generate-bar { display: grid; justify-items: center; gap: 14px; margin-top: 40px; }
#generate.loading { position: relative; color: transparent; }
#generate.loading::after { content: attr(data-loading); position: absolute; inset: 0; display: grid; place-items: center; color: #fff; font-size: var(--s-body); }
.status { min-height: 1.5em; color: var(--ink-soft); text-align: center; font-weight: 500; }
.status.error { color: var(--danger); background: #fde4e6; border-radius: 999px; padding: 10px 20px; }

/* result */
.result { margin-top: 48px; background: var(--orb); border-radius: var(--radius); padding: clamp(20px, 3vw, 44px); }
.result h3 { font-size: var(--s-head); line-height: 1; margin-bottom: 28px; }
.compare { display: grid; grid-template-columns: 1fr 1fr auto; gap: var(--gutter); align-items: end; }
.compare figure { margin: 0; text-align: center; }
.compare img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: var(--radius); background: var(--ink); }
.compare figcaption { font-weight: 700; margin-top: 10px; }
.avatar-preview img { width: 120px; border-radius: 50%; }
.compare.text-only { grid-template-columns: minmax(0, 480px) auto; justify-content: center; }
@media (max-width: 640px) {
  .compare { grid-template-columns: 1fr 1fr; }
  .compare.text-only { grid-template-columns: 1fr; justify-items: center; }
  .avatar-preview { grid-column: 1 / -1; justify-self: center; }
}
.actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-top: 28px; }

/* ---------- how it works: many into one ---------- */
.how { background: var(--mint); margin-top: var(--section); padding-block: clamp(80px, 10vw, 140px); }
.how__intro { display: grid; grid-template-columns: 5fr 7fr; gap: var(--gutter); align-items: end; }
.how h2 { font-size: var(--s-head); line-height: 1; max-width: 9em; }
.how__intro p { font-size: var(--s-lead); line-height: 1.4; max-width: 34ch; }
.how__diagram { margin-top: 56px; }
.how__svg { width: 100%; height: auto; display: block; }
.how__steps { list-style: none; margin: 40px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--gutter); }
.how__steps li { max-width: 34ch; }
.how__steps strong { display: block; font: 800 var(--s-lead)/1.15 var(--face-display); letter-spacing: -0.02em; margin-bottom: 8px; }
@media (max-width: 760px) {
  .how__intro { grid-template-columns: 1fr; gap: 20px; }
  .how__steps { grid-template-columns: 1fr; gap: 28px; }
}

/* ---------- the 15 styles: one shape at many sizes ---------- */
.styles { padding-block: var(--section) 0; }
.styles__intro { display: grid; grid-template-columns: 5fr 7fr; gap: var(--gutter); align-items: end; margin-bottom: 64px; }
.styles h2 { font-size: var(--s-head); line-height: 1; max-width: 9em; }
.styles__intro p { font-size: var(--s-lead); line-height: 1.4; max-width: 34ch; }
.cluster { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 28px clamp(16px, 2.4vw, 40px); }
.cluster__item { display: grid; justify-items: center; gap: 12px; font: 700 var(--s-body)/1.2 var(--face-display); }
.cluster__item img { border-radius: 50%; aspect-ratio: 1; object-fit: cover; background: var(--ink); }
.cluster__item--l img { width: clamp(150px, 19vw, 280px); }
.cluster__item--m img { width: clamp(118px, 14vw, 210px); }
.cluster__item--s img { width: clamp(92px, 10vw, 150px); }
@media (max-width: 560px) {
  .styles__intro { grid-template-columns: 1fr; gap: 20px; margin-bottom: 40px; }
  .cluster__item--l img { width: 42vw; }
  .cluster__item--m img { width: 34vw; }
  .cluster__item--s img { width: 27vw; }
}
@media (max-width: 860px) and (min-width: 561px) { .styles__intro { grid-template-columns: 1fr; gap: 20px; } }

/* ---------- why: one statement with picture words ---------- */
.why { padding-block: var(--section) 0; }
.statement { font: 700 clamp(24px, 2.6vw, 36px)/1.3 var(--face-display); letter-spacing: -0.02em; max-width: 30em; }
.slot { display: inline-block; width: 1.25em; height: 1.25em; border-radius: 50%; object-fit: cover; vertical-align: -0.22em; margin-inline: 0.06em; background: var(--ink); }
.why__foot { display: grid; grid-template-columns: 6fr 6fr; gap: var(--gutter); margin-top: 72px; align-items: center; }
.why__foot p { grid-column: 2; font-size: var(--s-lead); line-height: 1.4; max-width: 34ch; }
.why__foot .button { grid-column: 2; justify-self: start; }
@media (max-width: 760px) {
  .why__foot { grid-template-columns: 1fr; margin-top: 40px; gap: 24px; }
  .why__foot p, .why__foot .button { grid-column: 1; }
}

/* ---------- faq: large questions, answers beside ---------- */
.faq-band { background: var(--field); margin-top: var(--section); }
.faq { padding-block: clamp(80px, 10vw, 150px); }
.faq__row { display: grid; grid-template-columns: 6fr 1fr 5fr; gap: 0 var(--gutter); align-items: baseline; margin-top: clamp(48px, 6vw, 80px); }
.faq__row:first-child { margin-top: 0; }
.faq__row h2, .faq__row h3 { grid-column: 1; font-size: var(--s-head); line-height: 1.05; letter-spacing: -0.02em; }
.faq__row h2 { color: var(--ink-soft); }
.faq__row h3 { font-size: var(--s-lead); line-height: 1.2; }
.faq__row p { grid-column: 3; font-size: var(--s-body); line-height: 1.6; max-width: 42ch; }
@media (max-width: 760px) {
  .faq__row { grid-template-columns: 1fr; gap: 12px; margin-top: 48px; }
  .faq__row p { grid-column: 1; }
}

/* ---------- footer: the mark built from circles ---------- */
.foot { background: var(--butter); padding-block: clamp(64px, 8vw, 112px) 32px; }
.mark { display: flex; align-items: flex-end; justify-content: space-between; gap: 8px; container-type: inline-size; }
.mark__dot {
  flex: none; width: calc(var(--w) * 1%); aspect-ratio: 1; border-radius: 50%; display: grid; place-items: center; overflow: hidden;
  font: 800 var(--s-display)/1 var(--face-display); color: var(--ink);
}
.mark__dot--grape { --w: 23; background: var(--orb); }
.mark__dot--coral { --w: 20.5; background: var(--coral); }
.mark__dot--mint { --w: 22; background: var(--mint); }
.mark__dot--img { --w: 15; background: var(--ink); }
.mark__dot--tall { --w: 17; }
.mark__dot img { width: 100%; height: 100%; object-fit: cover; }
.foot__cols { display: grid; grid-template-columns: 5fr 7fr; gap: var(--gutter); margin-top: 56px; }
.foot__links { display: grid; grid-template-columns: 1fr 1fr; gap: 10px var(--gutter); font-weight: 700; align-content: start; }
.foot__links a { text-decoration: none; }
.foot__notes { display: grid; gap: 10px; font-size: var(--s-small); max-width: 60ch; }
.foot__last { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 16px; margin-top: 56px; font-size: var(--s-small); font-weight: 600; }
.foot__last .lang { font-size: var(--s-body); }
@media (hover: hover) and (pointer: fine) { .foot__links a:hover { text-decoration: underline; text-underline-offset: 0.25em; } }
@media (max-width: 760px) {
  .foot__cols { grid-template-columns: 1fr; gap: 32px; }
  .mark { gap: 4px; }
}

/* ---------- motion (transform and opacity only; content never stays hidden without script) ---------- */
@keyframes cycle { 0% { opacity: 0; } 4% { opacity: 1; } 16.7% { opacity: 1; } 20.7% { opacity: 0; } 100% { opacity: 0; } }
@keyframes cycle-caption { 0%, 18.6% { opacity: 1; visibility: visible; } 18.7%, 100% { opacity: 0; visibility: hidden; } }
@keyframes load-rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@keyframes orb-in { from { transform: scale(0.9); } to { transform: none; } }
@media (prefers-reduced-motion: no-preference) {
  .orb__frame img { animation: cycle 14.4s linear infinite; }
  .orb__caption span { animation: cycle-caption 14.4s linear infinite; } /* switch, never half-faded */
  .orb__frame img:first-child, .orb__caption span:first-child { animation-delay: -0.6s; }
  .orb__frame img:nth-child(2), .orb__caption span:nth-child(2) { animation-delay: 1.8s; }
  .orb__frame img:nth-child(3), .orb__caption span:nth-child(3) { animation-delay: 4.2s; }
  .orb__frame img:nth-child(4), .orb__caption span:nth-child(4) { animation-delay: 6.6s; }
  .orb__frame img:nth-child(5), .orb__caption span:nth-child(5) { animation-delay: 9s; }
  .orb__frame img:nth-child(6), .orb__caption span:nth-child(6) { animation-delay: 11.4s; }
  .js .orb { animation: orb-in 1100ms var(--ease-expo) both; }
  .js [data-load] { opacity: 0; animation: load-rise 700ms var(--ease-out) forwards; animation-delay: var(--d, 0ms); }
  .js [data-reveal] { opacity: 0; transform: translateY(24px); transition: opacity 700ms var(--ease-out), transform 900ms var(--ease-out); transition-delay: calc(var(--i, 0) * 80ms); }
  .js [data-reveal].is-in { opacity: 1; transform: none; }
}

/* ---------- info pages: about, contact, privacy, terms ---------- */
.doc { padding-block: clamp(48px, 7vw, 96px) clamp(80px, 10vw, 140px); }
.doc h1 { font-size: var(--s-display); line-height: 0.95; letter-spacing: -0.045em; max-width: 8ch; }
.doc__lead { font-size: var(--s-lead); line-height: 1.4; max-width: 40ch; margin-top: 24px; }
.doc__body { max-width: 68ch; margin-top: clamp(40px, 5vw, 64px); }
.doc__body h2 { font-size: var(--s-lead); line-height: 1.2; letter-spacing: -0.02em; margin: 48px 0 12px; }
.doc__body p, .doc__body li { line-height: 1.65; }
.doc__body p + p { margin-top: 14px; }
.doc__body ul { margin: 12px 0 0; padding-left: 1.2em; display: grid; gap: 10px; }
.doc__body a:not(.button) { font-weight: 600; text-underline-offset: 0.2em; }
.doc__cta { margin-bottom: 8px; }
.foot--doc { padding-top: clamp(48px, 6vw, 80px); }
.foot--doc .foot__cols { margin-top: 0; }
.foot__links a[href^="/about"], .foot__links a[href^="/contact"], .foot__links a[href^="/privacy"], .foot__links a[href^="/terms"] { font-weight: 600; }
.doc { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); gap: clamp(32px, 6vw, 96px); align-items: start; }
.doc__body { max-width: 36em; }
.doc__aside { position: sticky; top: 32px; display: grid; justify-items: start; gap: 20px; background: var(--field); border-radius: var(--radius); padding: clamp(20px, 2.4vw, 32px); }
.doc__circles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; width: 100%; }
.doc__circles img { width: 100%; aspect-ratio: 1; border-radius: 50%; object-fit: cover; background: var(--ink); }
.doc__circles img:nth-child(2), .doc__circles img:nth-child(3) { transform: scale(0.86); }
.doc__aside p { font-weight: 600; }
@media (max-width: 860px) {
  .doc { grid-template-columns: minmax(0, 1fr); }
  .doc__aside { position: static; }
  .doc__circles { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (prefers-reduced-motion: no-preference) {
  .js .doc__in { opacity: 0; animation: load-rise 700ms var(--ease-out) forwards; animation-delay: var(--d, 0ms); }
  .js .doc__circles img.doc__in:nth-child(2), .js .doc__circles img.doc__in:nth-child(3) { animation-name: doc-pop; }
  @keyframes doc-pop { from { opacity: 0; transform: translateY(18px) scale(0.86); } to { opacity: 1; transform: scale(0.86); } }
}
