/* Sia Nexus — shared styles
   Flat, editorial: warm paper canvas, condensed uppercase display type, white cards, ink blocks.
   No shadows or gradients; depth comes from surface contrast. */

:root {
  --paper: #F4F2EE;
  --mist: #EAE7E1;
  --white: #FFFFFF;
  --ink: #15171B;
  --graphite: #23262C;
  --graphite-2: #2E3239;
  --slate: #4A4E57;
  --smoke: #6B6F78;
  --line: #D6D3CD;
  --blue: #1F5CB5;
  --blue-deep: #174A94;
  --blue-light: #8FB3EA;
  --teal: #1AA0C4;
  --teal-soft: #D7EEF5;
  --teal-ink: #0E5C73;

  --f-display: "Barlow Condensed", "Arial Narrow", sans-serif;
  --f-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --f-mono: "JetBrains Mono", ui-monospace, "Cascadia Mono", Consolas, monospace;

  --max: 1200px;
  --gutter: clamp(16px, 4vw, 32px);
  --section: clamp(64px, 9vw, 112px);
  --r-card: 28px;
  --r-btn: 8px;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 104px; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--f-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
p { margin: 0; }
h1, h2, h3 { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; border-radius: 4px; }
.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 100;
  background: var(--ink); color: var(--white); padding: 10px 16px; border-radius: var(--r-btn);
  text-decoration: none; font-weight: 500;
}
.skip-link:focus { top: 16px; }
.visually-hidden {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.container { width: 100%; max-width: calc(var(--max) + var(--gutter) * 2); margin: 0 auto; padding: 0 var(--gutter); }
.section { padding: var(--section) 0; }
.section--white { background: var(--white); }

/* ---------- Type ---------- */
.display, .h2 {
  font-family: var(--f-display);
  font-weight: 700;
  text-transform: uppercase;
  line-height: 0.9;
  letter-spacing: -0.015em;
}
.display { font-size: clamp(60px, 11vw, 136px); }
.h2 { font-size: clamp(44px, 6.4vw, 84px); }
.h3 { font-size: clamp(20px, 2vw, 24px); font-weight: 600; line-height: 1.25; letter-spacing: -0.02em; }
.lead { font-size: clamp(17px, 1.6vw, 20px); line-height: 1.55; color: var(--slate); }
.label {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--f-mono); font-size: 12px; line-height: 1.3;
  text-transform: uppercase; letter-spacing: 0.06em; color: var(--smoke);
}
.label .hex-dot { width: 10px; height: 11px; flex: none; }
.text-blue { color: var(--blue); }
.muted { color: var(--slate); }

/* ---------- Buttons & tags ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 0 22px;
  border-radius: var(--r-btn); border: 1.5px solid transparent;
  font: 500 16px/1 var(--f-body); letter-spacing: -0.01em;
  text-decoration: none; cursor: pointer;
  transition: background-color .2s ease, color .2s ease, border-color .2s ease;
}
.btn svg { width: 16px; height: 16px; flex: none; transition: transform .2s ease; }
.btn:hover svg { transform: translate(2px, -2px); }
.btn--dark { background: var(--ink); color: var(--white); }
.btn--dark:hover { background: var(--blue); }
.btn--ghost { border-color: var(--slate); color: var(--ink); }
.btn--ghost:hover { background: var(--white); border-color: var(--ink); }
.btn--light { background: var(--white); color: var(--ink); }
.btn--light:hover { background: var(--teal-soft); }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

.text-link {
  display: inline-flex; align-items: center; gap: 8px;
  font-weight: 500; text-decoration: none; color: var(--ink);
  border-bottom: 1.5px solid currentColor; padding-bottom: 2px;
}
.text-link:hover { color: var(--blue); }
.text-link svg { width: 14px; height: 14px; }

.tag {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 12px; border-radius: 64px;
  background: var(--teal-soft); color: var(--teal-ink);
  font-family: var(--f-mono); font-size: 12px; line-height: 1.2; text-transform: uppercase; letter-spacing: 0.06em;
}
.tag::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.tag--mist { background: var(--mist); color: var(--slate); }
.tag--on-blue { background: rgba(255, 255, 255, .16); color: var(--white); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  padding: 16px 0;
  pointer-events: none;
}
.nav {
  pointer-events: auto;
  position: relative;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  height: 64px; padding: 0 8px 0 20px;
  background: var(--white); border-radius: 48px;
  border: 1px solid transparent;
  transition: border-color .2s ease;
}
.site-header.is-scrolled .nav { border-color: var(--line); }

.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); }
.brand-mark { width: 44px; height: auto; color: var(--blue); }
.brand-name { font-size: 21px; font-weight: 500; letter-spacing: -0.03em; line-height: 1; white-space: nowrap; }
.brand-name span { color: var(--blue); }

.nav-links { display: flex; align-items: center; gap: 4px; }
.nav-links a:not(.btn) {
  display: inline-flex; align-items: center; height: 40px; padding: 0 16px; border-radius: 40px;
  color: var(--slate); font-size: 15px; font-weight: 500; text-decoration: none;
  transition: background-color .2s ease, color .2s ease;
}
.nav-links a:not(.btn):hover { background: var(--paper); color: var(--ink); }
.nav-links a[aria-current="page"] { color: var(--ink); background: var(--paper); }
.nav-cta { min-height: 48px; border-radius: 40px; }

.nav-toggle {
  display: none;
  width: 48px; height: 48px; border-radius: 50%;
  border: 0; background: var(--paper); color: var(--ink); cursor: pointer;
  align-items: center; justify-content: center;
}
.nav-toggle span, .nav-toggle span::before {
  display: block; width: 18px; height: 1.5px; background: currentColor; position: relative;
  transition: transform .2s ease;
}
.nav-toggle span::before { content: ""; position: absolute; top: 6px; }
.nav-toggle span { transform: translateY(-3px); }
.nav-toggle[aria-expanded="true"] span { transform: translateY(0) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span::before { top: 0; transform: rotate(-90deg); }

/* ---------- Hero ---------- */
.hero { padding: clamp(32px, 6vw, 72px) 0 clamp(56px, 8vw, 96px); }
.hero-grid { display: grid; grid-template-columns: 1.15fr .85fr; align-items: center; gap: clamp(32px, 5vw, 64px); }
.hero-copy .label { margin-bottom: 28px; }
.hero-copy .display { margin-bottom: 28px; }
.hero-copy .lead { max-width: 34rem; margin-bottom: 36px; }
.hero-art { width: 100%; max-width: 520px; justify-self: end; }
.hero-art .hx { transform-box: fill-box; transform-origin: center; }

/* Business-lines strip */
.lines-strip {
  display: flex; flex-wrap: wrap; align-items: center; gap: 12px 28px;
  padding: 20px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
}
.lines-strip li {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--f-mono); font-size: 12px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--slate);
}
.lines-strip svg { width: 10px; height: 11px; }

/* ---------- Section heads ---------- */
.section-head {
  display: grid; grid-template-columns: 1.2fr 1fr; align-items: end; gap: 24px 64px;
  margin-bottom: clamp(40px, 5vw, 64px);
}
.section-head .label { margin-bottom: 20px; }
.section-head .lead { max-width: 30rem; }

/* ---------- Cards ---------- */
.card { background: var(--white); border-radius: var(--r-card); padding: clamp(24px, 3vw, 40px); }
.card--paper { background: var(--paper); }

/* Software */
.product { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 4vw, 56px); align-items: center; }
.product .tag { margin-bottom: 20px; }
.product-name { font-family: var(--f-display); font-weight: 700; text-transform: uppercase; font-size: clamp(48px, 5vw, 64px); line-height: .9; margin-bottom: 16px; }
.product p.muted { margin-bottom: 24px; max-width: 32rem; }
.checks { display: grid; gap: 12px; margin-bottom: 32px; }
.checks li { display: flex; gap: 12px; align-items: flex-start; }
.checks svg { width: 20px; height: 20px; flex: none; margin-top: 2px; color: var(--blue); }

.mock { background: var(--paper); border-radius: 20px; padding: 20px; }
.mock-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 14px; padding: 0 4px; }
.mock-head strong { font-size: 15px; font-weight: 600; }
.mock-list { display: grid; gap: 8px; }
.mock-row {
  display: grid; grid-template-columns: auto 1fr auto auto; align-items: center; gap: 12px;
  background: var(--white); border-radius: 12px; padding: 12px 14px; font-size: 14px;
}
.mock-check { width: 18px; height: 18px; border-radius: 50%; border: 1.5px solid var(--line); }
.mock-row.is-done .mock-check { background: var(--blue); border-color: var(--blue); }
.mock-row.is-done .mock-task { color: var(--smoke); text-decoration: line-through; }
.mock-task { min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-weight: 500; }
.mock-due { font-family: var(--f-mono); font-size: 11px; padding: 4px 8px; border-radius: 6px; background: var(--mist); color: var(--slate); white-space: nowrap; }
.mock-due.is-today { background: #DCE6F6; color: var(--blue-deep); }
.mock-who { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; font-size: 11px; font-weight: 600; background: var(--ink); color: var(--white); }
.mock-who.alt { background: var(--teal); }
.mock-who.alt2 { background: var(--blue); }

.product + .product { margin-top: 24px; }
.mock-logo { display: block; height: 24px; width: auto; }
.mock-map { border-radius: 12px; overflow: hidden; background: radial-gradient(circle at 30% 40%, #A98C64 0, #8B6E48 45%, #6F5638 100%); }
.mock-map svg { display: block; width: 100%; height: auto; }
.mock-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 8px; }
.mock-stats li { background: var(--white); border-radius: 12px; padding: 10px 14px; }
.mock-stats strong { display: block; margin-top: 2px; font-family: var(--f-display); font-weight: 700; font-size: 24px; line-height: 1.1; }

.next-up {
  margin-top: 16px;
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 32px;
  background: var(--mist); border-radius: var(--r-card); padding: clamp(24px, 3vw, 32px) clamp(24px, 3vw, 40px);
}
.next-up p { max-width: 44rem; color: var(--slate); }
.next-up .h3 { margin-bottom: 6px; color: var(--ink); }

/* Consulting */
.services { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.service { display: flex; flex-direction: column; gap: 16px; background: var(--paper); border-radius: 24px; padding: 28px; }
.service-top { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 24px; }
.service-icon { width: 52px; height: 52px; border-radius: 14px; background: var(--white); display: grid; place-items: center; color: var(--blue); }
.service-icon svg { width: 26px; height: 26px; }
.service p { color: var(--slate); font-size: 15px; }
.services-foot { margin-top: 40px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; }
.services-foot p { color: var(--slate); }

/* Watches (dark block) */
.dark-block {
  margin: 0 clamp(8px, 1.5vw, 16px);
  background: var(--ink); color: var(--white);
  border-radius: clamp(28px, 4vw, 56px);
  padding: var(--section) 0;
}
.dark-block .label { color: var(--blue-light); }
.dark-block .lead, .dark-block .muted { color: #B9BCC3; }
.watch-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.watch-grid .label { margin-bottom: 20px; }
.watch-grid .h2 { margin-bottom: 24px; }
.watch-grid .lead { margin-bottom: 32px; max-width: 34rem; }
.watch-art { background: var(--graphite); border-radius: var(--r-card); padding: clamp(24px, 4vw, 48px); display: grid; place-items: center; }
.watch-art svg { width: 100%; max-width: 260px; }
.watch-art .hand-s { transform-origin: 120px 160px; }
.watch-art--hero { justify-self: end; width: 100%; max-width: 440px; }

.offer-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.offer { background: var(--graphite); border-radius: 20px; padding: 22px; }
.offer .label { margin-bottom: 14px; color: var(--smoke); }
.offer h3 { font-size: 18px; font-weight: 600; letter-spacing: -0.01em; margin-bottom: 6px; }
.offer p { font-size: 14px; color: #B9BCC3; }

.store-card {
  margin-top: clamp(32px, 4vw, 48px);
  display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 24px 48px;
  background: var(--blue); border-radius: var(--r-card); padding: clamp(28px, 4vw, 48px);
}
.store-card .tag { margin-bottom: 16px; }
.store-domain { font-family: var(--f-display); font-weight: 700; font-size: clamp(44px, 6vw, 80px); line-height: .9; text-transform: uppercase; margin-bottom: 16px; }
.store-card p { color: #DCE6F6; max-width: 30rem; }
.store-steps { display: grid; gap: 8px; min-width: 260px; }
.store-steps li {
  display: flex; align-items: center; gap: 14px;
  background: rgba(255, 255, 255, .1); border-radius: 14px; padding: 14px 18px;
  font-weight: 500; color: var(--white);
}
.store-steps .label { color: var(--teal-soft); }

/* Contact */
.contact-card { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 5vw, 72px); }
.contact-card .label { margin-bottom: 20px; }
.contact-card .h2 { margin-bottom: 20px; }
.contact-card .lead { margin-bottom: 32px; }
.contact-list { display: grid; gap: 0; align-content: start; }
.contact-list li { padding: 20px 0; border-top: 1px solid var(--line); display: grid; gap: 6px; }
.contact-list li:last-child { border-bottom: 1px solid var(--line); }
.contact-list .label { margin: 0; }
.contact-list .text-link { justify-self: start; margin-top: 6px; }
.contact-list a { text-decoration: none; font-weight: 500; }
.contact-list a:hover { color: var(--blue); }
.contact-list address { font-style: normal; font-weight: 500; }
.contact-list li > span:not(.label) { font-weight: 500; }
.contact-list .inline-links { display: flex; flex-wrap: wrap; gap: 4px 16px; }
.contact-list .inline-links .muted { font-weight: 400; }

/* ---------- About page ---------- */
.brand-card {
  justify-self: end; width: 100%; max-width: 480px;
  background: var(--white); border-radius: var(--r-card);
  padding: clamp(32px, 5vw, 56px);
  display: grid; justify-items: center; gap: 24px; text-align: center;
}
.brand-card svg { width: 72%; max-width: 280px; color: var(--blue); }
.brand-card .brand-name { font-size: clamp(32px, 4vw, 44px); }
.brand-card .footer-tagline { color: var(--slate); padding-top: 16px; border-top: 1px solid var(--line); }

.story { display: grid; grid-template-columns: 1fr 1.2fr; gap: 24px 64px; }
.story .label { margin-bottom: 20px; }
.story-body p { font-size: clamp(17px, 1.5vw, 19px); color: var(--slate); }
.story-body p + p { margin-top: 20px; }
.story-body p:first-child { color: var(--ink); font-size: clamp(20px, 2vw, 24px); line-height: 1.45; letter-spacing: -0.01em; }

.biz-list > li {
  display: grid; grid-template-columns: 56px 1fr 1.5fr 150px; align-items: start; gap: 12px 32px;
  padding: 28px 0; border-top: 1px solid var(--line);
}
.biz-list > li:last-child { border-bottom: 1px solid var(--line); }
.biz-list .label { padding-top: 6px; }
.biz-list p { color: var(--slate); }
.biz-list .biz-side { justify-self: end; display: grid; justify-items: end; gap: 10px; }

.principles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.principle { background: var(--graphite); border-radius: 24px; padding: clamp(24px, 3vw, 32px); }
.principle .principle-num { font-family: var(--f-display); font-weight: 700; font-size: 56px; line-height: .9; color: var(--blue-light); margin-bottom: 40px; }
.principle h3 { font-size: 20px; font-weight: 600; letter-spacing: -0.01em; margin-bottom: 8px; }
.section--flush-top { padding-top: 0; }
.biz-note { margin-top: 28px; color: var(--slate); }
.biz-note a { margin-left: 8px; color: var(--ink); font-weight: 500; text-underline-offset: 3px; }
.biz-note a:hover { color: var(--blue); }

/* ---------- Lifestyle page ---------- */
.services--three { grid-template-columns: repeat(3, 1fr); }
.service .step-num { font-family: var(--f-display); font-weight: 700; font-size: 56px; line-height: .9; color: var(--blue); margin-bottom: 24px; }
.dark-note { margin-top: 28px; color: #B9BCC3; }
.dark-block .container > .store-card:first-child { margin-top: 0; }
.principle p { color: #B9BCC3; font-size: 15px; }

/* ---------- 404 page ---------- */
.error-page { min-height: calc(100vh - 220px); display: flex; align-items: center; padding: clamp(48px, 8vw, 96px) 0; }
.error-page .label { margin-bottom: 28px; }
.error-page .display { margin-bottom: 28px; }
.error-page .lead { max-width: 32rem; margin-bottom: 36px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: #B9BCC3; padding: 64px 0 32px; font-size: 15px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.4fr; gap: 40px; padding-bottom: 48px; border-bottom: 1px solid var(--graphite-2); }
.site-footer .brand { color: var(--white); margin-bottom: 16px; }
.site-footer .brand-mark { color: var(--white); }
.site-footer .brand-name span { color: var(--blue-light); }
.footer-tagline { font-family: var(--f-mono); font-size: 12px; text-transform: uppercase; letter-spacing: 0.08em; }
.footer-col h2 { font-family: var(--f-mono); font-size: 12px; font-weight: 400; text-transform: uppercase; letter-spacing: 0.06em; color: var(--smoke); margin-bottom: 16px; }
.footer-col li + li { margin-top: 10px; }
.footer-col a { text-decoration: none; color: var(--white); }
.footer-col a:hover { color: var(--blue-light); }
.footer-col address { font-style: normal; color: var(--white); }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; padding-top: 24px; font-size: 13px; }
.site-footer--compact { padding: 8px 0 32px; }

/* ---------- Reveal on scroll (only when JS runs and motion is welcome) ---------- */
@media (prefers-reduced-motion: no-preference) {
  .js [data-reveal] { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s ease; }
  .js [data-reveal].is-visible { opacity: 1; transform: none; }
  .hero-art .hx { animation: hx-float 7s ease-in-out infinite; }
  .hero-art .hx-b { animation-delay: -2.3s; }
  .hero-art .hx-c { animation-delay: -4.6s; }
  .watch-art .hand-s { animation: tick 60s steps(60) infinite; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
@keyframes hx-float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }
@keyframes tick { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .services { grid-template-columns: repeat(2, 1fr); }
  .services--three { grid-template-columns: repeat(3, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 860px) {
  .nav-links, .nav .nav-cta { display: none; }
  .nav-toggle { display: inline-flex; }
  .nav.is-open .nav-links {
    display: flex; flex-direction: column; align-items: stretch; gap: 4px;
    position: absolute; top: calc(100% + 8px); left: 0; right: 0;
    background: var(--white); border-radius: 24px; padding: 12px;
    border: 1px solid var(--line);
  }
  .nav.is-open .nav-links a { height: 52px; font-size: 17px; }
  .nav.is-open .nav-links a:not(.btn) { color: var(--ink); }
  .nav.is-open .nav-links .nav-links-cta { display: flex; margin-top: 8px; }

  .hero-grid, .section-head, .product, .watch-grid, .contact-card { grid-template-columns: 1fr; }
  .hero-art { justify-self: center; max-width: 420px; }
  .offer-list { grid-template-columns: 1fr; }
  .store-card { grid-template-columns: 1fr; }
  .services--three { grid-template-columns: 1fr; }
  .watch-art--hero { justify-self: stretch; max-width: none; }
  .story, .principles { grid-template-columns: 1fr; }
  .brand-card { justify-self: stretch; max-width: none; }
  .biz-list > li { grid-template-columns: 40px 1fr; }
  .biz-list p, .biz-list .biz-side { grid-column: 2; }
  .biz-list .biz-side { justify-self: start; justify-items: start; grid-auto-flow: column; align-items: center; gap: 16px; }
}
@media (min-width: 861px) {
  .nav-links .nav-links-cta { display: none; }
}
@media (max-width: 560px) {
  .services { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .btn-row .btn { flex: 1 1 100%; }
  .brand-name { font-size: 19px; }
  .brand-mark { width: 38px; }
  .mock { padding: 14px; }
  .mock-row { grid-template-columns: auto 1fr auto; gap: 10px; padding: 10px 12px; }
  .mock-who { display: none; }
  .hero-art { max-width: 340px; }
  .brand-card { display: none; }
}
