/* =========================================================
   綝雨昕然 · LynAI
   Static site stylesheet. No external dependencies.
   ========================================================= */

:root {
  --night: #071625;
  --night-2: #0b2038;
  --night-3: #102b49;
  --cream: #f4eddf;
  --paper: #fbf7ee;
  --amber: #e7b45a;
  --amber-soft: #f3cf8a;
  --mist: #9fb3c8;
  --ink: #141820;
  --muted: #5d6673;
  --line: rgba(20, 24, 32, 0.13);
  --line-light: rgba(244, 237, 223, 0.16);
  --serif: "Noto Serif SC", "Source Han Serif SC", "Songti SC", STSong,
    "SimSun", serif;
  --sans: "Inter", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei",
    system-ui, sans-serif;
  --wrap: 1160px;
  --header-h: 76px;
  --radius: 18px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
}

::selection {
  background: var(--amber);
  color: var(--night);
}

:focus-visible {
  outline: 2px solid var(--amber);
  outline-offset: 4px;
}

.wrap {
  width: min(var(--wrap), calc(100% - 48px));
  margin-inline: auto;
}

.skip-link {
  position: fixed;
  left: 16px;
  top: -100px;
  z-index: 100;
  background: var(--amber);
  color: var(--night);
  padding: 10px 16px;
  border-radius: 999px;
  font-size: 14px;
}

.skip-link:focus {
  top: 16px;
}

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

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  height: var(--header-h);
  display: flex;
  align-items: center;
  color: var(--cream);
  transition: background 0.35s var(--ease), box-shadow 0.35s var(--ease);
}

.site-header.is-scrolled {
  background: rgba(7, 22, 37, 0.9);
  box-shadow: 0 1px 0 rgba(244, 237, 223, 0.1);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.brand-mark {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  color: var(--amber);
  font-size: 22px;
  line-height: 1;
  transform: translateY(-1px);
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.05;
}

.brand-studio {
  font-family: var(--serif);
  font-size: 17px;
  letter-spacing: 0.14em;
}

.brand-product {
  margin-top: 5px;
  font-size: 10px;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--mist);
}

.nav {
  display: flex;
  align-items: center;
  gap: 28px;
  font-size: 14px;
  letter-spacing: 0.03em;
}

.nav a {
  position: relative;
  color: rgba(244, 237, 223, 0.82);
  transition: color 0.2s ease;
}

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

.nav a:not(.nav-cta)::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -6px;
  height: 1px;
  background: var(--amber);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s var(--ease);
}

.nav a:not(.nav-cta):hover::after {
  transform: scaleX(1);
}

.nav-cta {
  padding: 9px 16px;
  border: 1px solid rgba(244, 237, 223, 0.32);
  border-radius: 999px;
  color: var(--cream) !important;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.nav-cta:hover {
  background: var(--amber);
  border-color: var(--amber);
  color: var(--night) !important;
}

.nav-toggle {
  display: none;
  width: 40px;
  height: 40px;
  border: 1px solid rgba(244, 237, 223, 0.28);
  border-radius: 50%;
  background: transparent;
  color: var(--cream);
  cursor: pointer;
}

.nav-toggle span,
.nav-toggle span::before,
.nav-toggle span::after {
  display: block;
  width: 16px;
  height: 1px;
  background: currentColor;
  margin-inline: auto;
  position: relative;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.nav-toggle span::before,
.nav-toggle span::after {
  content: "";
  position: absolute;
  left: 0;
}

.nav-toggle span::before {
  top: -5px;
}

.nav-toggle span::after {
  top: 5px;
}

.nav-open .nav-toggle span {
  background: transparent;
}

.nav-open .nav-toggle span::before {
  transform: translateY(5px) rotate(45deg);
}

.nav-open .nav-toggle span::after {
  transform: translateY(-5px) rotate(-45deg);
}

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

.hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(900px 600px at 78% 18%, rgba(35, 78, 122, 0.45), transparent 62%),
    radial-gradient(700px 500px at 12% 80%, rgba(231, 180, 90, 0.09), transparent 60%),
    linear-gradient(180deg, #061321 0%, var(--night) 52%, #0a1d33 100%);
  color: var(--cream);
  padding: calc(var(--header-h) + 78px) 0 100px;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.55;
  background-image:
    radial-gradient(1px 1px at 14% 22%, rgba(255, 255, 255, 0.8), transparent 100%),
    radial-gradient(1px 1px at 72% 12%, rgba(255, 255, 255, 0.55), transparent 100%),
    radial-gradient(1.5px 1.5px at 88% 42%, rgba(231, 180, 90, 0.65), transparent 100%),
    radial-gradient(1px 1px at 42% 68%, rgba(255, 255, 255, 0.45), transparent 100%),
    radial-gradient(1px 1px at 26% 52%, rgba(255, 255, 255, 0.5), transparent 100%),
    radial-gradient(1.5px 1.5px at 62% 82%, rgba(231, 180, 90, 0.42), transparent 100%);
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.15;
  background-image: repeating-linear-gradient(
    112deg,
    transparent 0,
    transparent 26px,
    rgba(244, 237, 223, 0.26) 27px,
    transparent 28px
  );
  mask-image: linear-gradient(180deg, black, transparent 72%);
  -webkit-mask-image: linear-gradient(180deg, black, transparent 72%);
}

.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(360px, 0.92fr);
  gap: 68px;
  align-items: center;
}

.eyebrow {
  margin: 0 0 18px;
  font-size: 11px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--amber-soft);
}

.hero h1 {
  margin: 0;
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(54px, 7.4vw, 94px);
  line-height: 1.04;
  letter-spacing: -0.02em;
}

.hero h1 em {
  font-style: normal;
  color: var(--amber);
}

.lead {
  max-width: 510px;
  margin: 28px 0 0;
  color: rgba(244, 237, 223, 0.72);
  font-size: 16px;
  line-height: 1.95;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 22px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-size: 14px;
  letter-spacing: 0.03em;
  transition: transform 0.25s var(--ease), background 0.25s ease,
    color 0.25s ease, border-color 0.25s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  background: var(--amber);
  color: var(--night);
}

.btn-primary:hover {
  background: var(--amber-soft);
}

.btn-ghost {
  border-color: rgba(244, 237, 223, 0.28);
  color: var(--cream);
}

.btn-ghost:hover {
  border-color: var(--cream);
  background: rgba(244, 237, 223, 0.06);
}

.btn-dark {
  background: var(--night);
  color: var(--cream);
}

.btn-dark:hover {
  background: var(--night-3);
}

.hero-note {
  margin: 26px 0 0;
  font-size: 12px;
  letter-spacing: 0.08em;
  color: rgba(159, 179, 200, 0.8);
}

/* Hero card */

.hero-card {
  position: relative;
  padding: 34px;
  border: 1px solid rgba(244, 237, 223, 0.16);
  border-radius: 26px;
  background:
    radial-gradient(380px 280px at 80% 0%, rgba(231, 180, 90, 0.12), transparent 68%),
    linear-gradient(160deg, rgba(16, 43, 73, 0.92), rgba(7, 22, 37, 0.96));
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.28);
  overflow: hidden;
}

.hero-card::before,
.hero-card::after {
  content: "";
  position: absolute;
  border: 1px solid rgba(244, 237, 223, 0.08);
  border-radius: 50%;
  pointer-events: none;
}

.hero-card::before {
  width: 360px;
  height: 360px;
  right: -150px;
  top: -130px;
}

.hero-card::after {
  width: 220px;
  height: 220px;
  right: -80px;
  top: -70px;
}

.app-badge {
  width: 86px;
  height: 86px;
  border-radius: 22px;
  overflow: hidden;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.35);
}

.app-badge img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.card-kicker {
  margin: 22px 0 8px;
  font-size: 10px;
  letter-spacing: 0.26em;
  color: var(--mist);
}

.hero-card h2 {
  margin: 0;
  font-family: var(--serif);
  font-weight: 500;
  font-size: 30px;
  line-height: 1.35;
}

.status-list {
  list-style: none;
  margin: 26px 0 0;
  padding: 0;
  border-top: 1px solid var(--line-light);
}

.status-list li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 13px 0;
  border-bottom: 1px solid var(--line-light);
  font-size: 13px;
  color: rgba(244, 237, 223, 0.78);
}

.status-list .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--amber);
  box-shadow: 0 0 0 5px rgba(231, 180, 90, 0.1);
}

.card-foot {
  display: flex;
  justify-content: space-between;
  margin-top: 22px;
  font-size: 11px;
  letter-spacing: 0.12em;
  color: rgba(159, 179, 200, 0.75);
}

/* ---------- Sections ---------- */

.section {
  padding: 104px 0;
}

.section-tight {
  padding: 76px 0;
}

.section-dark {
  background: var(--night);
  color: var(--cream);
}

.section-paper {
  background: var(--paper);
}

.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 32px;
  margin-bottom: 52px;
}

.section-head h2 {
  margin: 0;
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(34px, 4.4vw, 54px);
  line-height: 1.2;
  letter-spacing: -0.015em;
}

.section-head p {
  max-width: 380px;
  margin: 0 0 6px;
  color: var(--muted);
  font-size: 14px;
}

.section-head .eyebrow {
  color: #9a6c24;
  margin-bottom: 14px;
}

.section-dark .section-head p {
  color: rgba(244, 237, 223, 0.64);
}

.section-dark .section-head .eyebrow {
  color: var(--amber-soft);
}

/* Principles */

.principles {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--line);
}

.principle {
  padding: 34px 30px 34px 0;
  border-right: 1px solid var(--line);
}

.principle:last-child {
  border-right: 0;
  padding-right: 0;
}

.principle .num {
  font-size: 11px;
  letter-spacing: 0.18em;
  color: #9a6c24;
}

.principle h3 {
  margin: 16px 0 10px;
  font-family: var(--serif);
  font-size: 25px;
  font-weight: 500;
}

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

/* Product */

.product-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 0.72fr);
  gap: 80px;
  align-items: center;
}

.feature-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 36px;
}

.feature-grid li {
  padding: 24px 0;
  border-top: 1px solid var(--line);
}

.feature-grid .num {
  font-size: 10px;
  letter-spacing: 0.18em;
  color: #9a6c24;
}

.feature-grid h3 {
  margin: 10px 0 6px;
  font-family: var(--serif);
  font-size: 21px;
  font-weight: 500;
}

.feature-grid p {
  margin: 0;
  color: var(--muted);
  font-size: 13.5px;
  line-height: 1.8;
}

.phone-wrap {
  display: flex;
  justify-content: center;
}

.phone {
  position: relative;
  width: min(300px, 86vw);
  padding: 10px;
  border: 1px solid rgba(244, 237, 223, 0.2);
  border-radius: 40px;
  background: #050d17;
  box-shadow: 0 40px 90px rgba(7, 22, 37, 0.28);
}

.phone::before {
  content: "";
  position: absolute;
  top: 18px;
  left: 50%;
  transform: translateX(-50%);
  width: 76px;
  height: 18px;
  border-radius: 999px;
  background: #050d17;
  z-index: 1;
}

.phone img {
  width: 100%;
  height: auto;
  border-radius: 32px;
  object-fit: cover;
  object-position: top;
}

.phone-caption {
  margin: 22px 0 0;
  text-align: center;
  font-size: 11px;
  letter-spacing: 0.14em;
  color: rgba(244, 237, 223, 0.55);
}

/* Offline band */

.offline-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 80px;
  align-items: start;
}

.offline-grid h2 {
  margin: 0;
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(36px, 4.8vw, 58px);
  line-height: 1.18;
}

.offline-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.offline-list li {
  display: grid;
  grid-template-columns: 34px 1fr;
  gap: 18px;
  padding: 24px 0;
  border-top: 1px solid var(--line-light);
}

.offline-list .mark {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: 1px solid rgba(231, 180, 90, 0.5);
  color: var(--amber);
  display: grid;
  place-items: center;
  font-size: 12px;
}

.offline-list h3 {
  margin: 0 0 5px;
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 500;
}

.offline-list p {
  margin: 0;
  color: rgba(244, 237, 223, 0.64);
  font-size: 14px;
}

/* Studio band */

.studio-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  gap: 80px;
  align-items: end;
}

.studio-grid h2 {
  margin: 0;
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(38px, 5vw, 62px);
  line-height: 1.16;
}

.studio-copy p {
  margin: 0 0 18px;
  color: rgba(244, 237, 223, 0.72);
  font-size: 15px;
  line-height: 1.95;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--amber-soft);
  font-size: 14px;
  border-bottom: 1px solid rgba(243, 207, 138, 0.45);
  padding-bottom: 4px;
  transition: gap 0.25s ease, border-color 0.25s ease;
}

.text-link:hover {
  gap: 14px;
  border-color: var(--amber-soft);
}

/* Notes cards */

.notes-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

.note-card {
  display: flex;
  flex-direction: column;
  min-height: 250px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(251, 247, 238, 0.7);
  transition: transform 0.3s var(--ease), border-color 0.3s ease,
    background 0.3s ease;
}

.note-card:hover {
  transform: translateY(-4px);
  border-color: rgba(154, 108, 36, 0.4);
  background: var(--paper);
}

.note-card .date {
  font-size: 11px;
  letter-spacing: 0.12em;
  color: #9a6c24;
}

.note-card h3 {
  margin: 22px 0 10px;
  font-family: var(--serif);
  font-size: 25px;
  font-weight: 500;
  line-height: 1.4;
}

.note-card p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.note-card .more {
  margin-top: auto;
  padding-top: 26px;
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--ink);
}

/* ---------- Subpage hero ---------- */

.page-hero {
  position: relative;
  overflow: hidden;
  padding: calc(var(--header-h) + 76px) 0 78px;
  background:
    radial-gradient(800px 500px at 80% 0%, rgba(35, 78, 122, 0.4), transparent 65%),
    linear-gradient(180deg, #061321, var(--night));
  color: var(--cream);
}

.page-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.12;
  background-image: repeating-linear-gradient(
    112deg,
    transparent 0,
    transparent 30px,
    rgba(244, 237, 223, 0.24) 31px,
    transparent 32px
  );
  mask-image: linear-gradient(180deg, black, transparent 80%);
  -webkit-mask-image: linear-gradient(180deg, black, transparent 80%);
}

.page-hero .wrap {
  position: relative;
  z-index: 1;
}

.page-hero h1 {
  margin: 0;
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(42px, 6vw, 74px);
  line-height: 1.12;
  letter-spacing: -0.015em;
}

.page-hero .lead {
  margin-top: 22px;
  max-width: 620px;
}

.breadcrumb {
  display: flex;
  gap: 10px;
  margin-bottom: 26px;
  font-size: 11px;
  letter-spacing: 0.12em;
  color: rgba(244, 237, 223, 0.52);
}

.breadcrumb a:hover {
  color: var(--amber-soft);
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 28px;
}

.chip {
  padding: 7px 12px;
  border: 1px solid rgba(244, 237, 223, 0.2);
  border-radius: 999px;
  font-size: 11px;
  letter-spacing: 0.08em;
  color: rgba(244, 237, 223, 0.7);
}

/* Product page */

.spec-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.spec-table th,
.spec-table td {
  padding: 17px 0;
  border-top: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

.spec-table th {
  width: 34%;
  font-weight: 500;
  color: var(--muted);
}

.spec-table td {
  color: var(--ink);
}

.faq details {
  border-top: 1px solid var(--line);
}

.faq details:last-child {
  border-bottom: 1px solid var(--line);
}

.faq summary {
  cursor: pointer;
  padding: 22px 0;
  font-family: var(--serif);
  font-size: 20px;
  list-style: none;
  display: flex;
  justify-content: space-between;
  gap: 20px;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::after {
  content: "+";
  color: #9a6c24;
  font-family: var(--sans);
  font-weight: 300;
}

.faq details[open] summary::after {
  content: "−";
}

.faq details p {
  margin: 0 0 22px;
  color: var(--muted);
  font-size: 14px;
  max-width: 720px;
}

/* Download */

.download-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.8fr);
  gap: 64px;
  align-items: start;
}

.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  counter-reset: step;
}

.steps li {
  counter-increment: step;
  display: grid;
  grid-template-columns: 42px 1fr;
  gap: 18px;
  padding: 22px 0;
  border-top: 1px solid var(--line);
}

.steps li::before {
  content: counter(step, decimal-leading-zero);
  font-size: 11px;
  letter-spacing: 0.12em;
  color: #9a6c24;
  padding-top: 5px;
}

.steps h3 {
  margin: 0 0 5px;
  font-family: var(--serif);
  font-size: 21px;
  font-weight: 500;
}

.steps p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.download-card {
  padding: 32px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--paper);
}

.download-card .app-badge {
  width: 72px;
  height: 72px;
  border-radius: 18px;
  box-shadow: 0 14px 30px rgba(7, 22, 37, 0.18);
}

.download-card h2 {
  margin: 20px 0 8px;
  font-family: var(--serif);
  font-size: 28px;
  font-weight: 500;
}

.download-card p {
  margin: 0 0 22px;
  color: var(--muted);
  font-size: 14px;
}

.download-card .meta {
  margin-top: 24px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  font-size: 12px;
  color: var(--muted);
  display: grid;
  gap: 8px;
}

/* ---------- Prose / legal / notes ---------- */

.prose {
  max-width: 760px;
  margin-inline: auto;
  padding: 12px 0 40px;
}

.prose h2 {
  margin: 48px 0 16px;
  font-family: var(--serif);
  font-size: 29px;
  font-weight: 500;
  line-height: 1.4;
}

.prose h3 {
  margin: 32px 0 12px;
  font-family: var(--serif);
  font-size: 21px;
  font-weight: 500;
}

.prose p,
.prose li {
  color: #3c434d;
  font-size: 15px;
  line-height: 1.95;
}

.prose p {
  margin: 0 0 18px;
}

.prose ul,
.prose ol {
  padding-left: 1.4em;
  margin: 0 0 20px;
}

.prose li {
  margin-bottom: 8px;
}

.prose a {
  color: #8a5a1c;
  border-bottom: 1px solid rgba(138, 90, 28, 0.35);
}

.prose blockquote {
  margin: 28px 0;
  padding: 18px 24px;
  border-left: 2px solid var(--amber);
  background: rgba(231, 180, 90, 0.08);
  color: #4b3a20;
  font-family: var(--serif);
  font-size: 18px;
  line-height: 1.8;
}

.prose code {
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 0.9em;
  background: rgba(20, 24, 32, 0.06);
  padding: 2px 5px;
  border-radius: 4px;
}

.prose-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 34px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
  font-size: 12px;
  color: var(--muted);
  letter-spacing: 0.04em;
}

.prose-meta .tag {
  color: #9a6c24;
}

.article-foot {
  max-width: 760px;
  margin: 20px auto 0;
  padding-top: 28px;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  gap: 20px;
  font-size: 13px;
}

.article-foot a {
  color: #8a5a1c;
}

.toc {
  padding: 20px 24px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(251, 247, 238, 0.7);
  margin-bottom: 30px;
  font-size: 13px;
}

.toc strong {
  display: block;
  margin-bottom: 8px;
  font-weight: 500;
  color: var(--muted);
  font-size: 11px;
  letter-spacing: 0.12em;
}

.toc a {
  display: block;
  padding: 5px 0;
  color: #8a5a1c;
}

/* Notes listing */

.note-list {
  border-top: 1px solid var(--line);
}

.note-row {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr) 120px;
  gap: 28px;
  align-items: baseline;
  padding: 28px 0;
  border-bottom: 1px solid var(--line);
  transition: background 0.25s ease;
}

.note-row:hover {
  background: rgba(251, 247, 238, 0.8);
}

.note-row .date {
  font-size: 11px;
  letter-spacing: 0.12em;
  color: #9a6c24;
}

.note-row h2 {
  margin: 0;
  font-family: var(--serif);
  font-size: 26px;
  font-weight: 500;
  line-height: 1.4;
}

.note-row p {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 14px;
}

.note-row .arrow {
  text-align: right;
  font-size: 12px;
  color: var(--muted);
}

/* Studio page */

.studio-facts {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--line);
  margin-top: 42px;
}

.studio-fact {
  padding: 26px 24px 26px 0;
  border-right: 1px solid var(--line);
}

.studio-fact:last-child {
  border-right: 0;
}

.studio-fact dt {
  font-size: 10px;
  letter-spacing: 0.16em;
  color: #9a6c24;
  text-transform: uppercase;
}

.studio-fact dd {
  margin: 10px 0 0;
  font-family: var(--serif);
  font-size: 21px;
}

/* CTA band */

.cta-band {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(600px 320px at 80% 0%, rgba(231, 180, 90, 0.12), transparent 70%),
    var(--night);
  color: var(--cream);
  padding: 86px 0;
}

.cta-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
}

.cta-inner h2 {
  margin: 0;
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(32px, 4.2vw, 50px);
  line-height: 1.25;
}

.cta-inner p {
  margin: 12px 0 0;
  color: rgba(244, 237, 223, 0.64);
  font-size: 14px;
}

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

.site-footer {
  background: #050f1b;
  color: rgba(244, 237, 223, 0.72);
  padding: 64px 0 28px;
  font-size: 13px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 0.8fr 0.8fr 1.1fr;
  gap: 44px;
  padding-bottom: 44px;
  border-bottom: 1px solid rgba(244, 237, 223, 0.12);
}

.footer-brand .brand {
  color: var(--cream);
}

.footer-brand p {
  max-width: 280px;
  margin: 18px 0 0;
  color: rgba(244, 237, 223, 0.48);
  line-height: 1.8;
}

.footer-col h3 {
  margin: 0 0 14px;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(244, 237, 223, 0.42);
}

.footer-col a,
.footer-col p {
  display: block;
  margin: 0 0 9px;
  color: rgba(244, 237, 223, 0.68);
  font-size: 13px;
}

.footer-col a:hover {
  color: var(--amber-soft);
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px 24px;
  padding-top: 22px;
  font-size: 11.5px;
  color: rgba(244, 237, 223, 0.4);
}

.footer-bottom a {
  color: rgba(244, 237, 223, 0.55);
}

.footer-bottom a:hover {
  color: var(--amber-soft);
}

/* ---------- Misc ---------- */

.divider {
  height: 1px;
  background: var(--line);
}

.notice {
  padding: 18px 20px;
  border: 1px solid rgba(154, 108, 36, 0.28);
  border-radius: 14px;
  background: rgba(231, 180, 90, 0.08);
  color: #5b4525;
  font-size: 13.5px;
  line-height: 1.8;
}

.mt-0 { margin-top: 0; }
.mt-24 { margin-top: 24px; }
.mt-40 { margin-top: 40px; }

/* ---------- Reveal (only when JS marks document) ---------- */

.js .reveal {
  opacity: 1;
  transform: none;
}

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

  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }

  .js .reveal {
    opacity: 1;
    transform: none;
  }
}

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

@media (max-width: 980px) {
  .hero-grid,
  .product-grid,
  .offline-grid,
  .studio-grid,
  .download-grid {
    grid-template-columns: 1fr;
    gap: 50px;
  }

  .hero {
    padding-bottom: 76px;
  }

  .hero-card {
    max-width: 520px;
  }

  .product-grid .phone-wrap {
    order: -1;
  }

  .notes-grid {
    grid-template-columns: 1fr;
  }

  .note-card {
    min-height: 0;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  .cta-inner {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 760px) {
  :root {
    --header-h: 68px;
  }

  .wrap {
    width: calc(100% - 36px);
  }

  .nav {
    position: fixed;
    inset: var(--header-h) 0 auto;
    display: none;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    padding: 12px 18px 24px;
    background: rgba(7, 22, 37, 0.98);
    border-bottom: 1px solid rgba(244, 237, 223, 0.12);
  }

  .nav-open .nav {
    display: flex;
  }

  .nav a {
    width: 100%;
    padding: 14px 0;
    border-bottom: 1px solid rgba(244, 237, 223, 0.08);
    font-size: 15px;
  }

  .nav-cta {
    margin-top: 14px;
    text-align: center;
    border-bottom: 0 !important;
    padding: 12px 18px;
  }

  .nav-toggle {
    display: inline-grid;
    place-items: center;
  }

  .hero {
    padding-top: calc(var(--header-h) + 54px);
  }

  .hero h1 {
    font-size: clamp(46px, 13vw, 68px);
  }

  .lead {
    font-size: 15px;
  }

  .section {
    padding: 76px 0;
  }

  .section-tight {
    padding: 58px 0;
  }

  .section-head {
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
    margin-bottom: 34px;
  }

  .principles {
    grid-template-columns: 1fr;
  }

  .principle {
    border-right: 0;
    border-bottom: 1px solid var(--line);
    padding: 26px 0;
  }

  .principle:last-child {
    border-bottom: 0;
  }

  .feature-grid {
    grid-template-columns: 1fr;
  }

  .studio-facts {
    grid-template-columns: 1fr;
  }

  .studio-fact {
    border-right: 0;
    border-bottom: 1px solid var(--line);
    padding: 20px 0;
  }

  .studio-fact:last-child {
    border-bottom: 0;
  }

  .note-row {
    grid-template-columns: 1fr;
    gap: 8px;
    padding: 24px 0;
  }

  .note-row .arrow {
    text-align: left;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 8px;
  }

  .article-foot {
    flex-direction: column;
  }

  .page-hero {
    padding-top: calc(var(--header-h) + 54px);
  }
}

@media (max-width: 420px) {
  .hero-card,
  .download-card {
    padding: 24px;
  }

  .actions .btn {
    width: 100%;
  }
}

/* ---------- Small additions ---------- */

.lead-dark {
  color: var(--muted);
}

.section-title {
  margin: 0 0 18px;
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(30px, 3.8vw, 44px);
  line-height: 1.25;
  letter-spacing: -0.015em;
}

.offline-intro {
  margin: 24px 0 0;
  color: rgba(244, 237, 223, 0.66);
  font-size: 15px;
  line-height: 1.95;
}

.text-link-dark {
  color: #8a5a1c;
  border-bottom-color: rgba(138, 90, 28, 0.4);
}

.text-link-dark:hover {
  border-bottom-color: #8a5a1c;
}

/* ---------- Studio / corporate homepage ---------- */

.hero-studio {
  padding-top: calc(var(--header-h) + 72px);
  padding-bottom: 84px;
}

.hero-studio .hero-grid {
  grid-template-columns: minmax(0, 1.06fr) minmax(360px, 0.94fr);
  gap: 64px;
}

.hero-studio h1 {
  font-size: clamp(30px, 4vw, 50px);
  line-height: 1.22;
  letter-spacing: -0.02em;
}

.hero-studio h1 .hero-line {
  white-space: nowrap;
}

.hero-studio .lead {
  max-width: 560px;
  font-size: 15.5px;
}

.hero-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 26px 44px;
  margin-top: 38px;
  padding-top: 22px;
  border-top: 1px solid var(--line-light);
}

.hero-facts div {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.hero-facts strong {
  font-size: 12.5px;
  font-weight: 500;
  color: rgba(244, 237, 223, 0.86);
  letter-spacing: 0.02em;
}

.hero-facts span {
  font-size: 11px;
  color: rgba(159, 179, 200, 0.7);
  letter-spacing: 0.04em;
}

.matrix-card {
  position: relative;
  padding: 30px 32px 22px;
  border: 1px solid rgba(244, 237, 223, 0.16);
  border-radius: 22px;
  background:
    radial-gradient(420px 300px at 90% 0%, rgba(231, 180, 90, 0.1), transparent 65%),
    linear-gradient(160deg, rgba(16, 43, 73, 0.9), rgba(7, 22, 37, 0.97));
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.24);
  overflow: hidden;
}

.matrix-card::after {
  content: "";
  position: absolute;
  width: 280px;
  height: 280px;
  right: -130px;
  top: -140px;
  border: 1px solid rgba(244, 237, 223, 0.08);
  border-radius: 50%;
  pointer-events: none;
}

.matrix-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line-light);
  font-size: 10px;
  letter-spacing: 0.16em;
  color: rgba(159, 179, 200, 0.75);
}

.matrix-status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--amber-soft);
}

.matrix-status::before {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--amber);
  box-shadow: 0 0 0 4px rgba(231, 180, 90, 0.1);
}

.matrix-row {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 14px;
  padding: 20px 0;
  border-bottom: 1px solid var(--line-light);
}

.matrix-num {
  padding-top: 3px;
  font-size: 10px;
  letter-spacing: 0.12em;
  color: rgba(231, 180, 90, 0.8);
}

.matrix-row h2 {
  margin: 0 0 4px;
  font-family: var(--serif);
  font-size: 21px;
  font-weight: 500;
  color: var(--cream);
}

.matrix-row p {
  margin: 0;
  font-size: 12px;
  line-height: 1.7;
  color: rgba(159, 179, 200, 0.8);
}

.matrix-foot {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding-top: 18px;
  font-size: 10px;
  letter-spacing: 0.14em;
  color: rgba(159, 179, 200, 0.5);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 34px;
}

.service-card {
  padding: 26px 0 8px;
  border-top: 1px solid var(--line);
}

.service-num {
  font-size: 10px;
  letter-spacing: 0.16em;
  color: #9a6c24;
}

.service-card h3 {
  margin: 16px 0 12px;
  font-family: var(--serif);
  font-size: 24px;
  font-weight: 500;
  line-height: 1.35;
}

.service-card p {
  margin: 0 0 18px;
  color: var(--muted);
  font-size: 13.5px;
  line-height: 1.85;
}

.service-card ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.service-card li {
  position: relative;
  padding: 6px 0 6px 14px;
  color: #3c434d;
  font-size: 13px;
  border-top: 1px solid rgba(20, 24, 32, 0.07);
}

.service-card li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 15px;
  width: 5px;
  height: 1px;
  background: #9a6c24;
}

.facts-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 30px;
  margin-top: 54px;
  padding: 24px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.fact {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.fact span {
  font-size: 10px;
  letter-spacing: 0.16em;
  color: #9a6c24;
  text-transform: uppercase;
}

.fact strong {
  font-size: 13.5px;
  font-weight: 500;
  color: #3c434d;
  line-height: 1.7;
}

.work-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

.work-card {
  display: flex;
  flex-direction: column;
  min-height: 330px;
  padding: 30px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  transition: transform 0.3s var(--ease), border-color 0.3s ease;
}

.work-card:hover {
  transform: translateY(-4px);
  border-color: rgba(154, 108, 36, 0.4);
}

.work-top {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 26px;
}

.work-top img {
  width: 54px;
  height: 54px;
  border-radius: 14px;
}

.work-type {
  font-size: 10px;
  letter-spacing: 0.14em;
  color: #9a6c24;
}

.work-card h3 {
  margin: 0 0 12px;
  font-family: var(--serif);
  font-size: 30px;
  font-weight: 500;
}

.work-card p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.9;
}

.work-link {
  margin-top: auto;
  padding-top: 26px;
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--ink);
}

.work-card-dark {
  background: var(--night);
  border-color: rgba(244, 237, 223, 0.12);
  color: var(--cream);
}

.work-card-dark .work-type,
.work-card-dark .work-link {
  color: var(--amber-soft);
}

.work-card-dark p {
  color: rgba(244, 237, 223, 0.64);
}

.work-card-dark:hover {
  border-color: rgba(231, 180, 90, 0.45);
}

.work-monogram {
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(244, 237, 223, 0.2);
  border-radius: 14px;
  font-family: var(--serif);
  font-size: 18px;
  color: var(--amber);
}

.process-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 30px;
}

.process-grid li {
  padding-top: 20px;
  border-top: 1px solid var(--line);
}

.process-grid li > span {
  font-size: 10px;
  letter-spacing: 0.16em;
  color: #9a6c24;
}

.process-grid h3 {
  margin: 14px 0 8px;
  font-family: var(--serif);
  font-size: 21px;
  font-weight: 500;
}

.process-grid p {
  margin: 0;
  color: var(--muted);
  font-size: 13.5px;
  line-height: 1.8;
}

.studio-band {
  padding: 90px 0;
}

.studio-band .studio-grid {
  align-items: center;
}

@media (max-width: 1100px) {
  .services-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .process-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 34px;
  }
}

@media (max-width: 980px) {
  .hero-studio .hero-grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .hero-studio h1 {
    font-size: clamp(28px, 8.4vw, 40px);
  }

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

  .facts-strip {
    grid-template-columns: 1fr;
    gap: 18px;
  }
}

@media (max-width: 720px) {
  .services-grid,
  .process-grid {
    grid-template-columns: 1fr;
  }

  .hero-facts {
    gap: 16px 26px;
  }

  .matrix-card {
    padding: 24px 22px 18px;
  }

  .matrix-row h2 {
    font-size: 19px;
  }

  .work-card {
    min-height: 0;
    padding: 24px;
  }
}

/* Compact legal TOC */
.toc {
  columns: 2;
  column-gap: 30px;
}

.toc strong {
  column-span: all;
}

.toc a {
  padding: 3px 0;
  font-size: 12.5px;
  color: #6f4a18;
  break-inside: avoid;
}

@media (max-width: 640px) {
  .toc {
    columns: 1;
  }
}
