/* About, minimalist (23 Oct 2026, /minimalist-ui): one full-screen photograph with the page's one sentence on it, then plain text to read,
   in the manner of kongsberg.com/about-us. No models, no tilt, no beams, no index: type, air and hairlines.
   Warm monochrome (#111 / #2F3437 / #6b6a67 (the skill's #787774 is 4.47:1 on white) on white and bone, hairlines #EAEAEA); the only colour is a pale yellow tag.
   Headings in Teko and text in Open Sans, the site's own typography (the first version used system serif and sans; changed 23 Oct 2026). The header, footer and
   the site's own links keep the site's chrome. Static HTML is the baseline: without the script everything is simply there. */
@layer sections {
  .about-min {
    --am-ink: #111111; --am-text: #2f3437; --am-mute: #6b6a67; --am-line: #eaeaea; --am-bone: #fbfbfa;
    --am-serif: var(--font-display);   /* Teko, the site's own display face (23 Oct 2026: the page takes the site's typography) */
    --am-sans: var(--font-text);
    --am-mono: 'Geist Mono', 'SF Mono', 'JetBrains Mono', ui-monospace, Consolas, monospace;
    --am-ease: cubic-bezier(0.16, 1, 0.3, 1);
    background: #fff; color: var(--am-text); font-family: var(--am-sans);
  }
  .about-min section { scroll-margin-top: 5rem; }

  /* ───────── the cover: the photograph is the screen ───────── */
  .am-hero { position: relative; isolation: isolate; overflow: clip; min-height: max(100svh, 34rem); display: grid; align-content: space-between; background: #e6e6e4; }
  .am-hero-photo, .am-hero-photo picture, .am-hero-photo img { position: absolute; inset: 0; display: block; width: 100%; height: 100%; }
  .am-hero-photo { z-index: -1; }
  .am-hero-photo img { object-fit: cover; object-position: 58% 50%; }
  .am-hero-copy { width: 100%; padding-top: clamp(6.5rem, 13svh, 9.5rem); }
  .am-title {
    margin: 0; max-width: 9ch; color: var(--am-ink);
    font: 500 clamp(4rem, 8vw, 8.75rem)/0.92 var(--am-serif); letter-spacing: 0.005em; text-wrap: balance;
  }
  .am-title span { display: block; }
  .am-down {
    justify-self: start; display: inline-flex; align-items: center; gap: 0.7rem; min-height: 44px; margin: 0 0 clamp(1.5rem, 4svh, 2.5rem);
    font: 500 1.25rem/1 var(--am-serif); letter-spacing: 0.06em; text-transform: uppercase; color: var(--am-ink); text-decoration: none;
  }
  .am-down svg { width: 16px; height: 16px; transform: rotate(90deg); fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; transition: transform 320ms var(--am-ease); }
  .am-down { transition: transform 160ms var(--am-ease); }
  .am-down:active { transform: scale(0.97); }
  @media (hover: hover) and (pointer: fine) { .am-down:hover svg { transform: rotate(90deg) translateX(4px); } }
  .am-down:focus-visible, .am-link:focus-visible, .am-btn:focus-visible { outline: 2px solid var(--am-ink); outline-offset: 4px; }

  /* the cover arrives on load: the picture settles, the three lines rise one by one */
  @media (prefers-reduced-motion: no-preference) {
    .am-hero-photo img { transform: scale(1.045); animation: am-settle 2800ms var(--am-ease) forwards; }
    .am-title span { opacity: 0; transform: translateY(12px); animation: am-rise 900ms var(--am-ease) forwards; animation-delay: calc(240ms + var(--i, 0) * 120ms); }
    /* opacity only: a filled transform here would hold the link's press scale at none (2026-11 go-live) */
    .am-down { opacity: 0; animation: am-fade 900ms var(--am-ease) 900ms forwards; }
  }
  @keyframes am-settle { to { transform: scale(1); } }
  @keyframes am-rise { to { opacity: 1; transform: none; } }
  @keyframes am-fade { to { opacity: 1; } }

  /* ───────── the reading ───────── */
  .am-intro { padding-block: clamp(5rem, 11vw, 10rem) clamp(4rem, 8vw, 7rem); }
  .am-lead { margin: 0; max-width: 24ch; font: 500 clamp(2.9rem, 5.4vw, 5rem)/0.98 var(--am-serif); letter-spacing: 0.005em; color: var(--am-ink); text-wrap: balance; }

  .am-sec { border-top: 1px solid var(--am-line); padding-block: clamp(3.5rem, 7vw, 6.5rem); }
  .am-sec .container { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--space-5); }
  @media (min-width: 900px) { .am-sec .container { grid-template-columns: minmax(10rem, 17rem) minmax(0, 41rem); column-gap: clamp(3rem, 8vw, 9rem); } }
  .am-h { margin: 0; font: 500 clamp(2.1rem, 3vw, 2.9rem)/1 var(--am-serif); letter-spacing: 0.01em; color: var(--am-ink); }
  .am-no { display: block; margin-bottom: var(--space-3); font: 500 1.25rem/1 var(--am-serif); letter-spacing: 0.06em; color: var(--am-mute); }
  .am-body > * + * { margin-top: 1.4rem; }
  .am-body .am-p-lead { font: 500 clamp(2rem, 2.9vw, 2.75rem)/1.05 var(--am-serif); letter-spacing: 0.005em; color: var(--am-ink); text-wrap: pretty; }
  .am-body p { margin-bottom: 0; font-size: 1.125rem; line-height: 1.65; max-width: 62ch; text-wrap: pretty; }
  .am-body .am-p-lead { max-width: 26ch; }

  /* a plain list of the three apps: hairlines, no boxes */
  .am-apps { list-style: none; margin: 2.5rem 0 0; padding: 0; border-top: 1px solid var(--am-line); }
  .am-apps li { border-bottom: 1px solid var(--am-line); }
  .am-apps a {
    display: grid; grid-template-columns: 6.75rem minmax(0, 1fr) auto; align-items: baseline; gap: var(--space-4); padding: 1.15rem 0; min-height: 44px;
    color: var(--am-ink); text-decoration: none; transition: transform 160ms var(--am-ease);
  }
  /* the hover nudge moves the name and the line, not the row's box: no layout per frame, and the hit area stays put (2026-11 go-live) */
  .am-apps .n, .am-apps .d { transition: translate 320ms var(--am-ease); }
  .am-apps .n { font: 500 2.1rem/1 var(--am-serif); letter-spacing: 0.02em; }
  .am-apps .d { font-size: 1rem; line-height: 1.4; color: var(--am-text); }
  .am-apps svg { width: 16px; height: 16px; align-self: center; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; transition: transform 320ms var(--am-ease); }
  @media (hover: hover) and (pointer: fine) { .am-apps a:hover :is(.n, .d) { translate: 0.5rem 0; } .am-apps a:hover svg { transform: translateX(4px); } }
  .am-apps a:active { transform: scale(0.99); }
  .am-apps a:focus-visible { outline: 2px solid var(--am-ink); outline-offset: 2px; }
  .am-tag { display: inline-block; margin-left: 0.6rem; padding: 0.3em 0.7em; border-radius: 9999px; background: #fbf3db; color: #956400; font: 500 0.6875rem/1 var(--am-sans); letter-spacing: 0.05em; text-transform: uppercase; vertical-align: 0.1em; }

  .am-link { display: inline-flex; align-items: center; gap: 0.5rem; min-height: 44px; margin-top: calc(1.6rem - 11px); color: var(--am-ink); font-size: 1rem; line-height: 1.4; text-decoration: underline; text-decoration-color: var(--am-line); text-underline-offset: 0.3em; text-decoration-thickness: 1px; transition: text-decoration-color 200ms ease; }
  .am-link svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }
  @media (hover: hover) and (pointer: fine) { .am-link:hover { text-decoration-color: var(--am-ink); } }

  /* ───────── the close ───────── */
  .am-close { border-top: 1px solid var(--am-line); background: var(--am-bone); padding-block: clamp(4.5rem, 9vw, 8.5rem); }
  .am-close .am-close-h { margin: 0; max-width: 12ch; font: 500 clamp(3.5rem, 7.4vw, 7rem)/0.95 var(--am-serif); letter-spacing: 0.005em; color: var(--am-ink); text-wrap: balance; }
  .am-close p { margin: 1.4rem 0 0; font-size: 1.125rem; line-height: 1.6; color: var(--am-mute); }
  .am-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 2.25rem; }
  .am-btn {
    display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 1.5rem; border-radius: 6px; border: 1px solid var(--am-ink);
    background: var(--am-ink); color: #fff; font: 500 1rem/1 var(--am-sans); text-decoration: none; transition: background-color 200ms ease, transform 160ms ease;
  }
  .am-btn--ghost { background: transparent; color: var(--am-ink); border-color: var(--am-line); }
  @media (hover: hover) and (pointer: fine) { .am-btn:hover { background: #333; border-color: #333; } .am-btn--ghost:hover { background: transparent; border-color: var(--am-ink); } }
  .am-btn:active { transform: scale(0.97); }

  /* scroll entry: a 12 px rise, once (assets/about-min.js adds .is-in; without the script, or with reduced motion, nothing is held back) */
  @media (prefers-reduced-motion: no-preference) {
    .am-armed .am-reveal { opacity: 0; transform: translateY(12px); transition: opacity 600ms var(--am-ease), transform 600ms var(--am-ease); transition-delay: calc(var(--i, 0) * 80ms); }
    .am-armed .am-reveal.is-in { opacity: 1; transform: none; }
  }
  @media (max-width: 599.98px) {
    .am-apps a { grid-template-columns: 6.25rem minmax(0, 1fr) auto; }
    .am-hero-photo img { object-position: 50% 50%; }
  }
}
