/* Software page (EN and ES). Same system as the home page: tokens, type, bar, footer, thin rules, numbered rules. */
@font-face { font-family: "Schibsted Grotesk"; src: url("/fonts/schibsted-grotesk-latin-wght-normal.woff2") format("woff2"); font-weight: 400 900; font-display: swap; }
@font-face { font-family: "Spline Sans Mono"; src: url("/fonts/spline-sans-mono-latin-wght-normal.woff2") format("woff2"); font-weight: 300 700; font-display: swap; }

:root {
  --bg: #f6f7f8; --band: #ffffff; --ink: #0b0d10; --muted: #5b6570; --line: #dde1e5; --ctl-line: #7b868f;
  --text-2: #3d454e; --ok: #0f6c80; --solid-ink: #ffffff; --solid-hover: #22272d; --line-hover: #eceef0;
  --sans: "Schibsted Grotesk", ui-sans-serif, system-ui, sans-serif;
  --mono: "Spline Sans Mono", ui-monospace, Menlo, monospace;
  --ease: cubic-bezier(.23, 1, .32, 1);
  color-scheme: light;
}
:root[data-theme="dark"] {
  --bg: #0b0d10; --band: #0f1216; --ink: #e8ecef; --muted: #8f99a3; --line: #20262d; --ctl-line: #5e6872;
  --text-2: #b9c1c8; --ok: #7fd0e2; --solid-ink: #0b0d10; --solid-hover: #ffffff; --line-hover: #171b20;
  color-scheme: dark;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0b0d10; --band: #0f1216; --ink: #e8ecef; --muted: #8f99a3; --line: #20262d; --ctl-line: #5e6872;
    --text-2: #b9c1c8; --ok: #7fd0e2; --solid-ink: #0b0d10; --solid-hover: #ffffff; --line-hover: #171b20;
    color-scheme: dark;
  }
}

* { box-sizing: border-box; margin: 0; }
html { background: var(--bg); scroll-padding-top: 12px; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body { background: var(--bg); color: var(--ink); font: 400 1.0625rem/1.5 var(--sans); -webkit-font-smoothing: antialiased; }
::selection { background: var(--ink); color: var(--bg); }
p, li { text-wrap: pretty; }
a { color: inherit; text-underline-offset: .2em; text-decoration-thickness: 1px; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; border-radius: 3px; }
.wrap { width: min(1280px, 100% - 48px); margin-inline: auto; }
.mono { font-family: var(--mono); font-size: .75rem; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

/* bar: identical to the home page */
.bar { display: flex; align-items: center; gap: 28px; height: 60px; }
.bar .mark { display: inline-flex; align-items: center; gap: 8px; white-space: nowrap; text-decoration: none; font-weight: 600; letter-spacing: -.01em; }
.bar .mark .logo { width: 21px; height: 21px; }
.bar ul { display: flex; gap: 24px; list-style: none; padding: 0; margin-left: auto; }
.bar ul a { color: var(--muted); text-decoration: none; font-size: .9375rem; transition: color .16s var(--ease); }
.bar ul a:hover { color: var(--ink); }
.bar .lang { margin-left: 4px; }
.bar .theme { margin-left: -16px; }
.logo { width: 1.25em; height: 1.25em; fill: currentColor; flex: none; }
.btn { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; padding: 0 18px; border-radius: 999px; font: 500 .9375rem/1 var(--sans); text-decoration: none; border: 1px solid var(--ink); transition: transform .16s var(--ease), background-color .16s var(--ease); }
.btn:active { transform: scale(.97); }
.btn-solid { background: var(--ink); color: var(--solid-ink); }
.btn-solid:hover { background: var(--solid-hover); }
.btn-line:hover { background: var(--line-hover); }
.btn .mono { opacity: .7; }
.theme, .lang { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 999px; border: 1px solid var(--ctl-line); background: none; color: var(--ink); cursor: pointer; transition: transform .16s var(--ease), border-color .16s var(--ease); }
.theme:hover, .lang:hover { border-color: var(--muted); }
.theme:active, .lang:active { transform: scale(.94); }
.theme svg { width: 18px; height: 18px; }
.lang { font: 500 .75rem/1 var(--mono); text-decoration: none; letter-spacing: .02em; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 10; background: var(--ink); color: var(--bg); padding: 10px 14px; border-radius: 6px; text-decoration: none; }
.skip:focus { top: 10px; }

.kicker { display: flex; align-items: center; gap: 10px; font: 500 .75rem/1.2 var(--mono); color: var(--muted); letter-spacing: .02em; }
.kicker::before { content: ""; width: 20px; height: 1px; background: currentColor; }
.kicker + h1, .kicker + h2 { margin-top: 16px; }
.sec { padding: 88px 0; }
.sec h2 { font-weight: 500; font-size: clamp(2rem, 3.6vw, 3rem); line-height: 1.04; letter-spacing: -.035em; max-width: 22ch; text-wrap: balance; }
.sec .intro { margin-top: 12px; color: var(--muted); max-width: 54ch; }
.band { background: var(--band); border-block: 1px solid var(--line); }
.status { --st: var(--ok); display: inline-flex; align-items: center; gap: 8px; font: 500 .75rem/1.2 var(--mono); color: var(--ink); white-space: nowrap; }
.status::before { content: ""; flex: none; width: 7px; height: 7px; border-radius: 50%; background: var(--st); }

/* 1 · opening: the line, and what it means */
.open { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); gap: 40px 80px; align-items: end; padding: 104px 0 96px; }
.open h1 { margin-top: 16px; font-weight: 500; font-size: clamp(2.5rem, 5.4vw, 4.875rem); line-height: .98; letter-spacing: -.045em; max-width: 14ch; text-wrap: balance; }
.open .say p { color: var(--text-2); font-size: 1.1875rem; line-height: 1.5; max-width: 38ch; }
.open .say .tools { margin-top: 22px; padding-top: 16px; border-top: 1px solid var(--ink); color: var(--ink); font-size: .8125rem; line-height: 1.6; }

/* 2 · products in use: a ledger, one row per product. The name is the link. */
.prod { list-style: none; padding: 0; margin-top: 48px; border-top: 1px solid var(--ink); }
.prod > li { display: grid; grid-template-columns: 52px minmax(0, 14rem) minmax(0, 1fr) minmax(0, 20rem); gap: 6px 32px; align-items: baseline; padding: 26px 0 28px; border-bottom: 1px solid var(--line); }
.prod .n { font: 500 .75rem/1.2 var(--mono); color: var(--muted); font-variant-numeric: tabular-nums; }
.prod h3 { font-weight: 500; font-size: clamp(1.5rem, 2.2vw, 1.875rem); line-height: 1.1; letter-spacing: -.028em; }
.prod h3 a { display: inline-flex; align-items: baseline; gap: 8px; text-decoration: none; }
.prod h3 a:hover { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .16em; }
.prod .ar { width: .5em; height: .5em; fill: none; stroke: currentColor; stroke-width: 1.4; color: var(--muted); transition: transform .2s var(--ease), color .2s var(--ease); }
.prod h3 a:hover .ar { transform: translate(2px, -2px); color: var(--ink); }
.prod .url { display: block; margin-top: 8px; color: var(--muted); }
.prod .what p { color: var(--ink); font-size: 1.125rem; line-height: 1.4; letter-spacing: -.01em; max-width: 40ch; }
.prod .what .fact { margin-top: 8px; color: var(--text-2); font-size: .9688rem; line-height: 1.45; letter-spacing: 0; }
.prod dl { display: grid; grid-template-columns: 4.5rem minmax(0, 1fr); gap: 8px 12px; font: 400 .75rem/1.45 var(--mono); }
.prod dt { color: var(--muted); }
.prod dd { color: var(--ink); }
.prod dd .status { margin-top: -1px; }

/* 3 · how I build software: four rules, numbered like "How I work" */
.rules { list-style: none; padding: 0; margin-top: 52px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 64px; }
.rules li { display: grid; grid-template-columns: 76px minmax(0, 1fr); align-content: start; column-gap: 8px; padding: 28px 0 36px; border-top: 1px solid var(--ink); }
.rules .n { grid-row: span 2; font: 400 3rem/.82 var(--sans); letter-spacing: -.05em; color: var(--muted); font-variant-numeric: tabular-nums; }
.rules h3 { font-weight: 500; font-size: clamp(1.4375rem, 2.1vw, 1.875rem); line-height: 1.1; letter-spacing: -.028em; text-wrap: balance; }
.rules p { margin-top: 12px; color: var(--text-2); max-width: 40ch; }

/* 4 · product work: label and line, like Studies */
.pw { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: 40px 72px; align-items: start; }
.pw h2 { max-width: 15ch; }
.pw .closer { margin-top: 28px; padding-top: 16px; border-top: 1px solid var(--ink); font-size: 1.1875rem; line-height: 1.45; max-width: 32ch; }
.learn { list-style: none; padding: 0; border-top: 1px solid var(--ink); }
.learn li { display: grid; grid-template-columns: 104px minmax(0, 1fr); gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--line); line-height: 1.45; }
.learn .mono { color: var(--muted); padding-top: 3px; }
.learn .why { display: block; margin-top: 4px; color: var(--text-2); font-size: .9688rem; max-width: 52ch; }

/* 5 · close: the Lab and the mail */
.close { padding-bottom: 72px; }
.doors { list-style: none; padding: 0; margin-top: 40px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-top: 1px solid var(--line); }
.doors > li + li { border-left: 1px solid var(--line); padding-left: 32px; }
.door { display: grid; gap: 6px; padding: 24px 32px 6px 0; text-decoration: none; border-radius: 3px; }
.door .t { display: inline-flex; align-items: baseline; gap: 10px; font-size: clamp(1.5rem, 3vw, 2.25rem); line-height: 1.1; letter-spacing: -.03em; overflow-wrap: anywhere; }
.door .ar { flex: none; width: .45em; height: .45em; fill: none; stroke: currentColor; stroke-width: 1.4; color: var(--muted); transition: transform .2s var(--ease), color .2s var(--ease); }
.door .d { color: var(--muted); font-size: .9375rem; line-height: 1.4; max-width: 36ch; }
a.door:hover .t { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .16em; }
a.door:hover .ar { transform: translate(2px, -2px); color: var(--ink); }
.close .cta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 36px; list-style: none; padding: 0; }

footer { border-top: 1px solid var(--line); padding: 24px 0 40px; color: var(--muted); }
.foot { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px 24px; }
.foot .c { display: inline-flex; align-items: center; gap: 8px; }
.foot .logo { width: 16px; height: 16px; }

/* Quiet arrival on scroll, as on the home page. No scroll timelines or reduced motion: the text is simply there. */
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    [data-rv] { animation: rv-in linear both; animation-timeline: view(); animation-range: entry calc(var(--k, 0) * 6%) entry calc(45% + var(--k, 0) * 6%); }
  }
}
@keyframes rv-in { from { opacity: 0; transform: translateY(16px); } }

@media (max-width: 1080px) {
  .bar ul { display: none; } .bar .lang { margin-left: auto; }
  .prod > li { grid-template-columns: 52px minmax(0, 13rem) minmax(0, 1fr); }
  .prod dl { grid-column: 3; margin-top: 12px; }
}
@media (max-width: 900px) {
  .bar { gap: 12px; } .bar .theme { margin-left: -4px; }
  .sec { padding: 64px 0; }
  .open { grid-template-columns: 1fr; padding: 64px 0 56px; gap: 28px; }
  .prod { margin-top: 32px; }
  .prod > li { grid-template-columns: 36px minmax(0, 1fr); padding: 20px 0 22px; }
  .prod .what, .prod dl { grid-column: 2; }
  .prod .what { margin-top: 10px; }
  .prod .url { margin-top: 4px; }
  .rules { grid-template-columns: 1fr; margin-top: 36px; }
  .rules li { grid-template-columns: 52px minmax(0, 1fr); padding: 22px 0 26px; }
  .rules .n { font-size: 2.25rem; }
  .pw { grid-template-columns: 1fr; }
  .learn li { grid-template-columns: 84px minmax(0, 1fr); }
  .doors { grid-template-columns: 1fr; }
  .doors > li + li { border-left: 0; padding-left: 0; border-top: 1px solid var(--line); }
  .door { padding: 20px 0; }
}
@media (max-width: 420px) {
  .bar .btn { padding: 0 14px; } .bar .btn .mono { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .btn, .theme, .lang, .prod .ar, .door .ar { transition: none; }
}
