/* Hallmark · shape: Feature Ledger (thin: hero, layers, section cut, measured figure) · genre: modern-minimal · theme: Vantage (by request) · vantage: object/steel · redesign: full
 * hero: Stage (/), Settled (/404) · nav: edge-aligned · footer: mast · imagery: none, a generated point cloud · signature: the Pixel Works mark scanned as a turning point cloud, the open block found in lime
 * axes: dark/grotesk-sans/chromatic-lime · posture: restrained · contrast: pass · fold: pass · v2.0.0 */
/* Hallmark · pre-emit critique: P4 H4 E4 S5 R4 V4 · weakest: E (evidence), there is nothing to measure, so the cloud scans the company's own mark and no figure is invented */
/* Hallmark · waive 77 · the owner asked for a simple site with little disclosed */
/* Hallmark · waive 44c, 78 on /privacy and /terms · legal documents are Read pages: section heads stay at title size */
/* Hallmark · waive 39b, 49 on .switch · each switch is a ruled row carrying its line of work and its sentence, the row is the hit target */
/* Hallmark · waive 77 on .cut · a decorative band between sections, deliberately without mass */
/* Hallmark · reworded h3 "SaaS products", "Technical support", "Applied AI" to switch labels · a heading cannot sit inside a button; the words are kept */
/* Hallmark · reworded "What we do" to "Three lines of work." · 54 names the heading as an eyebrow */
@import url("./tokens.css?v=3");
@import url("./base.css?v=3");

/* ---------- local tokens ---------- */
:root { --nav-h: 72px; }

body { font-weight: 300; font-variation-settings: "SHRP" 0; color: var(--color-ink-2); }
h1, h2, h3 { color: var(--color-ink); font-weight: var(--display-weight); font-variation-settings: "SHRP" 100; letter-spacing: var(--tracking-display); line-height: 1; }
h3 { font-weight: 400; letter-spacing: -0.015em; }
strong { font-weight: 500; color: var(--color-ink); }
a:hover { text-decoration-color: var(--color-accent); }

/* corner-tick frame */
.ticks { position: relative; }
.ticks::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; border: var(--rule-hair) solid var(--color-rule-2);
  -webkit-mask: conic-gradient(at var(--tick) var(--tick), transparent 75%, var(--color-ink) 0) 0 0 / calc(100% - var(--tick)) calc(100% - var(--tick));
  mask: conic-gradient(at var(--tick) var(--tick), transparent 75%, var(--color-ink) 0) 0 0 / calc(100% - var(--tick)) calc(100% - var(--tick));
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 var(--space-lg);
  border: 0; border-radius: var(--radius-pill); background: var(--color-accent); color: var(--color-accent-ink);
  font: 400 var(--text-md)/1 var(--font-body); white-space: nowrap; text-decoration: none; cursor: pointer;
  transition: background-color var(--dur-short) var(--ease-out), transform var(--dur-short) var(--ease-out);
}
.btn:hover { background: var(--color-accent-hi); }
.btn:active { transform: translateY(1px); }
.btn:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 3px; transition: none; }
.btn--line { background: transparent; color: var(--color-ink); box-shadow: inset 0 0 0 var(--rule-hair) var(--color-rule-2); }
.btn--line:hover { background: var(--color-paper-2); }

/* ---------- nav ---------- */
.nav { position: sticky; top: 0; z-index: var(--z-sticky-nav); background: color-mix(in oklab, var(--color-paper) 82%, transparent); backdrop-filter: blur(12px); border-bottom: var(--rule-hair) solid var(--color-rule); }
.nav__row { display: flex; align-items: center; justify-content: space-between; gap: var(--space-lg); height: var(--nav-h); }
.mark { display: inline-flex; align-items: center; gap: var(--space-sm); font-size: var(--text-lg); font-weight: 400; letter-spacing: -0.02em; text-decoration: none; color: var(--color-ink); }
.mark svg { width: 18px; height: 18px; fill: var(--color-ink); }
.mark svg .hole { fill: none; stroke: var(--color-accent); stroke-width: 1.2; }
.mark:focus-visible { outline-offset: 4px; }
.nav .btn { min-height: 44px; }

/* ---------- hero ---------- */
.hero { position: relative; min-height: calc(100svh - var(--nav-h)); display: grid; align-items: center; overflow: clip; }
.hero__cloud { position: absolute; inset: 0 0 0 30%; }
.hero__cloud canvas { width: 100%; height: 100%; display: block; -webkit-mask: radial-gradient(75% 80% at 55% 50%, var(--color-ink) 45%, transparent 100%); mask: radial-gradient(75% 80% at 55% 50%, var(--color-ink) 45%, transparent 100%); }
.hero__grid { position: relative; z-index: var(--z-raised); display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap-columns); padding-block: var(--space-3xl); pointer-events: none; }
.hero__copy { grid-column: 1 / span 5; display: grid; gap: var(--space-lg); pointer-events: auto; }
.hero__copy h1 { font-size: clamp(3rem, 5.6vw + 0.4rem, 6.25rem); max-width: 10ch; }
.hero__copy .lead { max-width: 30ch; }
.hero__actions { display: flex; flex-wrap: wrap; gap: var(--space-sm); margin-top: var(--space-xs); }
.hero__caption { position: absolute; z-index: var(--z-raised); right: var(--gutter); bottom: var(--space-xl); font-size: var(--text-sm); color: var(--color-muted); }

/* callout with a leader to the found block */
.callout { position: absolute; z-index: var(--z-raised); left: 0; top: 0; pointer-events: none; opacity: 0; transition: opacity var(--dur-long) var(--ease-out); will-change: transform; }
.callout.is-on { opacity: 1; }
.callout__dot { position: absolute; left: -3px; top: -3px; width: 6px; height: 6px; border-radius: 50%; background: var(--color-accent); }
.callout__leader { position: absolute; left: 0; bottom: 0; width: var(--rule-hair); height: 72px; background: var(--color-accent); }
.callout__label { position: absolute; left: 0; bottom: 72px; display: grid; gap: var(--space-3xs); padding: var(--space-xs) var(--space-sm); white-space: nowrap; background: color-mix(in oklab, var(--color-paper) 78%, transparent); font-size: var(--text-sm); }
.callout__label span { color: var(--color-muted); }
.callout__label b { font-weight: 400; color: var(--color-ink); font-size: var(--text-md); }

/* ---------- layers ---------- */
.layers { padding-block: var(--section-gap); }
.layers__grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap-columns); row-gap: var(--space-2xl); align-items: center; }
.layers__copy { grid-column: 1 / span 5; display: grid; gap: var(--space-xl); }
.layers__copy h2 { font-size: var(--text-section); }
.switches { margin: 0; padding: 0; list-style: none; border-top: var(--rule-hair) solid var(--color-rule); }
.switches li { border-bottom: var(--rule-hair) solid var(--color-rule); }
.switch { display: grid; grid-template-columns: 2.25rem 1fr auto; align-items: center; gap: var(--space-md); width: 100%; padding: var(--space-md) 0; border: 0; background: none; color: inherit; font: inherit; text-align: left; cursor: pointer; }
.switch__n { color: var(--color-muted); font-size: var(--text-sm); font-variant-numeric: tabular-nums; font-weight: 400; }
.switch__t { display: grid; gap: var(--space-3xs); }
.switch__t b { font-weight: 400; font-size: var(--text-lg); color: var(--color-ink); }
.switch__t span { font-size: var(--text-sm); color: var(--color-muted); }
.switch__k { position: relative; width: 40px; height: 22px; border-radius: var(--radius-pill); background: var(--color-paper-3); box-shadow: inset 0 0 0 var(--rule-hair) var(--color-rule-2); transition: background-color var(--dur-short) var(--ease-out); }
.switch__k::after { content: ""; position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 50%; background: var(--color-muted); transition: transform var(--dur-short) var(--ease-out), background-color var(--dur-short) var(--ease-out); }
.switch[aria-checked="true"] .switch__k { background: var(--color-accent); box-shadow: none; }
.switch[aria-checked="true"] .switch__k::after { transform: translateX(18px); background: var(--color-accent-ink); }
.switch:hover .switch__t b { text-decoration: underline; text-decoration-color: var(--color-rule-2); text-underline-offset: 0.2em; }
.switch:active .switch__k { transform: scale(0.96); }
.switch:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 2px; }
.layers__view { grid-column: 7 / -1; aspect-ratio: 4 / 3; }
.layers__view canvas { width: 100%; height: 100%; display: block; }
.layers__foot { position: absolute; left: var(--space-md); right: var(--space-md); bottom: var(--space-sm); display: flex; justify-content: space-between; gap: var(--space-md); font-size: var(--text-xs); color: var(--color-muted); }

/* ---------- section cut ---------- */
.cut { position: relative; height: clamp(140px, 18vw, 240px); border-block: var(--rule-hair) solid var(--color-rule); background: var(--color-paper-2); overflow: clip; }
.cut canvas { width: 100%; height: 100%; display: block; }

/* ---------- contact ---------- */
.contact { padding-block: var(--section-gap) var(--section-gap-l); }
.contact__grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap-columns); row-gap: var(--space-xl); align-items: end; }
.contact__grid > h2 { grid-column: 1 / span 4; font-size: var(--text-section); }
.measure { grid-column: 5 / -1; position: relative; display: grid; gap: var(--space-sm); padding: clamp(28px, 4vw, 56px); overflow: clip; }
.measure__label { font-size: var(--text-sm); color: var(--color-muted); }
.measure__addr { justify-self: start; font-size: clamp(1.75rem, 5vw, 5rem); font-weight: 200; font-variation-settings: "SHRP" 100; letter-spacing: -0.04em; line-height: 1; color: var(--color-ink); white-space: nowrap; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 0.16em; text-decoration-color: var(--color-rule-2); transition: text-decoration-color var(--dur-short) var(--ease-out); }
.measure__addr:hover { text-decoration-color: var(--color-accent); }
.measure__addr:active { color: var(--color-accent-hi); }
.measure__addr:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 6px; }
.measure__sweep { position: absolute; top: 0; bottom: 0; left: 0; width: 100%; pointer-events: none; }
.measure__sweep::before { content: ""; position: absolute; top: 0; bottom: 0; left: 0; width: 1px; background: var(--color-accent); opacity: 0; animation: sweep 7s var(--ease-in-out) infinite 1.5s; }
@keyframes sweep { 0% { transform: translateX(0); opacity: 0; } 6% { opacity: 0.6; } 48% { opacity: 0.6; } 54%, 100% { transform: translateX(var(--sweep-w, 900px)); opacity: 0; } }

/* ---------- footer ---------- */
.foot { border-top: var(--rule-hair) solid var(--color-rule); }
.foot__mast { display: block; padding-top: var(--space-2xl); font-size: clamp(3.5rem, 11.5vw, 11rem); font-weight: 200; font-variation-settings: "SHRP" 100; letter-spacing: -0.05em; line-height: 0.85; color: var(--color-ink); }
.foot__row { display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--space-md); padding-block: var(--space-xl); font-size: var(--text-sm); color: var(--color-muted); }
.foot__links { display: flex; gap: var(--space-lg); }
.foot__links a { color: var(--color-ink-2); text-decoration-color: transparent; transition: text-decoration-color var(--dur-short) var(--ease-out); }
.foot__links a:hover { text-decoration-color: var(--color-accent); }

/* ---------- 404 ---------- */
.lost { position: relative; min-height: calc(100svh - var(--nav-h) - 120px); display: grid; align-items: center; padding-block: var(--space-3xl); }
.lost__inner { display: grid; gap: var(--space-lg); justify-items: start; }
.lost h1 { font-size: var(--text-display); }

/* ---------- legal documents ---------- */
.doc { padding-block: var(--space-2xl) var(--section-gap); }
.doc__grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap-columns); align-items: start; }
.doc__margin { grid-column: 1 / span 3; position: sticky; top: calc(var(--nav-h) + var(--space-lg)); display: grid; gap: var(--space-lg); padding: var(--space-lg); }
.doc__label { font-size: var(--text-sm); color: var(--color-muted); }
.doc__nav { display: grid; gap: var(--space-xs); margin: 0; padding: 0; list-style: none; }
.doc__nav a { white-space: nowrap; color: var(--color-ink-2); text-decoration-color: transparent; }
.doc__nav a:hover { text-decoration-color: var(--color-accent); }
.doc__nav a[aria-current="page"] { color: var(--color-ink); text-decoration-color: var(--color-accent); }
.doc__date { font-size: var(--text-sm); color: var(--color-muted); }
.doc__body { grid-column: 5 / span 8; }
.doc__title { font-size: var(--text-display-s); max-width: 16ch; }
.doc__intro { margin-top: var(--space-lg); max-width: 60ch; font-size: var(--text-lead); line-height: 1.5; }
.doc section { margin-top: var(--space-2xl); padding-top: var(--space-lg); border-top: var(--rule-hair) solid var(--color-rule); }
.doc h2 { font-size: var(--text-title); font-weight: 400; max-width: none; letter-spacing: -0.015em; }
.doc section p, .doc section ul { max-width: 66ch; margin-top: var(--space-md); }
.doc section ul { padding-left: 1.25em; }
.doc section li + li { margin-top: var(--space-xs); }
.doc section li::marker { color: var(--color-accent); }
.doc__body a { text-decoration-color: var(--color-accent); }

/* ---------- responsive ---------- */
@media (max-width: 60rem) {
  .hero { min-height: 0; display: flex; flex-direction: column; align-items: stretch; }
  .hero__cloud { position: relative; inset: auto; order: 2; height: 82vw; max-height: 520px; }
  .hero__grid { padding-block: var(--space-2xl) 0; }
  .hero__copy, .layers__copy, .layers__view, .contact__grid > h2, .measure { grid-column: 1 / -1; }
  .hero__caption { display: none; }
  .doc__margin { grid-column: 1 / -1; position: static; margin-bottom: var(--space-xl); }
  .doc__nav { display: flex; flex-wrap: wrap; gap: var(--space-xs) var(--space-lg); }
  .doc__body { grid-column: 1 / -1; }
}
@media (max-width: 40rem) {
  :root { --nav-h: 60px; }
  .hero__actions .btn { flex: 1 1 100%; }
  .measure__addr { font-size: clamp(1.5rem, 8.2vw, 2.25rem); }
  .callout__leader { height: 48px; } .callout__label { bottom: 48px; }
}

@media (prefers-reduced-motion: reduce) {
  .measure__sweep::before { animation: none; opacity: 0; }
  .btn, .switch__k, .switch__k::after, .callout, .foot__links a, .measure__addr { transition: none; }
}
