/* akttechnology.com. Colours, type and rules follow docs/brand/BRAND.md (tokens.json). */
@font-face { font-family: 'Bricolage Grotesque'; src: url('fonts/bricolage-grotesque-latin-700-normal.woff2') format('woff2'); font-weight: 700; font-display: swap; }
@font-face { font-family: 'Hanken Grotesk'; src: url('fonts/hanken-grotesk-latin-400-normal.woff2') format('woff2'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'Hanken Grotesk'; src: url('fonts/hanken-grotesk-latin-600-normal.woff2') format('woff2'); font-weight: 600; font-display: swap; }

:root {
  --house: #0f3d2e;
  --house-text: #0f5a41;
  --paper: #f3f5f2;
  --surface: #ffffff;
  --text: #141d18;
  --text-2: #46534b;
  --rule: #dde2dd;
  --rule-strong: #c2cbc4;
  --baton: #12805c;
  --mint: #8fd9b3;
  --display: 'Bricolage Grotesque', 'Hanken Grotesk', Arial, sans-serif;
  --body: 'Hanken Grotesk', Arial, sans-serif;
  --gutter: clamp(20px, 4vw, 48px);
  --measure: 1180px;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  background: var(--paper);
  color: var(--text);
  font: 400 1.0625rem/1.55 var(--body);
  -webkit-font-smoothing: antialiased;
}
img, video { display: block; max-width: 100%; }
a { color: var(--house-text); text-underline-offset: 0.18em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--baton); outline-offset: 3px; border-radius: 2px; }

.skip {
  position: absolute; left: var(--gutter); top: -100px; z-index: 10;
  background: var(--house); color: #fff; padding: 10px 16px; border-radius: 6px; font-weight: 600; text-decoration: none;
}
.skip:focus { top: 12px; }

.wrap { width: 100%; max-width: calc(var(--measure) + 2 * var(--gutter)); margin: 0 auto; padding: 0 var(--gutter); }

/* Header: the AKT ruled index, then two links. A strong rule beneath, as the brand's key-facts band. */
.site-header { border-bottom: 2px solid var(--house); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 76px; }
.brand { display: inline-flex; align-items: center; text-decoration: none; }
.brand img { width: 104px; height: auto; margin: -10px 0 -10px -14px; } /* the SVG carries its own clear space */
.nav ul { display: flex; gap: clamp(18px, 3vw, 36px); list-style: none; margin: 0; padding: 0; }
.nav a {
  display: inline-block; padding: 10px 2px; color: var(--text); font-weight: 600; font-size: 1rem; text-decoration: none;
  border-bottom: 2px solid transparent;
}
.nav a:hover { border-bottom-color: var(--rule-strong); }
.nav a[aria-current='page'] { border-bottom-color: var(--baton); color: var(--house); }

main { flex: 1; }

/* Home */
.intro { padding: clamp(28px, 5vh, 56px) 0 clamp(20px, 3vh, 32px); }
h1 {
  font: 700 clamp(2rem, 1.2rem + 3.2vw, 3.6rem)/1.06 var(--display);
  letter-spacing: -0.015em;
  color: var(--house);
  margin: 0;
  max-width: 24ch;
}
.lead { margin: clamp(14px, 2vh, 22px) 0 0; max-width: 68ch; font-size: clamp(1.0625rem, 1rem + 0.3vw, 1.1875rem); color: var(--text-2); }

.demo { margin: 0 0 clamp(40px, 7vh, 80px); }
/* On a desktop the whole player is in view when the page opens: its width follows the height left below the intro. */
.player {
  position: relative;
  width: 100%;
  max-width: max(560px, calc((100vh - 380px) * 16 / 9));
  max-width: max(560px, calc((100svh - 380px) * 16 / 9));
  background: var(--house);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 0 0 1px var(--rule-strong);
}
.player video { width: 100%; aspect-ratio: 16 / 9; height: auto; background: var(--house); }
.play {
  position: absolute; inset: 0; width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
  border: 0; padding: 0; margin: 0; background: transparent; cursor: pointer;
  font: inherit; color: inherit;
}
.play .chip {
  display: inline-flex; align-items: center; gap: 12px;
  background: var(--house); color: #fff; border-radius: 999px;
  padding: 14px 24px 14px 16px; font-weight: 600; font-size: 1.0625rem;
  box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.9);
}
.play .chip svg { width: 34px; height: 34px; flex: none; }
.play:hover .chip, .play:focus-visible .chip { background: var(--house-text); }
.play:focus-visible { outline: none; }
.play:focus-visible .chip { outline: 3px solid var(--baton); outline-offset: 6px; }
.play[hidden], .player.started .play { display: none; } /* the button stays hidden until player.js shows it */
.demo figcaption { margin-top: 12px; font-size: 0.9375rem; color: var(--text-2); max-width: 70ch; }

/* Contact */
.contact { padding: clamp(32px, 7vh, 72px) 0 clamp(48px, 9vh, 96px); }
.contact dl { margin: clamp(24px, 4vh, 40px) 0 0; border-top: 2px solid var(--house); max-width: 640px; }
.contact .row { display: grid; grid-template-columns: 9rem 1fr; gap: 8px 24px; padding: 20px 0; border-bottom: 1px solid var(--rule); align-items: baseline; }
.contact dt { font-weight: 600; color: var(--text-2); }
.contact dd { margin: 0; font-size: clamp(1.125rem, 1rem + 0.5vw, 1.375rem); overflow-wrap: anywhere; }
.contact dd a { font-weight: 600; }
@media (max-width: 480px) { .contact .row { grid-template-columns: 1fr; gap: 4px; } }

/* Footer: the two status sentences the brand guide puts on everything a firm reads. */
.site-footer { border-top: 1px solid var(--rule); color: var(--text-2); font-size: 0.875rem; }
.site-footer .wrap { padding-top: 20px; padding-bottom: 24px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 32px; }
.site-footer p { margin: 0; max-width: 72ch; }

@media (max-width: 600px) {
  .site-header .wrap { min-height: 64px; }
  .brand img { width: 88px; }
  .lead { font-size: 1.0625rem; }
  .player { border-radius: 8px; }
  .play .chip { padding: 10px 18px 10px 12px; font-size: 1rem; }
  .play .chip svg { width: 28px; height: 28px; }
}
@media (prefers-reduced-motion: no-preference) {
  .nav a, .play .chip { transition: background-color 120ms ease, border-color 120ms ease; }
}
