/* Lasman Technologies — one stylesheet, first-party, no build step.
   Palette and typography are shared with lasmanpainting.com on purpose: same
   owner, same family of businesses. Token values are copied from that site's
   :root so the two stay in step — if the painting brand shifts, update both. */

/* Self-hosted brand fonts, same files as the painting site. Open Sans is
   declared once with a weight range rather than as three identical copies
   (the painting site ships the same 43KB file under 400/600/700). */
@font-face {
  font-family: 'Arsenal'; font-style: normal; font-weight: 400; font-display: swap;
  src: url('fonts/arsenal-400.woff2') format('woff2');
}
@font-face {
  font-family: 'Arsenal'; font-style: normal; font-weight: 700; font-display: swap;
  src: url('fonts/arsenal-700.woff2') format('woff2');
}
@font-face {
  font-family: 'Open Sans'; font-style: normal; font-weight: 400 700; font-display: swap;
  src: url('fonts/opensans-400.woff2') format('woff2');
}

:root {
  --paper:      #ffffff;
  --paper-2:    #f4f8fc;
  --card:       #ffffff;
  --ink:        #0e1620;
  --ink-2:      #46566a;
  --ink-3:      #5f7085;
  --rule:       #e1e9f1;
  --accent:     #0072ce;
  --accent-2:   #005ba6;
  --accent-wash:#e8f2fc;
  --on-accent:  #ffffff;
  --radius:     14px;
  --measure:    36rem;
  --sans: 'Open Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --head: 'Arsenal', 'Trebuchet MS', system-ui, sans-serif;
  --mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper:      #0e141b;
    --paper-2:    #131c25;
    --card:       #18222d;
    --ink:        #eaf1f8;
    --ink-2:      #9fb0c0;
    --ink-3:      #8798a8;
    --rule:       #26313d;
    --accent:     #3b97e8;
    --accent-2:   #64abee;
    --accent-wash:#12283c;
    --on-accent:  #0b1219;
  }
}

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation: none !important; transition: none !important; }
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* ---------- layout ---------- */

.wrap { width: 100%; max-width: 64rem; margin: 0 auto; padding: 0 1.5rem; }
.section { padding: 4.5rem 0; border-top: 1px solid var(--rule); }
.section:first-of-type { border-top: 0; }

@media (max-width: 40rem) {
  .section { padding: 3rem 0; }
}

/* ---------- type ---------- */

h1, h2, h3 { font-family: var(--head); line-height: 1.18; letter-spacing: -0.012em; margin: 0 0 0.6em; font-weight: 700; }
h1 { font-size: clamp(2.1rem, 6vw, 3.4rem); letter-spacing: -0.032em; }
h2 { font-size: clamp(1.45rem, 3.4vw, 1.9rem); }
h3 { font-size: 1.0625rem; letter-spacing: -0.01em; }
p  { margin: 0 0 1.1rem; max-width: var(--measure); }
a  { color: var(--accent); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--accent-2); }

.eyebrow {
  font-family: var(--mono);
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin: 0 0 1.1rem;
}
.lede { font-size: clamp(1.06rem, 2.1vw, 1.25rem); color: var(--ink-2); max-width: 40rem; }
.muted { color: var(--ink-2); }
.small { font-size: 0.925rem; }

/* ---------- header ---------- */

.site-header {
  position: sticky; top: 0; z-index: 20;
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  backdrop-filter: saturate(150%) blur(12px);
  border-bottom: 1px solid var(--rule);
}
.site-header .wrap {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; min-height: 4rem;
}
/* The header carries the official lockup, just small: mark left, 'Lasman'
   over 'Technologies'. Same 2.5:1 mark-to-type ratio and same tracking as
   assets/logo/lasman-logo.svg, so the nav and the file are one logo. */
.brand {
  display: inline-flex; align-items: center; gap: 0.5rem;
  color: var(--ink); text-decoration: none; font-family: var(--head); font-weight: 700;
  letter-spacing: -0.02em; white-space: nowrap;
}
.brand:hover { color: var(--ink); }
.brand svg { display: block; flex: none; height: 2rem; width: auto; }
.brand-name {
  display: block; font-size: 0.82rem; line-height: 1.04;
  letter-spacing: -0.03em;
}
.brand .brand-sub {
  display: block; color: var(--accent);
  font-weight: 450; letter-spacing: -0.018em;
}

.nav { display: flex; align-items: center; gap: 1.4rem; }
.nav a {
  color: var(--ink-2); text-decoration: none; font-size: 0.95rem;
  white-space: nowrap;
}
.nav a:hover, .nav a[aria-current="page"] { color: var(--ink); }
@media (max-width: 34rem) {
  .nav { gap: 1rem; font-size: 0.9rem; }
}
/* Below ~480px the full four-item nav can't fit beside the wordmark without
   pushing the page into horizontal scroll, so the two in-page anchors drop out.
   Work and Contact are the ones worth keeping; the rest is reachable by scroll. */
@media (max-width: 30rem) {
  .nav .nav-secondary { display: none; }
}

/* ---------- hero ---------- */

.hero { position: relative; padding: 6rem 0 4.5rem; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: -30% -10% auto -10%; height: 34rem;
  background:
    radial-gradient(52% 60% at 22% 32%, color-mix(in srgb, var(--accent) 16%, transparent), transparent 70%),
    radial-gradient(46% 54% at 82% 8%,  color-mix(in srgb, var(--accent) 10%, transparent), transparent 72%);
  pointer-events: none; z-index: 0;
}
.hero .wrap { position: relative; z-index: 1; }
.hero h1 { max-width: 18ch; }

/* The identity block. The mark carries the weight here; the h1 below stays the
   largest text on the page because it is what a visitor actually needs to read
   second. Mark and name are inline rather than <img src=.../assets/logo/...>
   so both follow the light/dark tokens — the distributable files in
   assets/logo/ have their colours baked in and cannot. */
.hero-brand {
  display: flex; align-items: center;
  gap: clamp(0.9rem, 2.2vw, 1.5rem);
  margin: 0 0 1.5rem; color: var(--ink);
}
.hero-brand svg {
  display: block; flex: none;
  height: clamp(4rem, 10vw, 6.5rem); width: auto;
}
.hero-name {
  font-family: var(--head); font-weight: 700;
  font-size: clamp(1.75rem, 4.4vw, 2.6rem);
  line-height: 1.04; letter-spacing: -0.03em;
  margin: 0; max-width: none;
}
.hero-name span {
  display: block; font-weight: 450;
  color: var(--accent); letter-spacing: -0.018em;
}
@media (max-width: 30rem) { .hero-brand { gap: 0.8rem; } }
@media (max-width: 40rem) { .hero { padding: 3.5rem 0 3rem; } }

.cta-row { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 2rem; }

.btn {
  font-family: var(--head);
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.65rem 1.15rem; border-radius: 999px;
  font-size: 0.95rem; font-weight: 550; text-decoration: none;
  border: 1px solid transparent; transition: background-color .15s ease, border-color .15s ease;
}
.btn-primary { background: var(--accent); color: var(--on-accent); }
.btn-primary:hover { background: var(--accent-2); color: var(--on-accent); }
.btn-ghost { border-color: var(--rule); color: var(--ink); background: transparent; }
.btn-ghost:hover { border-color: var(--ink-3); color: var(--ink); }

/* ---------- grids & cards ---------- */

.grid { display: grid; gap: 1rem; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 52rem) { .grid-3 { grid-template-columns: 1fr; } .grid-2 { grid-template-columns: 1fr; } }

.card {
  background: var(--card);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  padding: 1.5rem;
}
.card p:last-child { margin-bottom: 0; }
.card .num {
  font-family: var(--mono); font-size: 0.7rem; letter-spacing: 0.1em;
  color: var(--accent); display: block; margin-bottom: 0.9rem;
}

/* ---------- work ---------- */

.work-item {
  display: grid; grid-template-columns: 7.5rem 1fr; gap: 2rem;
  padding: 2rem 0; border-top: 1px solid var(--rule);
}
.work-item:first-of-type { border-top: 0; padding-top: 0.5rem; }
@media (max-width: 46rem) { .work-item { grid-template-columns: 1fr; gap: 0.75rem; } }

.tag {
  display: inline-block; font-family: var(--mono); font-size: 0.7rem;
  letter-spacing: 0.08em; text-transform: uppercase;
  padding: 0.2rem 0.55rem; border-radius: 999px;
  background: var(--accent-wash); color: var(--accent-2);
  border: 1px solid color-mix(in srgb, var(--accent) 22%, transparent);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .tag { color: var(--accent); }
}

/* Employment history: a compact timeline, not cards. Cards give each entry the
   same visual weight as the Saare Together case study above, which overstates
   it -- this is supporting evidence, not the work itself. */
.roles { list-style: none; padding: 0; margin: 2rem 0 0; }
.roles li {
  padding: 0 0 1.4rem 1.25rem;
  border-left: 2px solid var(--rule);
}
.roles li:last-child { padding-bottom: 0; }
.roles .num {
  font-family: var(--mono); font-size: 0.7rem; letter-spacing: 0.1em;
  color: var(--accent); display: block; margin-bottom: 0.35rem;
}
.roles h3 { margin: 0 0 0.35rem; }
.roles p { margin: 0; }

.stack { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-top: 1rem; padding: 0; list-style: none; }
.stack li {
  font-family: var(--mono); font-size: 0.75rem; color: var(--ink-2);
  border: 1px solid var(--rule); border-radius: 6px; padding: 0.15rem 0.5rem;
}

/* ---------- prose (privacy etc.) ---------- */

.prose { max-width: 42rem; }
.prose h2 { margin-top: 2.5rem; font-size: 1.25rem; }
.prose h2:first-of-type { margin-top: 1.5rem; }
.prose ul { padding-left: 1.15rem; max-width: var(--measure); }
/* Link text like myaccount.google.com/permissions is one unbreakable token and
   overflows the narrowest phones; same reason as the code rule below. */
.prose a { overflow-wrap: anywhere; }
.prose li { margin-bottom: 0.5rem; }
.prose code {
  font-family: var(--mono); font-size: 0.86em;
  background: var(--paper-2); border: 1px solid var(--rule);
  border-radius: 5px; padding: 0.08em 0.36em;
  /* The drive.file scope URL is one long unbreakable token; without this it
     pushes the privacy page into horizontal scroll on every phone. */
  overflow-wrap: anywhere;
}
.callout {
  background: var(--paper-2); border: 1px solid var(--rule);
  border-left: 3px solid var(--accent);
  border-radius: 8px; padding: 1rem 1.15rem; margin: 1.5rem 0;
}
.callout p:last-child { margin-bottom: 0; }

/* ---------- footer ---------- */

.site-footer {
  border-top: 1px solid var(--rule);
  padding: 2.5rem 0 3rem;
  color: var(--ink-3); font-size: 0.9rem;
}
.site-footer .wrap {
  display: flex; flex-wrap: wrap; gap: 1rem 2rem;
  align-items: baseline; justify-content: space-between;
}
.site-footer a { color: var(--ink-2); text-decoration: none; }
.site-footer a:hover { color: var(--ink); text-decoration: underline; }
.footer-links { display: flex; flex-wrap: wrap; gap: 1.25rem; }

/* ---------- utilities ---------- */

.skip {
  position: absolute; left: -9999px;
  background: var(--accent); color: var(--on-accent);
  padding: 0.6rem 1rem; border-radius: 0 0 8px 0; z-index: 50;
}
.skip:focus { left: 0; top: 0; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
