/* we wanted. — site styles
   Layout: logo-led header, compact hero, 3-column work grid (featured card spans 2),
   detail pages as a two-column head + gallery + reading column.
   Color comes straight from the logo: four pastel "genre" colors on an off-white ground,
   charcoal for type. Shapes echo the logo's round stroke caps (pill chips, soft radii). */

:root {
  --bg: #EEF0F3;
  --surface: #FFFFFF;
  --ink: #353C43;
  --ink-2: #616A72;
  --ink-3: #8C949B;
  --line: #E2E5E7;
  --line-strong: #B9C0C6;
  --coral: #F9806C;
  --yellow: #F7B753;
  --green: #90CAA4;
  --blue: #8AAADE;
  --charcoal: #353C43;
  --tint-coral: #FDE6E1;
  --tint-yellow: #FDF0D9;
  --tint-green: #E3F2E8;
  --tint-blue: #E3EAF7;
  --tint-charcoal: #E4E6E8;
  --focus: #5F86C9;
  --stage: #2A3036;
  --stage-ink: #F4F5F6;
  --stage-ink-2: #AEB5BC;
  --stage-line: #4A535B;
  --stage-2: #3A4249;

  --font-display: "M PLUS Rounded 1c", "Hiragino Maru Gothic ProN", "Arial Rounded MT Bold", sans-serif;
  --font-body: "Zen Kaku Gothic New", "Hiragino Sans", "Yu Gothic", "Meiryo", sans-serif;
  --font-mono: "DM Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;

  --step--1: 0.8125rem;
  --step-0: 0.9375rem;
  --step-1: 1.125rem;
  --step-2: 1.5rem;
  --step-3: clamp(1.75rem, 1.2rem + 2.2vw, 2.5rem);
  --step-4: clamp(2.1rem, 1.3rem + 3.4vw, 3.4rem);

  --radius-s: 10px;
  --radius-m: 16px;
  --radius-l: 24px;
  --max: 1160px;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #1D2125;
    --surface: #262B30;
    --ink: #ECEEF0;
    --ink-2: #AEB5BB;
    --ink-3: #848C93;
    --line: #363C42;
  --line-strong: #5A636B;
    --line-strong: #5A636B;
    --charcoal: #C9CED3;
    --tint-coral: #3F2C2A;
    --tint-yellow: #3D3426;
    --tint-green: #283A31;
    --tint-blue: #2A3344;
    --tint-charcoal: #30363C;
    --focus: #9BB8EA;
    --stage: #121518;
    --stage-line: #3A4148;
    --stage-2: #24292E;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #1D2125;
  --surface: #262B30;
  --ink: #ECEEF0;
  --ink-2: #AEB5BB;
  --ink-3: #848C93;
  --line: #363C42;
  --line-strong: #5A636B;
  --charcoal: #C9CED3;
  --tint-coral: #3F2C2A;
  --tint-yellow: #3D3426;
  --tint-green: #283A31;
  --tint-blue: #2A3344;
  --tint-charcoal: #30363C;
  --focus: #9BB8EA;
  --stage: #121518;
  --stage-line: #3A4148;
  --stage-2: #24292E;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: var(--step-0);
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
}
body::before {
  content: "";
  position: fixed;
  inset: 0 0 auto;
  height: env(safe-area-inset-top, 0px);
  z-index: 10;
  background: var(--bg);
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--font-display); line-height: 1.3; text-wrap: balance; margin: 0; }
p { margin: 0; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 6px; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.wrap {
  width: 100%;
  max-width: calc(var(--max) + 2 * 32px);
  margin-inline: auto;
  padding-left: max(16px, env(safe-area-inset-left, 0px));
  padding-right: max(16px, env(safe-area-inset-right, 0px));
}
@media (min-width: 720px) {
  .wrap {
    padding-left: max(32px, env(safe-area-inset-left, 0px));
    padding-right: max(32px, env(safe-area-inset-right, 0px));
  }
}

/* ---------- Logo ---------- */
.logo svg { display: block; height: 100%; width: auto; }
.logo .ink { fill: var(--ink); }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: env(safe-area-inset-top, 0px);
  z-index: 20;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: saturate(1.4) blur(10px);
  -webkit-backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s;
}
.site-header.is-scrolled { border-bottom-color: var(--line); }
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-block: 14px;
}
.site-header .logo { height: 26px; text-decoration: none; }
.site-nav { display: flex; gap: 4px; flex-wrap: wrap; justify-content: flex-end; }
.site-nav a {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--step--1);
  text-decoration: none;
  padding: 6px 12px;
  border-radius: 999px;
  color: var(--ink-2);
}
.site-nav a:hover { color: var(--ink); background: var(--surface); }
.site-nav a { border: 2px solid transparent; transition: border-color .2s, color .2s; }
.site-nav a:hover { background: transparent; border-color: var(--ink); }
.site-nav a[aria-current="page"] { color: var(--bg); background: var(--ink); border-color: var(--ink); box-shadow: none; }
@media (max-width: 520px) {
  .site-header .logo { height: 20px; }
  .site-nav a { padding: 6px 9px; }
}

/* ---------- Footer ---------- */
.site-footer { margin-top: 96px; border-top: 2px solid var(--ink); }
.is-home .site-footer { margin-top: 0; }
.site-footer .wrap {
  display: grid;
  gap: 20px;
  grid-template-columns: 1fr auto;
  align-items: end;
  padding-block: 36px 44px;
}
.site-footer .logo { height: 20px; }
.footer-nav { display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: var(--step--1); }
.footer-nav a { color: var(--ink-2); text-decoration: none; }
.footer-nav a:hover { color: var(--ink); text-decoration: underline; }
.footer-meta { color: var(--ink-3); font-size: var(--step--1); font-family: var(--font-mono); }
@media (max-width: 640px) { .site-footer .wrap { grid-template-columns: 1fr; } }

/* ---------- Shared bits ---------- */
.dot { width: 10px; height: 10px; border-radius: 50%; display: inline-block; flex: none; background: var(--c, var(--ink)); }
.g-coral { --c: var(--coral); --t: var(--tint-coral); }
.g-yellow { --c: var(--yellow); --t: var(--tint-yellow); }
.g-green { --c: var(--green); --t: var(--tint-green); }
.g-blue { --c: var(--blue); --t: var(--tint-blue); }
.g-charcoal { --c: #D3D8DD; --t: var(--tint-charcoal); }

.tag {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: var(--step--1); font-weight: 500; line-height: 1;
  padding: 6px 10px 6px 8px; border-radius: 999px;
  background: var(--t, var(--surface)); color: var(--ink);
}
.status {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--font-mono); font-size: 0.75rem; letter-spacing: .04em; line-height: 1;
  padding: 6px 10px; border-radius: 999px;
  border: 1px solid var(--line); color: var(--ink-2); background: var(--surface);
}
.status::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--ink-3); }
.status.is-live { color: var(--ink); }
.status.is-live::before { background: #3FA866; box-shadow: 0 0 0 3px color-mix(in srgb, #3FA866 25%, transparent); }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: var(--font-display); font-weight: 700; font-size: var(--step-0);
  padding: 12px 22px; border-radius: 999px; border: 0; cursor: pointer;
  background: var(--ink); color: var(--bg); text-decoration: none;
  transition: transform .15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn svg { width: 16px; height: 16px; }
.btn.is-ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--line); }

.eyebrow {
  font-family: var(--font-mono); font-size: 0.75rem; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3);
}
.section-title { font-size: var(--step-2); font-weight: 800; }

/* Screenshot placeholder: a tiny browser window in the project's genre color */
.shot {
  position: relative; width: 100%; max-width: 100%;
  aspect-ratio: 16 / 10; border-radius: var(--radius-s);
  overflow: hidden; background: var(--t); isolation: isolate;
}
.shot img { width: 100%; height: 100%; object-fit: cover; object-position: center; }
.shot-ph { position: absolute; inset: 0; display: flex; flex-direction: column; }
.shot-ph .bar {
  display: flex; align-items: center; gap: 6px; padding: 8px 10px;
  background: color-mix(in srgb, var(--surface) 70%, var(--t));
}
.shot-ph .bar i { width: 7px; height: 7px; border-radius: 50%; background: var(--c); opacity: .7; }
.shot-ph .bar span {
  margin-left: 6px; font-family: var(--font-mono); font-size: 0.6875rem; color: var(--ink-3);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0;
}
.shot-ph .body { flex: 1; display: grid; place-items: center; text-align: center; padding: 12px; gap: 6px; align-content: center; }
.shot-ph .name { font-family: var(--font-display); font-weight: 800; font-size: clamp(1.1rem, 3.2vw, 1.7rem); color: var(--ink); line-height: 1.2; }
.shot-ph .note { font-size: 0.6875rem; color: var(--ink-3); letter-spacing: .04em; }
.shot-ph .blob { position: absolute; z-index: -1; border-radius: 999px; background: var(--c); opacity: .35; }

/* ---------- Home ---------- */
/* Hero: the logo itself, large; letters settle in once on load (the page's only orchestrated motion). */
.hero { padding-block: clamp(40px, 7vw, 96px) clamp(36px, 6vw, 72px); display: grid; gap: clamp(22px, 3.5vw, 40px); }
.hero-logo { width: 80%; max-width: 100%; margin-inline: auto; }
.hero-logo svg { display: block; width: 100%; height: auto; overflow: visible; }
.hero-logo .ink { fill: var(--ink); }
.hero-logo path {
  transform-box: fill-box; transform-origin: 50% 100%;
  animation: settle .8s cubic-bezier(.2, 1.3, .4, 1) both;
  animation-delay: calc(var(--i) * 55ms + 100ms);
}
@keyframes settle { 0% { transform: translateY(-28%); } 100% { transform: none; } }
.hero-intro { display: flex; justify-content: center; text-align: center; }
.hero-intro p { font-size: var(--step-0); line-height: 1.8; color: var(--ink-2); letter-spacing: .04em; }
@media (min-width: 560px) { .hero-intro p { white-space: nowrap; } }

/* Pill label used above section titles */
.pill-label {
  display: inline-flex; align-items: center; gap: 6px; width: fit-content;
  font-family: var(--font-display); font-weight: 700; font-size: 0.75rem; letter-spacing: .04em; line-height: 1;
  padding: 7px 12px; border-radius: 999px; background: var(--c, var(--ink)); color: #23292E;
}

.btn-pill {
  display: inline-flex; align-items: center; gap: 10px; text-decoration: none;
  font-family: var(--font-display); font-weight: 700; font-size: var(--step-0);
  padding: 12px 20px 12px 22px; border-radius: 999px; background: var(--ink); color: var(--bg);
  transition: transform .2s ease;
}
.btn-pill:hover { transform: translateY(-2px); }
.btn-pill svg { width: 14px; height: 14px; }

/* Home header: small logo appears once the hero logo scrolls away */
.is-home .site-header .logo { transition: opacity .25s, transform .25s; }
.is-home .site-header:not(.is-scrolled) .logo { opacity: 0; transform: translateY(-6px); pointer-events: none; }

/* Works stage: dark, rounded-top band; solid color cards sit on it */
.works-band {
  background: var(--stage); color: var(--stage-ink);
  padding-block: clamp(28px, 4vw, 48px) clamp(64px, 9vw, 120px);
  border-radius: clamp(28px, 4vw, 48px) clamp(28px, 4vw, 48px) 0 0;
}
.works-head .titles { display: grid; gap: 14px; }
.works-title {
  font-family: var(--font-display); font-weight: 800; line-height: .9; letter-spacing: -0.03em;
  font-size: clamp(3.4rem, 2rem + 7vw, 7.5rem); color: var(--stage-ink);
  display: flex; align-items: flex-end; gap: .14em;
}
.works-title .n {
  color: var(--stage-ink-2); font-family: var(--font-mono); font-weight: 400; font-size: 1rem; letter-spacing: .1em; line-height: 1; padding-bottom: .7em;
}
/* Filters: three tag groups (TYPE / GENRE / PRICE), one choice each, combined */
.works-head { display: grid; gap: clamp(22px, 3vw, 32px); margin-bottom: clamp(28px, 4vw, 44px); }
.filters { display: flex; flex-wrap: wrap; gap: 10px 16px; align-items: center; justify-content: space-between; padding: 12px 14px 12px 22px; border-radius: 999px; background: var(--stage-2); }
.frow { display: flex; flex-wrap: wrap; gap: 8px 18px; align-items: center; }
.flabel { font-family: var(--font-mono); font-size: 0.75rem; letter-spacing: .14em; color: var(--stage-ink); display: grid; gap: 1px; line-height: 1.3; }
.flabel small { font-family: var(--font-body); font-size: 0.6875rem; letter-spacing: .02em; color: var(--stage-ink-2); }
@media (max-width: 560px) { .filters { border-radius: 24px; padding: 14px 16px; } }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip {
  display: inline-flex; align-items: center; gap: 7px;
  font-family: var(--font-mono); font-weight: 500; font-size: 0.8125rem; letter-spacing: .08em;
  padding: 8px 13px; border-radius: 999px; cursor: pointer;
  border: 0; background: transparent; color: var(--stage-ink);
  box-shadow: inset 0 0 0 1.5px var(--stage-line);
  transition: background .2s, color .2s, box-shadow .2s;
}
.chip:hover:not(:disabled) { box-shadow: inset 0 0 0 1.5px var(--stage-ink-2); }
.chip:disabled { opacity: .35; cursor: default; }
.chip .n { font-weight: 400; font-size: 0.6875rem; opacity: .6; font-variant-numeric: tabular-nums; letter-spacing: 0; }
.chip[aria-pressed="true"] { background: var(--stage-ink); color: var(--stage); box-shadow: none; }
.chip.k-type[aria-pressed="true"]:not(.is-all) { background: var(--c); color: #23292E; }
.chip.k-type:not(.is-all)::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--c); }
.chip.k-type[aria-pressed="true"]:not(.is-all)::before { background: #23292E; }
.reset {
  margin-left: auto; font: inherit; font-size: var(--step--1); color: var(--stage-ink-2); background: none; border: 0; cursor: pointer;
  text-decoration: underline; text-underline-offset: 3px; padding: 2px 4px;
}
.reset:hover { color: var(--stage-ink); }

/* Cards: three across on desktop; app-store style listing with a framed screenshot on top */
.grid { display: grid; gap: clamp(16px, 2vw, 24px); grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: stretch; }
@media (max-width: 1020px) { .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .grid { grid-template-columns: minmax(0, 1fr); } }

.card {
  display: flex; flex-direction: column; min-width: 0;
  background: var(--surface); color: var(--ink);
  border: 6px solid var(--c); border-radius: 30px; padding: 8px 8px 20px;
  transition: transform .3s cubic-bezier(.2, 1, .3, 1);
}
.card:hover { transform: translateY(-4px); }
.cover { display: block; position: relative; }
.cover .shot { border-radius: 20px; }
.soon {
  position: absolute; top: 12px; right: 12px; z-index: 2;
  font-family: var(--font-mono); font-size: 0.6875rem; letter-spacing: .12em; line-height: 1;
  padding: 6px 9px; border-radius: 999px; background: #23292E; color: #FFFFFF;
}
.card-head { display: flex; gap: 14px; align-items: flex-end; padding-inline: 10px; position: relative; z-index: 2; }
.card-head .appicon { margin-top: -34px; }
.names { min-width: 0; padding-top: 10px; }
.card h3 { font-size: var(--step-1); font-weight: 800; line-height: 1.25; letter-spacing: -0.005em; }
.card h3 a { text-decoration: none; }
.card h3 a::after { content: ""; position: absolute; inset: 0; } /* whole head clickable */
.card-head { isolation: isolate; }
.names p { font-size: 0.75rem; color: var(--ink-3); margin-top: 2px; }

/* iPhone-style icon: continuous-corner square */
.appicon {
  flex: none; width: 72px; aspect-ratio: 1; border-radius: 22.5%; overflow: hidden; display: grid; place-items: center;
  background: var(--surface); box-shadow: 0 0 0 4px var(--surface), 0 6px 14px -6px rgba(20, 24, 28, .45);
}
.appicon img { width: 100%; height: 100%; object-fit: cover; }
.appicon.is-ph { background: linear-gradient(150deg, color-mix(in srgb, #FFFFFF 22%, var(--c)), var(--c) 55%, color-mix(in srgb, #23292E 14%, var(--c))); }
.appicon.is-ph b { font-family: var(--font-display); font-weight: 800; font-size: 2.1rem; line-height: 1; color: #FFFFFF; text-shadow: 0 1px 0 rgba(0, 0, 0, .08); }
.appicon.is-ph.g-yellow b, .appicon.is-ph.g-charcoal b { color: #23292E; text-shadow: none; }

.tags { list-style: none; margin: 14px 0 0; padding: 0 10px; display: flex; flex-wrap: wrap; gap: 6px; }
.tags li {
  font-family: var(--font-mono); font-size: 0.6875rem; letter-spacing: .1em; line-height: 1;
  padding: 6px 9px; border-radius: 999px;
}
.tags .t-type { background: var(--c); color: #23292E; }
.tags .t-genre { background: var(--ink); color: var(--surface); }
.tags .t-price { box-shadow: inset 0 0 0 1.5px var(--line-strong); color: var(--ink-2); }
.desc { padding: 12px 10px 0; font-size: var(--step--1); line-height: 1.85; color: var(--ink-2); }
.actions { margin-top: auto; padding: 18px 10px 0; display: flex; flex-wrap: wrap; gap: 8px 22px; justify-content: center; }
.act {
  font-family: var(--font-mono); font-size: 0.75rem; letter-spacing: .1em; font-weight: 500; text-decoration: none;
  display: inline-flex; align-items: center; gap: 6px; padding-block: 4px; border-bottom: 1.5px solid currentColor;
}
.act:hover { color: var(--ink-2); }
.act svg { width: 11px; height: 11px; }
.empty { padding: 48px 20px; text-align: center; color: var(--stage-ink-2); border: 2px dashed var(--stage-line); border-radius: 30px; grid-column: 1 / -1; }

/* ---------- Work detail ---------- */
/* Head sits on a full-bleed band in the project's genre color; the main screenshot overlaps its lower edge. */
.work-band { background: var(--c); color: #23292E; padding-bottom: clamp(120px, 16vw, 200px); position: relative; border-radius: 0 0 clamp(28px, 4vw, 48px) clamp(28px, 4vw, 48px); }
.work-band .wrap { position: relative; z-index: 1; }

.crumbs { display: flex; gap: 8px; align-items: center; padding-top: 28px; font-size: var(--step--1); flex-wrap: wrap; color: #23292E; }
.crumbs a { color: #23292E; text-decoration: none; font-weight: 700; }
.crumbs a:hover { text-decoration: underline; }
.crumbs span { opacity: .75; }

.work-head { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 40px; padding-block: 28px 0; align-items: start; }
@media (max-width: 900px) { .work-head { grid-template-columns: minmax(0, 1fr); gap: 28px; } }
.work-head .meta { display: flex; gap: 8px; flex-wrap: wrap; }
.work-head .tag { background: #23292E; color: #FFFFFF; justify-content: center; padding: 7px 14px; font-family: var(--font-mono); letter-spacing: .1em; font-size: 0.75rem; }
.work-head .status { background: transparent; border: 2px solid #23292E; color: #23292E; }
.work-head h1 { font-size: clamp(3rem, 1.6rem + 6.4vw, 6.6rem); font-weight: 800; margin-top: 18px; line-height: .95; letter-spacing: -0.02em; overflow-wrap: anywhere; }
.work-head .reading { font-size: var(--step--1); margin-top: 14px; font-weight: 500; opacity: .8; }
.work-head .tagline { font-family: var(--font-display); font-weight: 800; font-size: var(--step-2); margin-top: 18px; }
.work-head .summary { margin-top: 14px; max-width: 36em; line-height: 1.95; }

.info { background: #FFFFFF; color: #23292E; border-radius: 26px; border: 4px solid #23292E; padding: 22px; display: grid; gap: 18px; box-shadow: 10px 10px 0 0 #23292E; }
.info .btn { width: 100%; background: #23292E; color: #FFFFFF; }
.info .btn:hover { transform: translateY(-2px); }
.info dl { margin: 0; display: grid; gap: 12px; }
.info dl > div { display: grid; grid-template-columns: 5.5em minmax(0, 1fr); gap: 10px; font-size: var(--step--1); }
.info dt { color: #6B737A; }
.info dd { margin: 0; min-width: 0; overflow-wrap: anywhere; }
.info .url { font-family: var(--font-mono); font-size: 0.8125rem; color: #23292E; }
.sns { display: flex; gap: 8px; flex-wrap: wrap; }
.sns a {
  width: 42px; height: 42px; display: grid; place-items: center; border-radius: 50%;
  background: #FFFFFF; color: #23292E; border: 2px solid #23292E;
  transition: background .15s, color .15s, transform .25s cubic-bezier(.2, 1.6, .4, 1);
}
.sns a:hover { background: #23292E; color: #FFFFFF; }
.sns svg { width: 17px; height: 17px; fill: currentColor; }
.info .pending { font-size: var(--step--1); color: #6B737A; }

.gallery { display: grid; gap: clamp(20px, 3vw, 36px); grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: calc(-1 * clamp(80px, 12vw, 150px)); position: relative; z-index: 2; }
.gallery figure { margin: 0; display: grid; gap: 10px; min-width: 0; }
.gallery .frame { background: #23292E; border-radius: 28px; padding: 12px; }
.gallery .shot { border-radius: 16px; }
.gallery figure:first-child { grid-column: 1 / -1; }
.gallery figure:first-child .frame { padding: 16px; border-radius: 34px; background: #23292E; }
.gallery figure:first-child .shot { aspect-ratio: 16 / 8; border-radius: 20px; }
.gallery figcaption { font-size: var(--step--1); color: var(--ink-3); padding-inline: 8px; }
@media (max-width: 640px) { .gallery { grid-template-columns: minmax(0, 1fr); } .gallery figure:first-child .shot { aspect-ratio: 16 / 10; } }

.work-body { display: grid; gap: 22px; margin-top: clamp(64px, 9vw, 112px); }
.work-body > header { display: flex; flex-wrap: wrap; gap: 12px 24px; align-items: flex-end; justify-content: space-between; }
.work-body > header > div { display: grid; gap: 12px; }
.work-body .section-title { font-size: clamp(1.5rem, 1.1rem + 1.4vw, 2.2rem); font-weight: 800; letter-spacing: -0.01em; line-height: 1.2; }
.work-body .pill-label { color: #FFFFFF; }
.intent {
  background: var(--stage); color: var(--stage-ink); border-radius: clamp(28px, 4vw, 44px);
  padding: clamp(28px, 5vw, 64px); display: grid; gap: clamp(22px, 3vw, 36px);
}
.intent .lead { font-family: var(--font-display); font-weight: 800; font-size: clamp(1.5rem, 1rem + 2.2vw, 2.6rem); line-height: 1.45; letter-spacing: -0.01em; max-width: 24em; text-wrap: balance; }
.intent .lead em { font-style: normal; color: var(--c); }
.intent .cols { columns: 2; column-gap: 40px; color: var(--stage-ink-2); }
.intent .cols p { line-height: 1.95; margin: 0 0 1.1em; }
.intent .cols p:last-child { margin-bottom: 0; }
@media (max-width: 760px) { .intent .cols { columns: 1; } }
.intent .note-box { background: transparent; border-color: var(--stage-line); color: var(--stage-ink-2); max-width: none; }
@media (min-width: 1100px) { .intent .note-box { white-space: nowrap; } }
.prose { max-width: 40em; display: grid; gap: 1.1em; }
.prose p { line-height: 1.95; }

.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; counter-reset: step; }
.steps li {
  counter-increment: step; display: grid; grid-template-columns: 3.2em minmax(0, 1.1fr) minmax(0, 1fr); gap: 8px 24px; align-items: center;
  padding: clamp(18px, 2.4vw, 26px) clamp(20px, 3vw, 34px); border-radius: 26px; background: var(--sc); color: #23292E;
}
.steps li:nth-child(4n+1) { --sc: var(--coral); }
.steps li:nth-child(4n+2) { --sc: var(--yellow); }
.steps li:nth-child(4n+3) { --sc: var(--green); }
.steps li:nth-child(4n+4) { --sc: var(--blue); }
.steps li::before { content: counter(step, decimal-leading-zero); font-family: var(--font-mono); font-weight: 500; font-size: var(--step--1); }
.steps h3 { font-size: clamp(1.25rem, 1rem + 1.1vw, 1.9rem); font-weight: 800; letter-spacing: -0.01em; }
.steps p { font-size: var(--step--1); line-height: 1.8; }
@media (max-width: 760px) { .steps li { grid-template-columns: 2.4em minmax(0, 1fr); } .steps li p { grid-column: 2; } }

.stack { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; }
.stack li { list-style: none; font-family: var(--font-mono); font-size: 0.8125rem; padding: 6px 12px; border-radius: 999px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); }

.note-box { font-size: var(--step--1); color: var(--ink-2); background: var(--surface); border: 2px dashed var(--line); border-radius: 16px; padding: 14px 18px; max-width: 46em; }

.pager { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: clamp(80px, 10vw, 120px); }
.pager a {
  display: grid; gap: 6px; padding: 22px 26px; border-radius: 26px; background: var(--c); color: #23292E; text-decoration: none; min-width: 0;
  transition: transform .25s ease;
}
.pager a:hover { transform: translateY(-3px); }
.pager a.next { text-align: right; }
.pager span { font-size: 0.75rem; opacity: .75; font-family: var(--font-mono); letter-spacing: .1em; }
.pager b { font-family: var(--font-display); font-size: var(--step-2); display: inline-flex; align-items: center; gap: 10px; }
.pager a.next b { justify-content: flex-end; }
@media (max-width: 560px) { .pager { grid-template-columns: 1fr; } .pager a.next { text-align: left; } .pager a.next b { justify-content: flex-start; } }

/* ---------- Plain pages ---------- */
.page-head { padding-block: 56px 32px; display: grid; gap: 14px; }
.page-head h1 { font-size: var(--step-4); font-weight: 800; }
.page-head p { color: var(--ink-2); max-width: 36em; }
.doc { max-width: 44em; display: grid; gap: 40px; }
.doc section { display: grid; gap: 12px; }
.doc h2 { font-size: var(--step-1); font-weight: 800; }
.doc p, .doc li { color: var(--ink-2); line-height: 1.95; }
.doc ul { margin: 0; padding-left: 1.3em; display: grid; gap: 4px; }
.doc .date { font-family: var(--font-mono); font-size: var(--step--1); color: var(--ink-3); }

.palette { display: flex; gap: 10px; flex-wrap: wrap; }
.palette span { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px 8px 10px; border-radius: 999px; background: var(--t); font-size: var(--step--1); }

/* ---------- Form ---------- */
.form { max-width: 40em; display: grid; gap: 22px; }
.field { display: grid; gap: 8px; }
.field label, .field legend { font-weight: 700; font-size: var(--step--1); padding: 0; }
.field .req { font-family: var(--font-mono); font-weight: 400; font-size: 0.6875rem; color: var(--coral); margin-left: 6px; letter-spacing: .06em; }
.field .hint { font-size: 0.75rem; color: var(--ink-3); }
fieldset.field { border: 0; margin: 0; padding: 0; }
.input, .select, .textarea {
  width: 100%; font: inherit; color: var(--ink); background: var(--surface);
  border: 0; box-shadow: inset 0 0 0 1.5px var(--line); border-radius: var(--radius-s);
  padding: 12px 14px; transition: box-shadow .15s;
}
.input:focus, .select:focus, .textarea:focus { outline: none; box-shadow: inset 0 0 0 2px var(--focus); }
.textarea { min-height: 180px; resize: vertical; line-height: 1.8; }
.radios { display: flex; flex-wrap: wrap; gap: 8px; }
.radios label { font-weight: 500; display: inline-flex; gap: 8px; align-items: center; padding: 8px 14px; border-radius: 999px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); cursor: pointer; font-size: var(--step--1); }
.radios label:has(input:checked) { box-shadow: inset 0 0 0 1.5px var(--ink); }
.radios input { accent-color: var(--ink); margin: 0; }
.agree { display: flex; gap: 10px; align-items: flex-start; font-size: var(--step--1); }
.agree input { margin-top: 6px; accent-color: var(--ink); }
.form-msg { font-size: var(--step--1); padding: 14px 16px; border-radius: var(--radius-s); background: var(--tint-yellow); }
.form-msg.is-error { background: var(--tint-coral); }
.field.has-error .input, .field.has-error .textarea { box-shadow: inset 0 0 0 2px var(--coral); }
.field .err { font-size: 0.75rem; color: var(--ink); display: none; }
.field.has-error .err { display: block; }
.field.has-error .err::before { content: "● "; color: var(--coral); }

/* 404 */
.lost { padding-block: 96px 40px; display: grid; gap: 18px; justify-items: start; }
.lost .code { font-family: var(--font-display); font-weight: 800; font-size: clamp(4rem, 14vw, 8rem); line-height: 1; display: flex; gap: .06em; }
.lost .code span:nth-child(1) { color: var(--coral); }
.lost .code span:nth-child(2) { color: var(--yellow); }
.lost .code span:nth-child(3) { color: var(--green); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

/* Charcoal genre needs a light stroke on the dark stage */
.palette .g-charcoal .dot { background: var(--ink); }

/* Top-page cards without screenshots: the app icon leads */
.card.no-cover { position: relative; padding: 26px 18px 22px; }
.card.no-cover .card-head { padding-inline: 0; gap: 18px; align-items: center; }
.card.no-cover .card-head .appicon { margin-top: 0; width: 92px; box-shadow: 0 8px 18px -8px rgba(20, 24, 28, .45), 0 0 0 1px var(--line); }
.card.no-cover .names { padding-top: 0; }
.card.no-cover h3 { font-size: var(--step-2); }
.card.no-cover .soon { top: 16px; right: 16px; }
.card.no-cover .tags, .card.no-cover .desc, .card.no-cover .actions { padding-inline: 0; }
.card.no-cover .tags { margin-top: 20px; }
.card.no-cover:has(.soon) .names { padding-top: 18px; }

/* Detail: return link above the footer */
.work-cta { display: flex; justify-content: center; margin-top: clamp(48px, 6vw, 72px); }
.work-cta .btn { padding: 16px 32px; font-size: var(--step-0); }
.work-cta + .back-home { margin-top: clamp(28px, 3.5vw, 40px); }
.back-home { display: flex; justify-content: center; margin-top: clamp(72px, 9vw, 112px); }
.back-home .btn-pill { font-size: var(--step--1); padding: 11px 20px; background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--line-strong); }
.back-home .btn-pill:hover { background: var(--ink); color: var(--bg); box-shadow: none; }

/* Back-to-top button */
.to-top {
  position: fixed; z-index: 30;
  right: calc(20px + env(safe-area-inset-right, 0px)); bottom: calc(20px + env(safe-area-inset-bottom, 0px));
  width: 52px; height: 52px; border-radius: 50%; border: 0; cursor: pointer;
  display: grid; place-items: center; background: var(--ink); color: var(--bg);
  box-shadow: 0 10px 24px -10px rgba(20, 24, 28, .6);
  opacity: 0; transform: translateY(12px); pointer-events: none;
  transition: opacity .25s ease, transform .25s ease;
}
.to-top.is-on { opacity: 1; transform: none; pointer-events: auto; }
.to-top svg { width: 22px; height: 22px; }
.to-top:hover { transform: translateY(-2px); }
