:root {
  --paper: #f4f2ea;
  --paper-strong: #ebe7dc;
  --ink: #171714;
  --muted: #6f6b62;
  --line: #d6d0c3;
  --red: #a33126;
  --night: #020a06;
  --night-soft: #08150e;
  --acid: #f3f52f;
  --cyan: #47e7dc;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Optima", "Avenir Next", "PingFang SC", "Noto Sans CJK SC", system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
}

a:focus-visible {
  outline: 3px solid var(--red);
  outline-offset: 4px;
}

.site-header,
.featured-shell,
.registry,
.about,
.site-footer {
  width: min(1180px, calc(100% - 40px));
  margin-inline: auto;
}

.site-header {
  min-height: 86px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  border-bottom: 1px solid var(--ink);
}

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  color: var(--ink);
  font-size: 14px;
  font-weight: 750;
  letter-spacing: .28em;
  text-decoration: none;
  text-transform: uppercase;
}

.wordmark-star {
  color: var(--red);
  font-family: Georgia, serif;
  font-size: 18px;
  letter-spacing: 0;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 26px;
}

.site-nav a {
  color: var(--muted);
  font-size: 12px;
  font-weight: 650;
  letter-spacing: .12em;
  text-decoration: none;
}

.site-nav a:hover {
  color: var(--ink);
}

.site-nav .nav-primary {
  padding: 10px 15px;
  border: 1px solid var(--ink);
  color: var(--ink);
}

.featured-shell {
  padding-top: 34px;
}

.featured {
  min-height: 650px;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(360px, .92fr);
  position: relative;
  overflow: hidden;
  border: 1px solid #26392d;
  border-radius: 3px;
  background:
    radial-gradient(circle at 78% 48%, rgba(20, 104, 76, .36), transparent 34%),
    radial-gradient(circle at 12% 90%, rgba(219, 230, 38, .12), transparent 31%),
    linear-gradient(135deg, var(--night) 0%, #06150c 58%, #020704 100%);
  color: #f5f6ee;
  text-decoration: none;
  isolation: isolate;
}

.featured::before,
.featured::after {
  content: "";
  position: absolute;
  z-index: 4;
  pointer-events: none;
}

.featured::before {
  inset: 14px;
  border: 1px solid rgba(243, 245, 47, .22);
}

.featured::after {
  width: 72px;
  height: 72px;
  top: -1px;
  right: -1px;
  border-top: 2px solid var(--acid);
  border-right: 2px solid var(--acid);
}

.featured-grid {
  position: absolute;
  inset: 0;
  z-index: -1;
  opacity: .34;
  background-image:
    linear-gradient(rgba(71, 231, 220, .08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(71, 231, 220, .08) 1px, transparent 1px);
  background-size: 38px 38px;
  mask-image: linear-gradient(90deg, transparent 0%, #000 42%, #000 100%);
}

.featured-copy {
  padding: clamp(56px, 7vw, 96px);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  position: relative;
  z-index: 2;
}

.featured-meta {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  color: #a6aea7;
  font-family: ui-monospace, "SFMono-Regular", Menlo, monospace;
  font-size: 11px;
  letter-spacing: .16em;
  text-transform: uppercase;
}

.live-dot {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: var(--acid);
}

.live-dot::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--acid);
  box-shadow: 0 0 18px rgba(243, 245, 47, .8);
}

.featured-kicker,
.section-kicker {
  margin: 58px 0 0;
  color: var(--cyan);
  font-family: ui-monospace, "SFMono-Regular", Menlo, monospace;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .24em;
  text-transform: uppercase;
}

.featured h1 {
  margin: 12px 0 0;
  font-family: "Helvetica Neue", "PingFang SC", system-ui, sans-serif;
  font-size: clamp(54px, 6.2vw, 92px);
  font-weight: 760;
  letter-spacing: -.065em;
  line-height: .94;
}

.featured h1 span {
  display: block;
  margin-top: 15px;
  color: var(--acid);
  font-size: .28em;
  font-weight: 760;
  letter-spacing: .26em;
}

.featured h2 {
  max-width: 12em;
  margin: 36px 0 0;
  font-family: "Songti SC", "STSong", Georgia, serif;
  font-size: clamp(27px, 3.2vw, 42px);
  font-weight: 500;
  letter-spacing: -.025em;
  line-height: 1.25;
}

.featured-lead {
  max-width: 580px;
  margin: 24px 0 0;
  color: #aab2ab;
  font-size: 16px;
  line-height: 1.9;
}

.featured-tags {
  margin: 28px 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  list-style: none;
}

.featured-tags li {
  padding: 7px 10px;
  border: 1px solid rgba(186, 204, 191, .24);
  color: #cbd2cc;
  font-size: 11px;
  letter-spacing: .06em;
}

.featured-cta {
  min-width: 290px;
  margin-top: 38px;
  padding: 19px 22px;
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  background: var(--acid);
  color: #0c110b;
  font-size: 15px;
  font-weight: 800;
}

.featured-cta b {
  font-size: 21px;
  transition: transform .2s ease;
}

.featured:hover .featured-cta b {
  transform: translate(3px, -3px);
}

.featured-art {
  min-width: 0;
  min-height: 650px;
  display: grid;
  place-items: center;
  position: relative;
  overflow: hidden;
}

.featured-art img {
  width: min(112%, 660px);
  height: auto;
  position: relative;
  z-index: 2;
  filter: drop-shadow(0 30px 50px rgba(0, 0, 0, .58));
  transform: rotate(2deg);
  transition: transform .45s cubic-bezier(.2, .8, .2, 1);
}

.featured:hover .featured-art img {
  transform: translateY(-8px) rotate(1deg) scale(1.02);
}

.orbit {
  position: absolute;
  border: 1px solid rgba(71, 231, 220, .22);
  border-radius: 50%;
}

.orbit-one {
  width: 620px;
  height: 620px;
}

.orbit-two {
  width: 430px;
  height: 430px;
  border-color: rgba(243, 245, 47, .18);
}

.art-caption {
  position: absolute;
  right: 27px;
  bottom: 27px;
  z-index: 3;
  color: rgba(180, 196, 184, .54);
  font-family: ui-monospace, "SFMono-Regular", Menlo, monospace;
  font-size: 9px;
  letter-spacing: .22em;
  line-height: 1.7;
  text-align: right;
}

.featured-note {
  max-width: 820px;
  margin: 22px auto 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.8;
  text-align: center;
}

.featured-sukiri {
  margin-top: 64px;
  border-color: #a9dce2;
  background:
    radial-gradient(circle at 78% 46%, rgba(99, 220, 219, .25), transparent 34%),
    radial-gradient(circle at 12% 88%, rgba(133, 207, 242, .18), transparent 31%),
    linear-gradient(140deg, #f8feff 0%, #e9f8fb 52%, #dff4f4 100%);
  color: #123b48;
}

.featured-sukiri::before {
  border-color: rgba(32, 145, 165, .2);
}

.featured-sukiri::after {
  border-top-color: #2bbdb2;
  border-right-color: #2bbdb2;
}

.featured-sukiri .featured-grid {
  opacity: .5;
  background-image:
    linear-gradient(rgba(29, 139, 163, .08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(29, 139, 163, .08) 1px, transparent 1px);
}

.featured-sukiri .featured-meta {
  color: #638793;
}

.sukiri-status {
  color: #16818e;
}

.featured-sukiri .featured-kicker {
  color: #16879a;
}

.featured-sukiri h1 {
  font-family: "Snell Roundhand", "Apple Chancery", "Bradley Hand", cursive;
  font-weight: 650;
  letter-spacing: -.045em;
}

.featured-sukiri h1 span {
  color: #24989d;
  font-family: "PingFang SC", "Avenir Next", system-ui, sans-serif;
  font-weight: 700;
  letter-spacing: .2em;
}

.featured-sukiri h2 {
  color: #153f4b;
}

.featured-sukiri .featured-lead {
  color: #557985;
}

.featured-sukiri .featured-tags li {
  border-color: rgba(33, 145, 164, .23);
  color: #356b78;
  background: rgba(255, 255, 255, .42);
}

.featured-sukiri .featured-cta {
  background: linear-gradient(135deg, #168ba5, #41c5b5);
  color: #fff;
  box-shadow: 0 14px 34px rgba(30, 145, 160, .2);
}

.sukiri-art {
  isolation: isolate;
}

.sukiri-halo {
  width: min(34vw, 470px);
  aspect-ratio: 1;
  position: absolute;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, .92), rgba(130, 228, 224, .25) 46%, transparent 70%);
  filter: blur(2px);
}

.sukiri-desktop {
  width: min(84%, 510px);
  aspect-ratio: 1.12;
  padding: 14px;
  display: grid;
  grid-template-columns: 1.18fr .82fr;
  grid-template-rows: .88fr 1.12fr;
  gap: 10px;
  position: relative;
  border: 1px solid rgba(24, 116, 137, .22);
  border-radius: 30px;
  background: rgba(255, 255, 255, .57);
  box-shadow:
    0 30px 70px rgba(41, 123, 145, .18),
    inset 0 1px 0 rgba(255, 255, 255, .95);
  backdrop-filter: blur(18px);
  transform: rotate(-2deg);
  transition: transform .45s cubic-bezier(.2, .8, .2, 1);
}

.featured-sukiri:hover .sukiri-desktop {
  transform: translateY(-8px) rotate(-1deg) scale(1.015);
}

.sukiri-window {
  display: block;
  border: 1px solid rgba(21, 116, 136, .18);
  border-radius: 18px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .82);
}

.sukiri-window-one {
  background: linear-gradient(145deg, rgba(123, 218, 238, .78), rgba(62, 158, 190, .52));
}

.sukiri-window-two {
  background: linear-gradient(145deg, rgba(103, 211, 198, .72), rgba(33, 147, 153, .48));
}

.sukiri-window-three {
  background: linear-gradient(145deg, rgba(191, 238, 234, .8), rgba(89, 183, 187, .5));
}

.sukiri-window-four {
  background: linear-gradient(145deg, rgba(121, 204, 229, .72), rgba(45, 137, 170, .52));
}

.sukiri-desktop img {
  width: 114px;
  height: 114px;
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 3;
  border-radius: 27px;
  filter: drop-shadow(0 16px 24px rgba(28, 117, 137, .25));
  transform: translate(-50%, -50%);
}

.work-row h3 a {
  text-decoration: none;
}

.work-row h3 a:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}

.product-line-card {
  margin-top: 42px;
  padding: clamp(28px, 4.2vw, 54px);
  display: grid;
  gap: 30px;
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(93, 28, 24, .5);
  border-radius: 3px;
  background:
    linear-gradient(rgba(255, 255, 255, .045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .045) 1px, transparent 1px),
    #681f1c;
  background-size: 34px 34px, 34px 34px, auto;
  color: #fff8ef;
  text-decoration: none;
}

.product-line-card::after {
  content: "";
  width: 220px;
  height: 220px;
  position: absolute;
  right: -75px;
  bottom: -105px;
  border: 1px solid rgba(255, 225, 210, .34);
  border-radius: 50%;
  box-shadow: 0 0 0 18px rgba(255, 225, 210, .04), 0 0 0 42px rgba(255, 225, 210, .025);
  pointer-events: none;
}

.product-line-meta,
.product-line-copy,
.product-line-cta {
  position: relative;
  z-index: 1;
}

.product-line-meta {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  color: rgba(255, 231, 220, .7);
  font-family: ui-monospace, "SFMono-Regular", Menlo, monospace;
  font-size: 10px;
  letter-spacing: .15em;
  text-transform: uppercase;
}

.product-line-copy {
  display: grid;
  grid-template-columns: minmax(280px, .9fr) minmax(320px, 1.1fr);
  gap: clamp(32px, 7vw, 96px);
  align-items: end;
}

.product-line-kicker {
  margin: 0 0 12px;
  color: #f4b6a2;
  font-family: ui-monospace, "SFMono-Regular", Menlo, monospace;
  font-size: 10px;
  letter-spacing: .17em;
  text-transform: uppercase;
}

.product-line-copy h2 {
  margin: 0;
  font-family: "Helvetica Neue", "PingFang SC", system-ui, sans-serif;
  font-size: clamp(42px, 5.6vw, 72px);
  letter-spacing: -.055em;
  line-height: .98;
}

.product-line-copy h2 span {
  display: block;
  margin-top: 12px;
  color: #f4b6a2;
  font-family: "Songti SC", "STSong", Georgia, serif;
  font-size: .3em;
  font-weight: 500;
  letter-spacing: .16em;
}

.product-line-copy > p {
  max-width: 610px;
  margin: 0;
  color: rgba(255, 238, 229, .76);
  font-size: 14px;
  line-height: 1.9;
}

.product-line-cta {
  width: fit-content;
  display: inline-flex;
  align-items: center;
  gap: 18px;
  color: #fff8ef;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .04em;
}

.product-line-cta b {
  font-size: 18px;
  transition: transform .2s ease;
}

.product-line-card:hover .product-line-cta b {
  transform: translate(3px, -3px);
}

/* Independent software cards — UniPop / Micro */
.product-line-card.hw-dark {
  border-color: #232c3a;
  background:
    radial-gradient(circle, rgba(238, 244, 252, .055) 1px, transparent 1.3px),
    linear-gradient(160deg, #10161f, #05070b 60%);
  background-size: 26px 26px, auto;
  color: #eef4fc;
}

.product-line-card.hw-unipop { --hw-accent: #79b1ff; }
.product-line-card.hw-micro { --hw-accent: #ffa26b; }

.product-line-card.hw-dark::after {
  border-color: color-mix(in srgb, var(--hw-accent) 34%, transparent);
  box-shadow: 0 0 0 18px color-mix(in srgb, var(--hw-accent) 5%, transparent),
    0 0 0 42px color-mix(in srgb, var(--hw-accent) 3%, transparent);
}

.product-line-card.hw-dark .product-line-meta { color: #8a97ab; }
.product-line-card.hw-dark .product-line-kicker { color: var(--hw-accent); }
.product-line-card.hw-dark .product-line-copy h2 span { color: var(--hw-accent); }
.product-line-card.hw-dark .product-line-copy > p { color: #a7b4c6; }
.product-line-card.hw-dark .product-line-cta { color: #eef4fc; }
.product-line-card.hw-dark .product-line-cta b { color: var(--hw-accent); }

.product-line-logo {
  width: 92px;
  height: 92px;
  margin-bottom: 18px;
  display: block;
  filter: drop-shadow(0 14px 28px color-mix(in srgb, var(--hw-accent) 30%, transparent));
}

.registry {
  padding: 130px 0 118px;
}

.registry-heading {
  display: grid;
  grid-template-columns: minmax(300px, 1fr) minmax(280px, 430px);
  gap: 80px;
  align-items: end;
  padding-bottom: 36px;
  border-bottom: 1px solid var(--ink);
}

.registry .section-kicker,
.about .section-kicker {
  margin: 0 0 15px;
  color: var(--red);
}

.registry h2,
.about h2 {
  margin: 0;
  font-family: "Songti SC", "STSong", Georgia, serif;
  font-size: clamp(35px, 5vw, 60px);
  font-weight: 500;
  letter-spacing: -.04em;
  line-height: 1.15;
}

.registry-heading > p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.85;
}

.work-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  column-gap: 46px;
}

.work-row {
  min-height: 118px;
  display: grid;
  grid-template-columns: 82px 1fr auto;
  gap: 18px;
  align-items: center;
  border-bottom: 1px solid var(--line);
}

.work-number {
  color: var(--red);
  font-family: ui-monospace, "SFMono-Regular", Menlo, monospace;
  font-size: 11px;
  letter-spacing: .12em;
}

.work-row h3 {
  margin: 0;
  font-family: "Helvetica Neue", "PingFang SC", system-ui, sans-serif;
  font-size: 20px;
  font-weight: 650;
  letter-spacing: -.025em;
}

.work-row p {
  margin: 7px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.work-status {
  padding: 5px 7px;
  border: 1px solid var(--line);
  color: #918b80;
  font-size: 10px;
  letter-spacing: .08em;
  white-space: nowrap;
}

.about {
  padding: 108px clamp(24px, 7vw, 90px);
  display: grid;
  grid-template-columns: minmax(300px, .9fr) minmax(320px, 1.1fr);
  gap: 90px;
  background: var(--paper-strong);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.about-copy {
  align-self: end;
  display: grid;
  gap: 22px;
}

.about-copy p {
  margin: 0;
  color: var(--muted);
  font-family: "Songti SC", "STSong", Georgia, serif;
  font-size: 17px;
  line-height: 1.95;
}

.about-copy p + p {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 15px;
}

.site-footer {
  min-height: 160px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  color: var(--muted);
  font-size: 12px;
}

.site-footer > div {
  display: flex;
  align-items: center;
  gap: 14px;
}

.site-footer strong {
  color: var(--ink);
  letter-spacing: .16em;
  text-transform: uppercase;
}

.footer-links {
  flex-wrap: wrap;
  justify-content: flex-end;
}

.footer-links a {
  text-decoration-color: var(--line);
  text-underline-offset: 4px;
}

.footer-links a:hover {
  color: var(--ink);
}

@media (max-width: 920px) {
  .featured {
    grid-template-columns: 1fr;
  }

  .featured-art {
    min-height: 480px;
  }

  .featured-art img {
    width: min(78%, 560px);
  }

  .featured-grid {
    mask-image: linear-gradient(180deg, transparent 0%, #000 42%, #000 100%);
  }

  .registry-heading,
  .about,
  .product-line-copy {
    grid-template-columns: 1fr;
    gap: 34px;
  }

  .about-copy {
    max-width: 650px;
  }
}

@media (max-width: 720px) {
  .site-header,
  .featured-shell,
  .registry,
  .about,
  .site-footer {
    width: min(100% - 28px, 1180px);
  }

  .site-header {
    min-height: 76px;
  }

  .site-nav > a:not(.nav-primary) {
    display: none;
  }

  .wordmark {
    font-size: 12px;
    letter-spacing: .2em;
  }

  .site-nav .nav-primary {
    padding: 9px 11px;
    font-size: 10px;
  }

  .featured-shell {
    padding-top: 18px;
  }

  .featured-sukiri {
    margin-top: 42px;
  }

  .sukiri-desktop {
    width: min(88%, 470px);
  }

  .sukiri-desktop img {
    width: 92px;
    height: 92px;
  }

  .featured {
    min-height: 0;
  }

  .featured::before {
    inset: 8px;
  }

  .featured-copy {
    padding: 50px 28px 24px;
  }

  .featured-meta {
    font-size: 9px;
  }

  .featured-kicker {
    margin-top: 42px;
    font-size: 9px;
  }

  .featured h1 {
    font-size: clamp(48px, 16vw, 68px);
  }

  .featured h2 {
    margin-top: 30px;
    font-size: 28px;
  }

  .featured-lead {
    font-size: 14px;
  }

  .featured-cta {
    width: 100%;
    min-width: 0;
    padding: 17px 18px;
  }

  .featured-art {
    min-height: 360px;
  }

  .featured-art img {
    width: min(92%, 460px);
  }

  .orbit-one {
    width: 440px;
    height: 440px;
  }

  .orbit-two {
    width: 300px;
    height: 300px;
  }

  .featured-note {
    text-align: left;
  }

  .product-line-card {
    margin-top: 28px;
    padding: 30px 25px;
    gap: 26px;
  }

  .product-line-meta {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
  }

  .product-line-copy {
    gap: 25px;
  }

  .product-line-copy h2 {
    font-size: 48px;
  }

  .registry {
    padding: 92px 0 84px;
  }

  .registry-heading {
    gap: 24px;
  }

  .work-list {
    grid-template-columns: 1fr;
  }

  .work-row {
    grid-template-columns: 68px 1fr auto;
    gap: 10px;
  }

  .work-row h3 {
    font-size: 17px;
  }

  .work-row p {
    font-size: 12px;
  }

  .about {
    padding: 72px 25px;
  }

  .site-footer {
    min-height: 170px;
    padding: 38px 0;
    align-items: flex-start;
    flex-direction: column;
    justify-content: center;
  }

  .site-footer > div {
    flex-wrap: wrap;
  }

  .footer-links {
    justify-content: flex-start;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .featured-art img,
  .featured-cta b,
  .product-line-cta b {
    transition: none;
  }
}
