/* ─────────────────────────────────────────────
   Sheen Digital — shared stylesheet
   White paper, near-black ink, one cobalt accent.
   Light by default; dark follows the system.
   ───────────────────────────────────────────── */

:root {
  color-scheme: light dark;

  --bg: #ffffff;
  --surface: #f4f5f7;
  --ink: #0d0f12;
  --ink-2: #4a505c;
  --ink-3: #656c79;
  --ink-soft: #868d99; /* display-size text only: 3:1, not body-safe */
  --line: #e5e7eb;
  --line-strong: #cdd1d8;
  --accent: #1a4dff;
  --live: #12a150;

  /* Closing contact + footer block */
  --band-bg: #0d0f12;
  --band-ink: #ffffff;
  --band-ink-2: #9aa1ad;
  --band-line: #272b32;
  --band-accent: #8ea7ff;

  --font: "Instrument Sans", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
  --container: 1160px;
  --gutter: clamp(20px, 5vw, 40px);
  --head-h: 64px;
  --radius: 14px;
  --section-gap: clamp(72px, 10vw, 128px);
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0b0c0e;
    --surface: #131518;
    --ink: #f2f3f5;
    --ink-2: #b1b6c0;
    --ink-3: #8b919d;
    --ink-soft: #6f7580;
    --line: #202328;
    --line-strong: #343840;
    --accent: #8ea7ff;
    --live: #3ecf7a;

    --band-bg: #131518;
    --band-ink: #f2f3f5;
    --band-ink-2: #8b919d;
    --band-line: #262a31;
  }
}

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

html {
  scroll-padding-top: calc(var(--head-h) + 24px);
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.6;
  background: var(--bg);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

::selection {
  background: var(--ink);
  color: var(--bg);
}

a {
  color: inherit;
}

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

.skip-link {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 200;
  padding: 10px 16px;
  border-radius: 8px;
  background: var(--ink);
  color: var(--bg);
  font-size: 0.9375rem;
  font-weight: 500;
  text-decoration: none;
  transform: translateY(-200%);
}

.skip-link:focus {
  transform: none;
}

/* ── Layout ── */
.container {
  width: 100%;
  max-width: calc(var(--container) + var(--gutter) * 2);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.section {
  padding-bottom: var(--section-gap);
}

/* Each section opens on a container-width hairline */
.section > .container::before {
  content: "";
  display: block;
  border-top: 1px solid var(--line);
  margin-bottom: clamp(36px, 5vw, 56px);
}

.section-title {
  font-size: clamp(1.75rem, 3.2vw, 2.5rem);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.035em;
  text-wrap: balance;
}

.section-head {
  margin-bottom: clamp(32px, 5vw, 56px);
}

.kicker,
.eyebrow,
.product-kind,
.person .role {
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--ink-3);
}

.kicker {
  margin-bottom: 12px;
}

/* ── Header ── */
.site-head {
  position: fixed;
  inset: 0 0 auto;
  z-index: 100;
  background: color-mix(in srgb, var(--bg) 92%, transparent);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s var(--ease);
}

.site-head.is-scrolled {
  border-bottom-color: var(--line);
}

.head-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  height: var(--head-h);
}

.wordmark {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-size: 1.0625rem;
  font-weight: 600;
  letter-spacing: -0.025em;
  text-decoration: none;
  white-space: nowrap;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: clamp(14px, 2.6vw, 28px);
}

.site-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--ink-2);
  text-decoration: none;
  white-space: nowrap;
  transition: color 0.2s;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  color: var(--ink);
}

.site-nav a[aria-current="page"],
.foot-links a[aria-current="page"] {
  text-decoration: underline;
  text-decoration-thickness: 1.5px;
  text-underline-offset: 6px;
}

.site-nav a.head-cta {
  position: relative;
  min-height: 38px;
  padding: 0 14px;
  border-radius: 9px;
  background: var(--ink);
  color: var(--bg);
  transition: background 0.2s;
}

/* Extends the tap target to 44px without thickening the button */
.site-nav a.head-cta::after {
  content: "";
  position: absolute;
  inset: -3px 0;
}

.site-nav a.head-cta:hover {
  background: color-mix(in srgb, var(--ink) 84%, var(--bg));
  color: var(--bg);
}

/* ── Display type ── */
.display {
  font-size: clamp(2.5rem, 1rem + 6.4vw, 6rem);
  font-weight: 600;
  font-stretch: 94%;
  line-height: 0.98;
  letter-spacing: -0.04em;
  text-wrap: balance;
}

.display .soft {
  display: block;
  color: var(--ink-soft);
}

/* ── Hero ── */
.hero {
  padding-top: calc(var(--head-h) + clamp(56px, 11vh, 128px));
  padding-bottom: clamp(64px, 9vw, 112px);
}

.eyebrow {
  margin-bottom: clamp(20px, 3vw, 28px);
}

.hero-foot {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 4fr);
  gap: clamp(32px, 8vw, 112px);
  align-items: end;
  margin-top: clamp(36px, 6vw, 72px);
}

.lede {
  font-size: clamp(1.0625rem, 1.5vw, 1.25rem);
  line-height: 1.55;
  color: var(--ink-2);
  max-width: 34em;
}

.actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px 28px;
  margin-top: clamp(28px, 4vw, 40px);
}

.facts {
  font-size: 0.9375rem;
  border-top: 1px solid var(--line);
}

.facts > div {
  display: grid;
  grid-template-columns: 6rem 1fr;
  gap: 16px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}

.facts dt {
  color: var(--ink-3);
}

.facts dd {
  font-weight: 500;
}

/* ── Buttons & links ── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  padding: 0 22px;
  border-radius: 10px;
  background: var(--ink);
  color: var(--bg);
  font-size: 1rem;
  font-weight: 500;
  text-decoration: none;
  transition: background 0.2s;
}

.btn:hover {
  background: color-mix(in srgb, var(--ink) 84%, var(--bg));
}

.link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  font-size: 1rem;
  font-weight: 500;
  text-decoration: underline;
  text-decoration-color: transparent;
  text-underline-offset: 5px;
  transition: text-decoration-color 0.2s;
}

.link:hover {
  text-decoration-color: currentColor;
}

.arrow {
  flex-shrink: 0;
  transition: transform 0.3s var(--ease);
}

.btn:hover .arrow,
.link:hover .arrow {
  transform: translateX(3px);
}

/* ── Services ── */
.services {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 40px clamp(24px, 4vw, 56px);
}

.service {
  border-top: 1px solid var(--ink);
  padding-top: 20px;
}

.service h3 {
  font-size: 1.25rem;
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: -0.02em;
  margin-bottom: 10px;
}

.service p {
  font-size: 1rem;
  line-height: 1.65;
  color: var(--ink-2);
  max-width: 38ch;
}

/* ── Products ── */
.products {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(16px, 2vw, 24px);
}

.product {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 21rem;
  padding: clamp(24px, 3vw, 36px);
  border: 1px solid transparent;
  border-radius: var(--radius);
  background: var(--surface);
  transition: border-color 0.3s var(--ease);
}

.product:hover {
  border-color: var(--line-strong);
}

.product-name {
  font-size: clamp(1.875rem, 3.6vw, 2.75rem);
  font-weight: 600;
  font-stretch: 94%;
  line-height: 1.05;
  letter-spacing: -0.04em;
  margin: 6px 0 20px;
}

.product-name a {
  text-decoration: none;
}

/* The focus ring moves from the name to the card it covers */
@supports selector(:has(*)) {
  .product-name a {
    outline: none;
  }

  .product:has(a:focus-visible) {
    outline: 2px solid var(--accent);
    outline-offset: 3px;
  }
}

/* Stretches the name link over the whole card */
.product-name a::after {
  content: "";
  position: absolute;
  inset: 0;
}

.product-copy p {
  font-size: 1rem;
  line-height: 1.65;
  color: var(--ink-2);
  max-width: 46ch;
}

.product-copy p + p {
  margin-top: 12px;
}

.product-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px 16px;
  margin-top: auto;
  padding-top: 28px;
  font-size: 0.9375rem;
  font-weight: 500;
}

.product-foot::before {
  content: "";
  flex: 0 0 100%;
  border-top: 1px solid var(--line-strong);
  margin-bottom: 12px;
}

.status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.status::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--live);
}

.status--soon::before {
  background: transparent;
  box-shadow: inset 0 0 0 1.5px var(--ink-3);
}

.product-url {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--ink-2);
  transition: color 0.2s;
}

.product:hover .product-url {
  color: var(--ink);
}

.product:hover .product-url .arrow {
  transform: translate(2px, -2px);
}

/* ── Split sections (about) ── */
.split {
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(0, 7fr);
  gap: clamp(32px, 8vw, 112px);
  align-items: start;
}

.prose p {
  color: var(--ink-2);
  max-width: 60ch;
}

.prose p + p {
  margin-top: 1.1em;
}

.prose p:first-child {
  font-size: clamp(1.125rem, 1.6vw, 1.3125rem);
  line-height: 1.5;
  color: var(--ink);
}

/* ── Company details (about) ── */
.details > div {
  display: grid;
  grid-template-columns: 11rem 1fr;
  gap: 4px 24px;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}

.details > div:first-child {
  padding-top: 0;
}

.details dt {
  font-size: 0.9375rem;
  color: var(--ink-3);
  padding-top: 2px;
}

.details .value {
  font-weight: 500;
}

.details .sub {
  font-size: 0.9375rem;
  color: var(--ink-3);
}

.details a,
.legal a {
  text-decoration: underline;
  text-decoration-color: var(--ink-3);
  text-underline-offset: 4px;
  transition: text-decoration-color 0.2s;
}

.details a:hover,
.legal a:hover {
  text-decoration-color: currentColor;
}

/* ── Person (about) ── */
.person .name {
  font-size: 1.5rem;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.03em;
}

.person .role {
  margin: 4px 0 18px;
}

.person .bio {
  color: var(--ink-2);
  max-width: 60ch;
}

/* ── Page head (interior pages) ── */
.page-head {
  padding-top: calc(var(--head-h) + clamp(56px, 10vh, 112px));
  padding-bottom: clamp(56px, 8vw, 96px);
}

.page-head .display {
  font-size: clamp(2.5rem, 6.4vw, 5rem);
}

.page-head .updated {
  font-size: 0.9375rem;
  color: var(--ink-3);
  margin-top: clamp(20px, 3vw, 28px);
}

/* ── Legal (privacy policy) ── */
.toc {
  position: sticky;
  top: calc(var(--head-h) + 32px);
  font-size: 0.9375rem;
}

.toc ol {
  list-style: none;
  margin-top: 4px;
}

.toc a {
  display: block;
  padding: 5px 0;
  color: var(--ink-3);
  text-decoration: none;
  transition: color 0.2s;
}

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

.legal {
  max-width: 68ch;
}

.legal h2 {
  font-size: 1.375rem;
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: -0.025em;
  margin: 48px 0 12px;
}

.legal h2:first-child {
  margin-top: 0;
}

.legal p,
.legal ul {
  color: var(--ink-2);
  margin-bottom: 14px;
}

.legal ul {
  padding-left: 1.2em;
}

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

.legal li::marker {
  color: var(--ink-soft);
}

.legal strong {
  color: var(--ink);
  font-weight: 600;
}

.legal a {
  color: var(--ink);
}

/* ── Closing band: contact + footer ── */
.band {
  --accent: var(--band-accent);
  background: var(--band-bg);
  color: var(--band-ink);
}

.band ::selection {
  background: var(--band-ink);
  color: var(--band-bg);
}

.contact {
  padding: clamp(80px, 11vw, 144px) 0 clamp(72px, 10vw, 128px);
}

.contact-title,
.mail {
  display: block;
  font-size: clamp(1.5rem, 7.4vw, 4.25rem);
  font-weight: 600;
  font-stretch: 94%;
  line-height: 1.08;
  letter-spacing: -0.04em;
}

.contact-title {
  color: var(--band-ink-2);
}

.mail {
  width: fit-content;
  max-width: 100%;
  overflow-wrap: anywhere;
  text-decoration: underline;
  text-decoration-color: transparent;
  text-decoration-thickness: 0.05em;
  text-underline-offset: 0.14em;
  transition: text-decoration-color 0.25s;
}

.mail:hover {
  text-decoration-color: currentColor;
}

.contact-note {
  font-size: 1rem;
  color: var(--band-ink-2);
  margin-top: clamp(24px, 3vw, 36px);
}

.site-foot .container {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px 32px;
  padding-top: 28px;
  padding-bottom: 32px;
  font-size: 0.9375rem;
  color: var(--band-ink-2);
}

.site-foot .container::before {
  content: "";
  flex: 0 0 100%;
  border-top: 1px solid var(--band-line);
  margin-bottom: 12px;
}

/* Footer with no contact block above it (privacy policy) */
.site-foot--solo .container {
  padding-top: 40px;
}

.site-foot--solo .container::before {
  display: none;
}

.foot-name {
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--band-ink);
}

.foot-links {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 4px 24px;
}

.foot-links a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  text-decoration: none;
  transition: color 0.2s;
}

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

/* ── Motion ── */
@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
}

@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }

  @view-transition {
    navigation: auto;
  }

  .rise {
    animation: rise 0.7s var(--ease) both;
    animation-delay: calc(var(--i, 0) * 70ms);
  }
}

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

/* ── Responsive ── */
@media (max-width: 900px) {
  .hero-foot,
  .split,
  .products {
    grid-template-columns: minmax(0, 1fr);
  }

  .hero-foot {
    align-items: start;
  }

  .services {
    grid-template-columns: minmax(0, 1fr);
    gap: 28px;
  }

  .service {
    padding-top: 16px;
  }

  .service p {
    max-width: 52ch;
  }

  .product {
    min-height: 0;
  }

  .toc {
    display: none;
  }
}

@media (pointer: coarse) {
  .toc a {
    padding: 11px 0;
  }
}

@media (max-width: 520px) {
  .site-nav .nav-optional {
    display: none;
  }

  .details > div {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 360px) {
  .site-nav {
    gap: 8px;
  }

  .site-nav a.head-cta {
    padding: 0 10px;
  }
}
