/* ==========================================================================
   Taloova LLC — corporate one-pager
   Hand-written CSS. No framework, no build step, no third-party requests.
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Font
   -------------------------------------------------------------------------- */

@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('../fonts/inter-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
    U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193,
    U+2212, U+2215, U+FEFF, U+FFFD;
}

/* --------------------------------------------------------------------------
   2. Design tokens
   -------------------------------------------------------------------------- */

:root {
  /* Neutrals — warm-leaning, so the orange accent sits naturally */
  --paper: #ffffff;
  --paper-2: #faf9f8;
  --paper-3: #f4f2f0;
  --ink-950: #0b0e13;
  --ink-900: #11151c;
  --ink-800: #1c222c;
  --ink-700: #2b3440;

  --text: #14181f;
  --text-muted: #555e6b;
  --text-subtle: #7a838f;
  --line: #e5e2de;
  --line-strong: #d3cfca;

  /* Accent — deepened from the Xuanxiao brand orange so it clears 4.5:1 on white */
  --accent: #c2410c;
  --accent-hover: #9a3412;
  --accent-soft: #fff4ed;
  --accent-line: #f2d5c4;

  /* On dark surfaces */
  --on-dark: #eef1f5;
  --on-dark-muted: #a3adbb;
  --on-dark-subtle: #78828f;
  --on-dark-line: #262e3a;
  --accent-on-dark: #fb8a4c;

  --focus: #c2410c;

  --radius-sm: 6px;
  --radius: 10px;
  --radius-lg: 16px;

  --shadow-card: 0 1px 2px rgba(11, 14, 19, 0.04), 0 1px 3px rgba(11, 14, 19, 0.03);
  --shadow-float: 0 18px 40px -18px rgba(11, 14, 19, 0.28), 0 4px 12px rgba(11, 14, 19, 0.06);

  --maxw: 1120px;
  --gutter: 20px;

  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto,
    'Helvetica Neue', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei',
    Arial, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, 'SF Mono', Menlo, Consolas, monospace;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme='light']) {
    --paper: #0b0e13;
    --paper-2: #10141b;
    --paper-3: #161c24;
    --ink-950: #060809;
    --ink-900: #0a0d12;
    --ink-800: #141a22;
    --ink-700: #202834;

    --text: #edf0f4;
    --text-muted: #a2acba;
    --text-subtle: #7c8694;
    --line: #232a35;
    --line-strong: #303947;

    --accent: #fb8a4c;
    --accent-hover: #fda36d;
    --accent-soft: #1d1611;
    --accent-line: #3b2a1e;

    --focus: #fb8a4c;

    --shadow-card: 0 1px 2px rgba(0, 0, 0, 0.4);
    --shadow-float: 0 18px 40px -18px rgba(0, 0, 0, 0.7), 0 4px 12px rgba(0, 0, 0, 0.3);
  }
}

:root[data-theme='dark'] {
  --paper: #0b0e13;
  --paper-2: #10141b;
  --paper-3: #161c24;
  --text: #edf0f4;
  --text-muted: #a2acba;
  --text-subtle: #7c8694;
  --line: #232a35;
  --line-strong: #303947;
  --accent: #fb8a4c;
  --accent-hover: #fda36d;
  --accent-soft: #1d1611;
  --accent-line: #3b2a1e;
  --focus: #fb8a4c;
}

/* --------------------------------------------------------------------------
   3. Base
   -------------------------------------------------------------------------- */

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 88px;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.7;
  font-feature-settings: 'cv05' 1, 'ss03' 1;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

h1,
h2,
h3,
h4 {
  margin: 0;
  color: var(--text);
  font-weight: 600;
  letter-spacing: -0.021em;
  line-height: 1.18;
  text-wrap: balance;
}

p {
  margin: 0;
  text-wrap: pretty;
}

a {
  color: var(--accent);
  text-decoration: none;
  text-underline-offset: 3px;
}

a:hover {
  color: var(--accent-hover);
  text-decoration: underline;
}

/* Links sitting inside a block of running text need more than colour to be
   distinguishable (WCAG 1.4.1). Standalone links and nav items are exempt. */
.registry-note a,
.legal p a,
.legal li a,
.contact__aside p a,
.site-footer__legal a,
.prose a {
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 2.5px;
}

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

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

:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 3px;
  border-radius: 3px;
}

::selection {
  background: var(--accent);
  color: #fff;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  border: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

/* --------------------------------------------------------------------------
   4. Layout primitives
   -------------------------------------------------------------------------- */

.wrap {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section {
  padding-block: clamp(64px, 9vw, 116px);
  border-top: 1px solid var(--line);
}

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

.section--dark {
  background: var(--ink-950);
  border-top-color: var(--ink-800);
  color: var(--on-dark);
}

.section--dark h2,
.section--dark h3 {
  color: var(--on-dark);
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -60px;
  z-index: 200;
  padding: 10px 16px;
  border-radius: var(--radius-sm);
  background: var(--accent);
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  transition: top 0.15s ease;
}

.skip-link:focus {
  top: 16px;
  color: #fff;
  text-decoration: none;
}

/* --------------------------------------------------------------------------
   5. Typography helpers
   -------------------------------------------------------------------------- */

.eyebrow {
  display: block;
  margin-bottom: 18px;
  color: var(--accent);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.section--dark .eyebrow {
  color: var(--accent-on-dark);
}

.h2 {
  font-size: clamp(28px, 3.6vw, 40px);
}

.h3 {
  font-size: clamp(19px, 2vw, 21px);
  letter-spacing: -0.014em;
}

.lede {
  max-width: 64ch;
  margin-top: 20px;
  color: var(--text-muted);
  font-size: clamp(17px, 1.6vw, 19px);
  line-height: 1.68;
}

.section--dark .lede {
  color: var(--on-dark-muted);
}

.prose {
  max-width: 68ch;
  color: var(--text-muted);
}

.prose + .prose {
  margin-top: 18px;
}

.section-head {
  max-width: 68ch;
  margin-bottom: clamp(40px, 5vw, 60px);
}

/* --------------------------------------------------------------------------
   6. Header
   -------------------------------------------------------------------------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: color-mix(in srgb, var(--paper) 82%, transparent);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease, background-color 0.2s ease;
}

.site-header.is-stuck {
  border-bottom-color: var(--line);
}

@supports not (backdrop-filter: blur(1px)) {
  .site-header {
    background: var(--paper);
  }
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: 68px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.brand:hover {
  color: var(--text);
  text-decoration: none;
}

.brand__mark {
  flex: none;
  width: 26px;
  height: 26px;
}

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

.nav a {
  position: relative;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  color: var(--text-muted);
  font-size: 14.5px;
  font-weight: 500;
  transition: color 0.15s ease, background-color 0.15s ease;
}

.nav a:hover {
  color: var(--text);
  background: var(--paper-3);
  text-decoration: none;
}

.nav a.is-active {
  color: var(--text);
}

.nav a.is-active::after {
  content: '';
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 2px;
  height: 2px;
  border-radius: 2px;
  background: var(--accent);
}

.nav__cta {
  margin-left: 8px;
  padding: 8px 15px !important;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  color: var(--text) !important;
}

.nav__cta:hover {
  border-color: var(--text-subtle);
  background: transparent !important;
}

.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: transparent;
  color: var(--text);
  cursor: pointer;
}

.nav-toggle svg {
  width: 20px;
  height: 20px;
}

.nav-toggle .icon-close {
  display: none;
}

.nav-toggle[aria-expanded='true'] .icon-close {
  display: block;
}

.nav-toggle[aria-expanded='true'] .icon-open {
  display: none;
}

@media (max-width: 800px) {
  .nav-toggle {
    display: inline-flex;
  }

  /* Collapsed by default in CSS, so the menu is never briefly open before
     main.js runs and is never stuck open if JavaScript is unavailable. */
  .nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    padding: 10px var(--gutter) 18px;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow-float);
  }

  .nav-toggle[aria-expanded='true'] ~ .nav {
    display: flex;
  }

  .nav a {
    padding: 12px 8px;
    font-size: 16px;
  }

  .nav a.is-active::after {
    display: none;
  }

  .nav__cta {
    margin-left: 0;
    margin-top: 8px;
    text-align: center;
  }
}

/* --------------------------------------------------------------------------
   7. Hero
   -------------------------------------------------------------------------- */

.hero {
  position: relative;
  padding-block: clamp(64px, 11vw, 132px) clamp(52px, 7vw, 84px);
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: -40% 0 auto -10%;
  height: 620px;
  background: radial-gradient(
    46% 52% at 22% 44%,
    color-mix(in srgb, var(--accent) 12%, transparent) 0%,
    transparent 72%
  );
  pointer-events: none;
}

.hero__inner {
  position: relative;
}

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 26px;
  padding: 6px 13px 6px 10px;
  border: 1px solid var(--accent-line);
  border-radius: 100px;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.hero__badge::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
}

.hero h1 {
  max-width: 17ch;
  font-size: clamp(38px, 6.4vw, 64px);
  letter-spacing: -0.032em;
  line-height: 1.06;
}

.hero__sub {
  max-width: 60ch;
  margin-top: 26px;
  color: var(--text-muted);
  font-size: clamp(17px, 1.8vw, 20px);
  line-height: 1.65;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 38px;
}

/* --------------------------------------------------------------------------
   8. Buttons
   -------------------------------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 20px;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  font-size: 15px;
  font-weight: 550;
  line-height: 1.2;
  cursor: pointer;
  transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.btn:hover {
  text-decoration: none;
}

.btn svg {
  width: 15px;
  height: 15px;
  flex: none;
}

.btn--primary {
  background: var(--ink-950);
  color: #fff;
}

.btn--primary:hover {
  background: var(--ink-700);
  color: #fff;
}

.btn--ghost {
  border-color: var(--line-strong);
  background: transparent;
  color: var(--text);
}

.btn--ghost:hover {
  border-color: var(--text-subtle);
  background: var(--paper-2);
  color: var(--text);
}

:root[data-theme='dark'] .btn--primary,
.btn--primary {
  /* keep primary readable in dark mode too */
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme='light']) .btn--primary {
    background: var(--on-dark);
    color: var(--ink-950);
  }

  :root:not([data-theme='light']) .btn--primary:hover {
    background: #fff;
    color: var(--ink-950);
  }
}

/* --------------------------------------------------------------------------
   9. Facts strip
   -------------------------------------------------------------------------- */

.facts {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--paper-2);
}

.facts__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.facts__item {
  padding: 28px 28px 30px;
  border-left: 1px solid var(--line);
}

.facts__item:first-child {
  padding-left: 0;
  border-left: 0;
}

.facts__item:last-child {
  padding-right: 0;
}

.facts__label {
  display: block;
  margin-bottom: 7px;
  color: var(--text-subtle);
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.085em;
  text-transform: uppercase;
}

.facts__value {
  color: var(--text);
  font-size: 16px;
  font-weight: 550;
  line-height: 1.45;
}

.facts__note {
  display: block;
  margin-top: 3px;
  color: var(--text-subtle);
  font-size: 13.5px;
  font-weight: 400;
}

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

  .facts__item {
    padding: 22px 0 24px 22px;
  }

  .facts__item:nth-child(odd) {
    padding-left: 0;
    border-left: 0;
  }

  .facts__item:nth-child(n + 3) {
    border-top: 1px solid var(--line);
  }
}

@media (max-width: 520px) {
  .facts__grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .facts__item {
    padding: 18px 0;
    border-left: 0;
  }

  .facts__item + .facts__item {
    border-top: 1px solid var(--line);
  }
}

/* --------------------------------------------------------------------------
   10. Cards
   -------------------------------------------------------------------------- */

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

@media (max-width: 880px) {
  .cards {
    grid-template-columns: minmax(0, 1fr);
    gap: 16px;
  }
}

.card {
  padding: 28px 26px 30px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--paper);
  box-shadow: var(--shadow-card);
}

.card__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  margin-bottom: 20px;
  border: 1px solid var(--accent-line);
  border-radius: var(--radius-sm);
  background: var(--accent-soft);
  color: var(--accent);
}

.card__icon svg {
  width: 19px;
  height: 19px;
}

.card h3 {
  margin-bottom: 10px;
  font-size: 17.5px;
}

.card p {
  color: var(--text-muted);
  font-size: 15.5px;
  line-height: 1.65;
}

/* --------------------------------------------------------------------------
   11. Product section
   -------------------------------------------------------------------------- */

.product {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  gap: clamp(36px, 5vw, 64px);
  align-items: start;
}

@media (max-width: 960px) {
  .product {
    grid-template-columns: minmax(0, 1fr);
  }
}

.product__title {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 10px;
  font-size: clamp(28px, 3.6vw, 38px);
}

.product__title .cn {
  color: var(--text-subtle);
  font-size: 0.55em;
  font-weight: 500;
  letter-spacing: 0;
}

.product__tagline {
  margin-top: 14px;
  color: var(--text);
  font-size: clamp(17px, 1.7vw, 19px);
  font-weight: 500;
  line-height: 1.55;
}

.product__body {
  margin-top: 16px;
  max-width: 62ch;
  color: var(--text-muted);
  font-size: 16.5px;
}

.featurelist {
  display: grid;
  gap: 22px;
  margin-top: 34px;
}

.featurelist li {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 14px;
}

.featurelist .fl-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  margin-top: 2px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--paper);
  color: var(--accent);
}

.featurelist .fl-icon svg {
  width: 17px;
  height: 17px;
}

.featurelist h3 {
  margin-bottom: 3px;
  font-size: 16px;
  font-weight: 600;
}

.featurelist p {
  color: var(--text-muted);
  font-size: 15.5px;
  line-height: 1.6;
}

.product__meta {
  display: grid;
  gap: 2px;
  margin-top: 34px;
  padding: 20px 22px;
  border: 1px solid var(--line);
  border-left: 3px solid var(--accent);
  border-radius: 0 var(--radius) var(--radius) 0;
  background: var(--paper-2);
}

.product__meta div {
  display: grid;
  grid-template-columns: 118px minmax(0, 1fr);
  gap: 4px 12px;
  padding: 5px 0;
  font-size: 15px;
  line-height: 1.55;
}

.product__meta dt {
  color: var(--text-subtle);
  font-weight: 500;
}

.product__meta dd {
  margin: 0;
  color: var(--text);
}

@media (max-width: 420px) {
  .product__meta div {
    grid-template-columns: minmax(0, 1fr);
  }
}

.product__link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-top: 28px;
  font-size: 15.5px;
  font-weight: 600;
}

.product__link svg {
  width: 14px;
  height: 14px;
}

/* Browser chrome mockup */
.shots {
  display: grid;
  gap: 22px;
  min-width: 0;
}

.shots figure {
  margin: 0;
  min-width: 0;
}

.browser {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--paper-3);
  box-shadow: var(--shadow-float);
  overflow: hidden;
}

.browser__bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  border-bottom: 1px solid var(--line);
  background: var(--paper-2);
}

.browser__dots {
  display: flex;
  gap: 6px;
}

.browser__dots span {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--line-strong);
}

.browser__url {
  flex: 1 1 0;
  width: 0;
  min-width: 0;
  padding: 4px 10px;
  border-radius: 100px;
  background: var(--paper);
  color: var(--text-subtle);
  font-family: var(--font-mono);
  font-size: 11.5px;
  line-height: 1.5;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* <picture> is inline by default, which would leave a baseline gap under the
   screenshot inside the mockup frame. */
.browser picture {
  display: block;
}

.browser img {
  width: 100%;
  display: block;
}

.shots figcaption {
  margin-top: 10px;
  color: var(--text-subtle);
  font-size: 13.5px;
  line-height: 1.55;
}

/* --------------------------------------------------------------------------
   12. Portfolio
   -------------------------------------------------------------------------- */

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

@media (max-width: 800px) {
  .portfolio {
    grid-template-columns: minmax(0, 1fr);
  }
}

.pcard {
  display: flex;
  flex-direction: column;
  padding: 28px 26px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--paper);
  box-shadow: var(--shadow-card);
}

.pcard--pending {
  border-style: dashed;
  background: transparent;
  box-shadow: none;
}

.pcard__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 16px;
}

.pcard h3 {
  font-size: 19px;
}

.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border: 1px solid var(--line-strong);
  border-radius: 100px;
  color: var(--text-muted);
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  white-space: nowrap;
}

.tag--live {
  border-color: var(--accent-line);
  background: var(--accent-soft);
  color: var(--accent);
}

.tag--live::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
}

.pcard p {
  color: var(--text-muted);
  font-size: 15.5px;
}

.pcard__facts {
  display: grid;
  gap: 8px;
  margin: 22px 0 0;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}

.pcard__facts div {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  font-size: 14.5px;
}

.pcard__facts dt {
  color: var(--text-subtle);
}

.pcard__facts dd {
  margin: 0;
  color: var(--text);
  font-weight: 500;
  text-align: right;
}

.pcard__link {
  margin-top: 22px;
  font-size: 15px;
  font-weight: 600;
}

/* --------------------------------------------------------------------------
   13. Company information (dark)
   -------------------------------------------------------------------------- */

.section--dark .prose {
  color: var(--on-dark-muted);
}

.registry {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 56px;
  margin-top: 0;
}

@media (max-width: 900px) {
  .registry {
    grid-template-columns: minmax(0, 1fr);
    gap: 0;
  }
}

/* Below this width a right-aligned value starts half-wrapping, so stack it. */
@media (max-width: 560px) {
  .registry > div {
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
    padding: 14px 0;
  }

  .registry dd {
    text-align: left;
  }
}

.registry > div {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px 20px;
  padding: 17px 0;
  border-bottom: 1px solid var(--on-dark-line);
}

.registry dt {
  color: var(--on-dark-subtle);
  font-size: 14.5px;
}

.registry dd {
  margin: 0;
  color: var(--on-dark);
  font-size: 15.5px;
  font-weight: 500;
  text-align: right;
}

.registry dd a {
  color: var(--accent-on-dark);
}

.registry-note {
  max-width: 64ch;
  margin-top: 30px;
  color: var(--on-dark-subtle);
  font-size: 14.5px;
  line-height: 1.65;
}

/* --------------------------------------------------------------------------
   14. Contact
   -------------------------------------------------------------------------- */

.contact {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(32px, 5vw, 72px);
  align-items: start;
}

@media (max-width: 860px) {
  .contact {
    grid-template-columns: minmax(0, 1fr);
  }
}

.contact__mail {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 26px;
  font-size: clamp(20px, 2.6vw, 27px);
  font-weight: 600;
  letter-spacing: -0.02em;
}

.contact__mail svg {
  width: 20px;
  height: 20px;
  flex: none;
}

.contact__aside {
  display: grid;
  gap: 24px;
  padding: 28px 26px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--paper);
}

.contact__aside h3 {
  margin-bottom: 6px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--text-subtle);
}

.contact__aside p,
.contact__aside address {
  color: var(--text-muted);
  font-size: 15.5px;
  font-style: normal;
  line-height: 1.65;
}

/* --------------------------------------------------------------------------
   15. Footer
   -------------------------------------------------------------------------- */

.site-footer {
  padding-block: 44px 52px;
  border-top: 1px solid var(--line);
  background: var(--paper-2);
}

.site-footer__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 18px 32px;
}

.site-footer__links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
}

.site-footer a,
.site-footer p {
  color: var(--text-muted);
  font-size: 14.5px;
}

.site-footer a:hover {
  color: var(--text);
}

.site-footer__legal {
  width: 100%;
  margin-top: 26px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
  color: var(--text-subtle);
  font-size: 13.5px;
  line-height: 1.6;
}

/* --------------------------------------------------------------------------
   16. Legal pages (privacy.html)
   -------------------------------------------------------------------------- */

.legal {
  max-width: 72ch;
  padding-block: clamp(52px, 7vw, 88px) clamp(64px, 9vw, 104px);
}

.legal h1 {
  font-size: clamp(32px, 4.6vw, 44px);
  letter-spacing: -0.028em;
}

.legal .updated {
  margin-top: 14px;
  color: var(--text-subtle);
  font-size: 14.5px;
}

.legal h2 {
  margin-top: 46px;
  margin-bottom: 14px;
  font-size: 21px;
}

.legal p {
  margin-bottom: 16px;
  color: var(--text-muted);
  font-size: 16.5px;
}

.legal ul {
  margin-bottom: 16px;
  padding-left: 22px;
  list-style: disc;
  color: var(--text-muted);
  font-size: 16.5px;
}

.legal li {
  margin-bottom: 9px;
  padding-left: 4px;
}

.legal li::marker {
  color: var(--text-subtle);
}

/* --------------------------------------------------------------------------
   17. Motion
   -------------------------------------------------------------------------- */

.reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.6s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

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

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

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

/* --------------------------------------------------------------------------
   18. Print
   -------------------------------------------------------------------------- */

@media print {
  .site-header,
  .nav-toggle,
  .hero::before {
    display: none !important;
  }

  body {
    font-size: 12pt;
  }

  .section {
    padding-block: 24px;
    break-inside: avoid;
  }

  .section--dark {
    background: #fff;
    color: #000;
  }

  .section--dark .registry dt,
  .section--dark .registry dd,
  .section--dark h2,
  .section--dark .prose {
    color: #000;
  }
}
