/* Hallmark · shape: Manifesto · genre: modern-minimal · theme: Vantage (by request) · redesign: full · draw: 296d43 · copy: verbatim
 * hero: Poster · nav: slab · footer: letter close · imagery: none · signature: the hero is a live point cloud of terrain, a sweep lights it every seven seconds, and the one lime cluster is the thing found · vantage: terrain/steel
 * axes: dark/grotesk-sans/chromatic-lime · posture: restrained · contrast: pass · fold: pass · v2.0.0 */
/* Hallmark · pre-emit critique: P4 H4 E4 S3 R4 V4 · weakest: S, there are no real scans or screenshots to show, so the cloud is generated and carries no figures; the lime mound is labelled with the page's own words */
@import url("./tokens.css");
@import url("./base.css");

:root {
  --nav-h: 64px;
  --tick-line: var(--color-rule-2);
  --tick-line-hi: var(--color-muted);
}

html { scroll-padding-top: calc(var(--nav-h) + var(--space-lg)); }
body { font-weight: 300; font-variation-settings: "SHRP" 0; font-size: 1.0625rem; }
h1, h2, h3 { font-weight: var(--display-weight); font-variation-settings: "SHRP" 100; line-height: 1; }
p { color: var(--color-ink-2); }

.section { padding-block: var(--section-gap-s); }
.grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gap-columns); }
.label { font-size: var(--text-sm); font-weight: 400; color: var(--color-muted); line-height: 1.3; }

/* Corner ticks: a frame drawn only at its corners */
.ticks { position: relative; --t: var(--tick); }
.ticks::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  --m: linear-gradient(var(--tick-line), var(--tick-line));
  background:
    var(--m) left top / var(--t) 1px no-repeat, var(--m) left top / 1px var(--t) no-repeat,
    var(--m) right top / var(--t) 1px no-repeat, var(--m) right top / 1px var(--t) no-repeat,
    var(--m) left bottom / var(--t) 1px no-repeat, var(--m) left bottom / 1px var(--t) no-repeat,
    var(--m) right bottom / var(--t) 1px no-repeat, var(--m) right bottom / 1px var(--t) no-repeat;
  transition: transform var(--dur-short) var(--ease-out), opacity var(--dur-short) var(--ease-out);
}

/* Controls */
.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);
  font: 400 var(--text-md)/1 var(--font-body); font-variation-settings: "SHRP" 0;
  text-decoration: none; white-space: nowrap; cursor: pointer;
  background: var(--color-accent); color: var(--color-accent-ink);
  transition: background-color var(--dur-short) var(--ease-out), box-shadow var(--dur-short) var(--ease-out), transform var(--dur-micro) var(--ease-out);
}
.btn:hover { background: var(--color-accent-hi); }
.btn:active { transform: translateY(1px); background: var(--color-accent); }
.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-3); box-shadow: inset 0 0 0 var(--rule-hair) var(--color-muted); }
.btn--line:active { background: var(--color-paper-2); }
.btn--small { min-height: 40px; padding: 0 var(--space-md); font-size: var(--text-sm); }

/* ---------- Nav: a slab ---------- */

.nav {
  position: sticky; top: 0; z-index: var(--z-sticky-nav);
  height: var(--nav-h); background: var(--color-paper-2);
  border-bottom: var(--rule-hair) solid var(--color-rule-2);
}
.nav .container { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: var(--space-md); }
.nav__mark { font-size: var(--text-lg); font-weight: 400; font-variation-settings: "SHRP" 100; letter-spacing: -0.02em; text-decoration: none; color: var(--color-ink); white-space: nowrap; }
.nav ul { display: flex; align-items: center; gap: var(--space-2xs); list-style: none; margin: 0; padding: 0; }
.nav__link {
  display: inline-flex; align-items: center; min-height: 40px; padding: 0 var(--space-sm);
  font-size: var(--text-sm); font-weight: 400; color: var(--color-ink-2); text-decoration: none; border-radius: var(--radius-card);
  transition: color var(--dur-short) var(--ease-out), background-color var(--dur-short) var(--ease-out);
}
.nav__link:hover { color: var(--color-ink); background: var(--color-paper-3); }
.nav__link:active { background: var(--color-paper); }

/* ---------- Hero: a poster of points ---------- */

.hero { position: relative; isolation: isolate; min-height: calc(100svh - var(--nav-h)); display: flex; align-items: flex-end; overflow: clip; }
.cloud { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -2; display: block; }
.hero__veil {
  position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    linear-gradient(to top, var(--color-paper) 0%, var(--color-paper) 6%, color-mix(in oklab, var(--color-paper) 55%, transparent) 20%, transparent 40%),
    linear-gradient(to right, var(--color-paper) 0%, color-mix(in oklab, var(--color-paper) 82%, transparent) 30%, transparent 62%);
}
.hero__inner { padding-bottom: var(--space-3xl); padding-top: var(--space-3xl); }
.hero h1 { max-width: none; font-size: clamp(3.5rem, 9.5vw, 9rem); letter-spacing: var(--tracking-display); }
.hero .lead { margin-top: var(--space-lg); font-size: var(--text-xl); font-weight: 300; color: var(--color-ink-2); }
.actions { display: flex; gap: var(--space-md); flex-wrap: wrap; margin-top: var(--space-xl); }

.callout { position: absolute; left: 0; top: 0; z-index: 1; pointer-events: none; will-change: transform; opacity: 0; transition: opacity var(--dur-long) var(--ease-out); }
.callout.is-on { opacity: 1; }
.callout__dot { position: absolute; left: -2px; top: -2px; width: 5px; height: 5px; border-radius: 50%; background: var(--color-accent); }
.callout__leader { position: absolute; left: 0; bottom: 0; width: var(--rule-hair); height: 88px; background: var(--color-accent); }
.callout__text { position: absolute; left: var(--space-sm); bottom: 88px; white-space: nowrap; padding: var(--space-3xs) var(--space-xs); border-radius: var(--radius-card); background: color-mix(in oklab, var(--color-paper) 80%, transparent); font-size: var(--text-sm); font-weight: 400; color: var(--color-ink); }

/* ---------- About: the claim, set large ---------- */

.about h2 { grid-column: 1 / span 4; font-size: var(--text-title); font-weight: 400; color: var(--color-muted); padding-top: var(--space-sm); }
.claims { grid-column: 5 / span 8; display: grid; gap: var(--space-xl); }
.claims p { max-width: 46ch; color: var(--color-ink); font-size: clamp(1.5rem, 2.1vw + 0.6rem, 2.5rem); line-height: 1.25; letter-spacing: -0.015em; font-weight: 300; }
.claims p + p { color: var(--color-ink-2); font-size: var(--text-lead); line-height: 1.5; letter-spacing: 0; max-width: 46ch; }

/* ---------- A section cut ---------- */

.cutwrap { padding-bottom: var(--section-gap-s); }
.cut { height: 168px; }
.cut canvas { width: 100%; height: 100%; display: block; }

/* ---------- Projects ---------- */

.projects { background: var(--color-paper-2); }
.projects__head { margin-bottom: var(--space-2xl); }
.projects__head h2 { font-size: var(--text-section); }
.project-list { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--space-lg); }
.project { padding: var(--space-xl); align-items: start; row-gap: var(--space-lg); }
.project:hover { --tick-line: var(--tick-line-hi); }
.project:hover::before { transform: scale(1.012, 1.04); }
.project h3 { grid-column: 1 / span 6; font-size: var(--text-display-s); letter-spacing: var(--tracking-display); }
.project__body { grid-column: 7 / span 6; display: grid; gap: var(--space-lg); }
.project__body > p { font-size: var(--text-lead); line-height: 1.45; color: var(--color-ink); max-width: 38ch; }
.facts { display: grid; grid-template-columns: max-content minmax(0, 1fr); column-gap: var(--space-lg); row-gap: var(--space-md); margin: 0; align-items: center; }
.facts dt { font-size: var(--text-sm); font-weight: 400; color: var(--color-muted); }
.facts dd { margin: 0; color: var(--color-ink-2); }

/* ---------- Contact ---------- */

.contact__intro { grid-column: 1 / span 5; display: grid; gap: var(--space-lg); align-content: start; }
.contact h2 { font-size: var(--text-section); }
.contact__intro p { font-size: var(--text-lead); max-width: 30ch; }
.channels { grid-column: 7 / span 6; list-style: none; margin: 0; padding: 0; border-top: var(--rule-hair) solid var(--color-rule-2); }
.channels li { display: grid; grid-template-columns: 7.5rem minmax(0, 1fr); align-items: baseline; gap: var(--space-md); padding: var(--space-lg) 0; border-bottom: var(--rule-hair) solid var(--color-rule); }
.channels a {
  font-size: var(--text-title); font-weight: 300; font-variation-settings: "SHRP" 100; letter-spacing: -0.01em; line-height: 1.2; color: var(--color-ink);
  text-decoration-line: underline; text-decoration-color: transparent; text-underline-offset: 0.22em; text-decoration-thickness: var(--rule-hair);
  overflow-wrap: anywhere; justify-self: start;
  transition: text-decoration-color var(--dur-short) var(--ease-out), color var(--dur-short) var(--ease-out);
}
.channels a:hover { text-decoration-color: var(--color-accent); color: var(--color-accent-hi); }
.channels a:active { color: var(--color-ink-2); }

/* ---------- Footer: a letter close ---------- */

.footer { padding-block: var(--space-2xl) var(--space-xl); border-top: var(--rule-hair) solid var(--color-rule); }
.footer__sign { font-size: var(--text-3xl); font-weight: 300; font-variation-settings: "SHRP" 100; letter-spacing: var(--tracking-display); line-height: 1.1; color: var(--color-ink); max-width: none; }
.footer__row { display: flex; justify-content: space-between; align-items: center; gap: var(--space-lg); flex-wrap: wrap; margin-top: var(--space-xl); }
.footer__row ul { display: flex; gap: var(--space-2xs); list-style: none; margin: 0 0 0 calc(-1 * var(--space-sm)); padding: 0; flex-wrap: wrap; }
.footer-small { display: none; }

/* ---------- Narrower screens ---------- */

@media (max-width: 60rem) {
  .about h2, .claims, .contact__intro, .channels { grid-column: 1 / -1; }
  .claims { margin-top: var(--space-lg); }
  .channels { margin-top: var(--space-xl); }
  .project { padding: var(--space-lg); }
  .project h3, .project__body { grid-column: 1 / -1; }
  .callout { display: none; }
  .hero__veil {
    background:
      linear-gradient(to top, var(--color-paper) 0%, color-mix(in oklab, var(--color-paper) 70%, transparent) 38%, transparent 62%);
  }
  .hero { min-height: calc(100svh - var(--nav-h)); }
}

@media (max-width: 40rem) {
  .nav__mark { display: none; }
  .nav .container { justify-content: center; }
  .hero__inner { padding-bottom: var(--space-2xl); }
  .channels li { grid-template-columns: minmax(0, 1fr); gap: var(--space-2xs); }
  .cut { height: 120px; }
  .footer-large { display: none; }
  .footer-small { display: block; }
}
