/*
 * site.css — the only stylesheet you edit for this site.
 * nk-web.css (in assets/nk/) holds the Nordkapp system; never edit that copy.
 *
 * Allowed here (see AGENTS.md):
 *   - the accent colours below
 *   - small layout tweaks for site-specific sections, using the --nk-* tokens
 * Not allowed: other fonts, new font sizes, shadows, new radii, recolouring nav/footer/logos.
 */
:root {
  /* Accent: one main colour, optionally one second colour. Keep text on it readable (4.5:1). */
  --nk-accent: var(--nk-black);        /* e.g. #ff5a36 */
  --nk-accent-ink: var(--nk-white);    /* text on the accent: black or white */
  --nk-accent-soft: var(--nk-white);   /* light tint for cards, e.g. #ffe8e1 */
  --nk-accent-2: var(--nk-accent);
  /* Hero shade: keeps the white type readable over the point cloud */
  --site-shade-top: rgba(10, 10, 10, 0.5);
  --site-shade-mid: rgba(10, 10, 10, 0.1);
  --site-shade-phone: rgba(10, 10, 10, 0.45);
  --site-shade-bottom: rgba(10, 10, 10, 0.8);
}

/* ---------- Hero: Slush 2019 main stage (CC BY-SA 4.0, credit required), shaded and with the grain ---------- */
.site-hero__photo { object-position: 50% 45%; }
.site-credit { position: absolute; right: 20px; bottom: 8px; color: var(--nk-on-dark-muted); }
.site-credit a { color: inherit; text-decoration: underline; }
@media (max-width: 809.98px) { .site-credit { left: 20px; bottom: 6px; text-align: right; } }
.site-hero__shade { position: absolute; inset: 0; background: linear-gradient(180deg, var(--site-shade-top) 0%, var(--site-shade-mid) 35%, var(--site-shade-mid) 50%, var(--site-shade-bottom) 100%); }
@media (max-width: 809.98px) { .site-hero__shade { background: linear-gradient(180deg, var(--site-shade-top) 0%, var(--site-shade-phone) 40%, var(--site-shade-bottom) 75%); } }
.nk-hero__intro { max-width: 560px; }

/* Case cards are articles, not links: the text sets the height */
.site-case { min-height: 0; justify-content: flex-start; }

/* People in the contact card */
.site-people { display: flex; flex-direction: column; gap: 24px; }
.site-people .nk-person__img { object-fit: cover; }

/* ---------- Where am I (site.js), from the AI Coaching site ---------- */
.site-progress { position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--nk-black); transform-origin: 0 50%; transform: scaleX(0); pointer-events: none; transition: opacity 0.3s; }
.nk-nav.is-open .site-progress { opacity: 0; }
.nk-nav__links a[aria-current="location"]::after { content: ""; position: absolute; left: 0; right: 0; bottom: -3px; height: 1px; background: currentColor; }
.site-where { display: none; }
@media (max-width: 1199.98px) {
  .site-where { display: flex; gap: 8px; position: absolute; left: 50%; transform: translateX(-50%); white-space: nowrap; opacity: 0; transition: opacity 0.3s; pointer-events: none; }
  .site-where.is-on { opacity: 1; pointer-events: auto; }
  .nk-nav.is-open .site-where { opacity: 0; pointer-events: none; }
  .site-where__n { opacity: 0.5; }
}
