/* The AI-Box website. The design values follow the chosen look in style-guide/looks/: look C,
   the neutral grey base, the components of style 2 with small, sharp corners. Every colour pair
   used here is measured in style-guide/looks/contrast.py. */

@font-face { font-family: 'Schibsted Grotesk'; font-weight: 400 900; font-display: swap; src: url(fonts/schibsted-grotesk-latin-wght-normal.woff2) format('woff2'); }
@font-face { font-family: 'IBM Plex Sans'; font-weight: 100 700; font-display: swap; src: url(fonts/ibm-plex-sans-latin-wght-normal.woff2) format('woff2'); }

:root {
  --font-head: 'Schibsted Grotesk', system-ui, sans-serif;
  --font-body: 'IBM Plex Sans', system-ui, sans-serif;
  /* The neutral grey base. */
  --paper: #F9F9F8; --tone: #F0F0EF; --neutral: #E5E5E3; --line: #DEDEDB; --rule3: #868684; --white: #FFFFFF;
  --ink: #0F1F1D; --dark: #0A1818; --muted: #5C6577;
  /* The product colour: AI-Box unless inside .p-team.
     fill: filled buttons, with dark text.  pline: lines, marks and icons on light.
     ptext: coloured text.  soft: the pale field.  marked: the light tone of a marked item. */
  --fill: #13C6A0; --pline: #0E9A7C; --ptext: #0A7560; --soft: #DDF3EC; --marked: #A1E8D9;
  --tint: #E9F5F1;   /* every second section: half way between the pale field and paper */
  /* Corners and widths. */
  --r: 4px; --r-item: 3px; --r-box: 6px;
  --wrap: 1296px; --gutter: 72px;
}
.p-ai   { --fill: #13C6A0; --pline: #0E9A7C; --ptext: #0A7560; --soft: #DDF3EC; --marked: #A1E8D9; --tint: #E9F5F1; }
.p-team { --fill: #E8A26A; --pline: #C46A28; --ptext: #8F5526; --soft: #F3E4D3; --marked: #F6DAC3; --tint: #F5EDE4; }
/* The pages that are about both boxes (use cases, FAQ, contact, imprint) open on a field of
   mint, fresher than the pale teal of AI-Box, so the two stay apart. The home page is about both
   too but opens on paper (PLAIN_TOP in build.py): there the two boxes bring the colour. */
.p-gen  { --field: #C6EFE5; }

@media (max-width: 960px) { :root { --gutter: 32px; } }
@media (max-width: 600px) { :root { --gutter: 20px; } }

/* ---------- Base ---------- */
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 17px/1.55 var(--font-body); -webkit-font-smoothing: antialiased; }
@media (max-width: 600px) { body { font-size: 16px; } }
h1, h2, h3, p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-underline-offset: 3px; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.wrap { width: 100%; max-width: calc(var(--wrap) + 2 * var(--gutter)); margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter); }
.nb { white-space: nowrap; }
.vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -80px; z-index: 10; padding: 10px 14px; border-radius: var(--r); background: var(--ink); color: var(--white); }
.skip:focus { top: 12px; }

h1, h2, h3 { font-family: var(--font-head); font-weight: 700; text-wrap: balance; }
h1 { font-size: clamp(40px, 6vw, 84px); line-height: 1.02; letter-spacing: -0.035em; }
h2 { font-size: clamp(28px, 3.4vw, 46px); line-height: 1.08; letter-spacing: -0.028em; }
h3 { font-size: 22px; line-height: 1.2; letter-spacing: -0.015em; }
p + p { margin-top: 0.8em; }
.lead { max-width: 780px; font-size: clamp(18px, 1.6vw, 21px); line-height: 1.5; }
.sub { max-width: 760px; margin-top: 14px; font-size: 18px; }

/* ---------- The mark ---------- */
.mark { flex: none; fill: none; }
.mk-box { fill: none; stroke: var(--ink); stroke-width: 5; }
.mk-core { fill: var(--pline); }
.mk-line { fill: none; stroke: var(--pline); stroke-width: 5; stroke-linecap: round; }
.mk-line.thin { stroke-width: 4.5; }
.mk-end { fill: var(--ink); }

/* ---------- Header and footer ---------- */
/* The bar stays at the top while the page scrolls, so the menu is always one tap away. Below
   1024 pixels the menu folds behind a button with the word "Menu" on it and opens over the page.
   Without JavaScript the links stay visible under the name and the bar does not stay. */
:root { --bar: 76px; }
html { scroll-padding-top: calc(var(--bar) + 16px); }
html.menu-open { overflow: hidden; }
.top { position: sticky; top: 0; z-index: 30; background: var(--paper); }
.top.scrolled { box-shadow: 0 1px 0 color-mix(in srgb, var(--ink) 14%, transparent); }
.has-field .top, .head-field { background: var(--field, var(--soft)); }
.top-in { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 36px; min-height: var(--bar); }
.logo { display: inline-flex; align-items: center; gap: 6px; margin-right: auto; font: 700 23px var(--font-head); letter-spacing: -0.02em; text-decoration: none; }
.logo .mark { width: 42px; height: 42px; margin-left: -6px; }
.menu { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 36px; }
.nav { display: flex; flex-wrap: wrap; gap: 4px 26px; font-size: 15.5px; }
.nav a { padding: 6px 0; border-bottom: 2px solid transparent; text-decoration: none; }
.nav a:hover { border-bottom-color: var(--rule3); }
.nav a[aria-current="page"] { font-weight: 600; border-bottom-color: var(--pline); }
.p-gen .nav a[aria-current="page"] { border-bottom-color: var(--ptext); }
.nav-mark, .nav-d, .menu-cta, .menu-btn { display: none; }
/* The language switch stays in the bar at every width: after the links on a wide screen, before
   the menu button on a narrow one. */
.langs { display: flex; font-size: 14px; }
.langs a { min-width: 30px; padding: 5px 4px; text-align: center; text-decoration: none; }
.langs a:hover { text-decoration: underline; text-decoration-color: var(--rule3); text-decoration-thickness: 2px; }
.langs a[aria-current] { font-weight: 600; text-decoration: underline; text-decoration-thickness: 2px; }

@media (max-width: 1023px) {
  :root { --bar: 62px; }
  html:not(.js) .top { position: static; }
  html:not(.js) .top-in { padding-top: 16px; padding-bottom: 10px; }
  html:not(.js) .menu { order: 3; width: 100%; }
  html:not(.js) .nav { gap: 4px 18px; }
  .js .logo { font-size: 22px; }
  .js .logo .mark { width: 40px; height: 40px; }

  /* The button: an outline, the two lines turn into a cross when the menu is open. */
  .js .menu-btn { display: inline-flex; align-items: center; gap: 8px; height: 42px; padding: 0 15px 0 12px; border: 1.5px solid var(--ink); border-radius: var(--r); background: transparent; color: var(--ink); font: 600 15.5px/1 var(--font-body); cursor: pointer; }
  .menu-btn svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; }
  .menu-btn path { transform-origin: 12px 12px; transition: transform 0.2s ease; }
  .top.open .mb-a { transform: translateY(4px) rotate(45deg); }
  .top.open .mb-b { transform: translateY(-4px) rotate(-45deg); }
  .mb-close, .top.open .mb-open { display: none; }
  .top.open .mb-close { display: inline; }

  /* The open menu: the page's own colour, one large line per page, the products with their
     colour and what each one is for. */
  .js .menu { display: none; }
  .js .top.open .menu { display: block; position: fixed; top: var(--bar); left: 0; right: 0; bottom: 0; overflow-y: auto; overscroll-behavior: contain; padding: 4px var(--gutter) 40px; background: var(--paper); }
  .has-field .top.open .menu { background: var(--field, var(--soft)); }
  .js .nav { display: block; max-width: 560px; }
  .js .nav a { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; column-gap: 16px; padding: 15px 0 14px; border-bottom: 1px solid color-mix(in srgb, var(--ink) 16%, transparent); font: 650 26px/1.15 var(--font-head); letter-spacing: -0.02em; }
  .js .nav a:hover { border-bottom-color: color-mix(in srgb, var(--ink) 16%, transparent); }
  .js .nav a[aria-current="page"] { border-bottom-color: color-mix(in srgb, var(--ink) 16%, transparent); }
  .js .nav a[aria-current="page"] .nav-t { text-decoration: underline; text-decoration-color: var(--pline); text-decoration-thickness: 3px; text-underline-offset: 7px; }
  .js .p-gen .nav a[aria-current="page"] .nav-t { text-decoration-color: var(--ptext); }
  .js .nav-t { grid-column: 1; grid-row: 1; }
  .js .nav-mark { display: block; grid-column: 2; grid-row: 1 / span 2; width: 34px; height: 34px; fill: none; }
  .nav-mark .mk-core { fill: var(--ptext); }   /* the line tone of one product falls below 3 to 1 on the other's field */
  .js .nav-d { display: block; grid-column: 1; grid-row: 2; margin-top: 4px; font: 400 15px/1.4 var(--font-body); letter-spacing: 0; color: var(--muted); }
  .js .menu-cta { display: block; max-width: 560px; margin-top: 30px; }
  .js .menu-cta .btn { display: block; text-align: center; }

  .top-in { column-gap: 12px; }
  .langs { order: 1; font-size: 15px; }
  .langs a { min-width: 32px; padding: 9px 3px; }
  .menu-btn { order: 2; }
}
@media (max-width: 1023px) and (prefers-reduced-motion: reduce) { .menu-btn path { transition: none; } }
/* Phones: the menu button keeps its icon only, so that the bar holds the language switch in both
   states (the word for closing is longer than "Menu"); its word stays for screen readers. */
@media (max-width: 479px) {
  .js .menu-btn { padding: 0 10px; }
  .menu-btn span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
}
@media (max-width: 420px) { html:not(.js) .nav { gap: 4px 13px; font-size: 15px; } }

.foot { border-top: 1px solid var(--line); }
.foot-in { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 12px 40px; padding-top: 28px; padding-bottom: 40px; font-size: 14.5px; color: var(--muted); }
.foot a { color: var(--ink); }
.foot-nav { display: flex; flex-wrap: wrap; gap: 2px 20px; }
.foot-nav a { padding: 4px 0; }
.foot .draft { width: 100%; font-size: 13.5px; }
@media (max-width: 600px) { .foot-nav { order: -1; } }

/* ---------- Buttons and links ---------- */
.btn { display: inline-block; padding: 14px 22px; border: 0; border-radius: var(--r); background: var(--fill); color: var(--dark); font: 600 16px/1.2 var(--font-body); text-decoration: none; cursor: pointer; }
.btn:hover { background: color-mix(in srgb, var(--fill) 78%, white); }
.link, .more { font-weight: 600; text-decoration: underline; text-decoration-color: var(--pline); text-decoration-thickness: 2px; text-underline-offset: 6px; }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 28px; }

/* ---------- Home page: the headline beside a photo of the box, then the two boxes side by side,
   each with its drawing and a few sentences, and paper between them ---------- */
.home-hero { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 40px 64px; align-items: center; padding-top: 40px; padding-bottom: 104px; }
.home-hero h1 { font-size: clamp(40px, 5.4vw, 78px); }
.home-hero .lead { margin-top: 26px; }
.home-hero .actions { margin-top: 34px; }
.home-photo { width: 100%; height: auto; border-radius: var(--r-box); background: var(--tone); }
.boxes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 56px 64px; padding-bottom: 32px; }
.box-pic { display: flex; align-items: center; aspect-ratio: 5 / 2; padding: 0 6%; border-radius: var(--r-box); background: var(--soft); }
.box-pic .drawing { margin-top: 0; }
.box-intro h2 { margin-top: 30px; font-size: clamp(34px, 3.6vw, 52px); line-height: 1.02; letter-spacing: -0.035em; }
.box-intro h2 a { text-decoration: none; }
.box-intro h2 a:hover { text-decoration: underline; text-decoration-color: var(--pline); text-decoration-thickness: 3px; text-underline-offset: 7px; }
.box-intro p { max-width: 560px; margin-top: 14px; }
.box-intro .box-state { margin-top: 12px; }
@media (max-width: 860px) { .home-hero, .boxes { grid-template-columns: 1fr; } .home-photo { max-width: 560px; } }
@media (max-width: 600px) { .home-hero { padding-top: 28px; padding-bottom: 64px; } .boxes { gap: 48px; } .box-intro h2 { margin-top: 22px; } }

/* The people, at the end of the home page */
.meet { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: 40px 72px; align-items: center; }
.meet .actions { margin-top: 28px; }
.faces { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.faces img { width: 100%; height: auto; aspect-ratio: 1; border-radius: var(--r-box); object-fit: cover; background: var(--tone); }
.faces p { margin-top: 10px; font-size: 15.5px; line-height: 1.4; }
@media (max-width: 860px) { .meet { grid-template-columns: 1fr; } .faces { max-width: 440px; } }

/* ---------- Heroes of the product pages ---------- */
.hero { padding: 0 0 48px; background: var(--soft); }
.hero h1 { max-width: 1120px; padding-top: 40px; }
.drawing { width: 100%; height: auto; margin-top: 44px; }
.drawing .d-ink { fill: var(--ink); }
.drawing .d-line { fill: none; stroke: var(--pline); stroke-linecap: round; stroke-linejoin: round; }
.drawing .d-shell { fill: none; stroke: var(--ink); }
.drawing .d-core { fill: var(--pline); }
.drawing .d-dash { fill: none; stroke: var(--ink); stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 10 26; }
.pic-say { max-width: 640px; margin-top: 18px; font-size: 18px; color: color-mix(in srgb, var(--ink) 82%, var(--soft)); }
.intro { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 24px 56px; align-items: center; padding-top: 40px; }
@media (max-width: 860px) { .intro { grid-template-columns: 1fr; } }

/* ---------- The intro under a hero, with four facts ---------- */
.intro-sec { padding-bottom: 88px; }
.facts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px 40px; margin-top: 56px; padding-top: 40px; border-top: 1px solid var(--line); }
.facts dt { display: flex; flex-direction: column; align-items: flex-start; gap: 14px; font-size: 14px; color: var(--muted); }
.facts dt .ic { width: 44px; height: 44px; }
.facts dd { margin-top: 6px; font: 600 19px/1.35 var(--font-head); letter-spacing: -0.01em; }
.facts .fact-note { display: block; margin-top: 6px; font: 400 14.5px/1.4 var(--font-body); letter-spacing: 0; color: var(--muted); }
@media (max-width: 960px) { .facts { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 36px 32px; } }
@media (max-width: 600px) { .intro-sec { padding-bottom: 64px; } }
@media (max-width: 440px) { .facts { grid-template-columns: 1fr; gap: 28px; } }

/* ---------- Sections ---------- */
.section { padding: 88px 0; }
.tint { background: var(--tint); }
.toned { background: var(--tone); }   /* a section about both boxes, on a page that has no field of its own */
@media (max-width: 600px) { .section { padding: 56px 0; } }

/* Each application in full */
.app-row { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: 24px 64px; padding: 40px 0; border-top: 1px solid var(--line); }
.app-row:first-of-type { margin-top: 40px; }
.app-row h3 { font-size: 30px; letter-spacing: -0.025em; }
.app-row .about { margin-top: 10px; }
.app-row .uses { margin-top: 14px; font-size: 15px; color: var(--muted); }
.features { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px 40px; align-content: start; }
.features dt { font-weight: 600; }
.features dd { margin-top: 2px; }
.features .only { display: inline-block; margin-left: 6px; padding: 0 8px; border-radius: var(--r-item); background: var(--soft); font-size: 13px; font-weight: 500; }
@media (max-width: 860px) { .app-row { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .features { grid-template-columns: 1fr; } }

/* Three columns of short statements */
.cols3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px 48px; margin-top: 40px; }
.cols3 h3 { padding-bottom: 10px; border-bottom: 2px solid var(--ink); }
.cols3 li { padding: 11px 0; border-bottom: 1px solid var(--line); }
@media (max-width: 860px) { .cols3 { grid-template-columns: 1fr; } }
.panel-note { max-width: 880px; margin-top: 36px; padding: 18px 22px; border-radius: var(--r-box); background: var(--soft); }

/* Plain statements, one after the other */
.statements { max-width: 820px; margin-top: 28px; }
.statements li { padding: 16px 0; border-top: 1px solid var(--line); font-size: 18px; }

/* Tables */
.table-scroll { margin-top: 36px; overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 16.5px; }
th, td { padding: 14px 24px 14px 0; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
thead th { padding-top: 0; border-bottom: 1px solid var(--ink); font-size: 14px; font-weight: 500; color: var(--muted); }
tbody th { font-weight: 600; }
td.status { white-space: nowrap; }
.muted { font-weight: 400; color: var(--muted); }
.plain tbody tr:first-child > * { border-top: 1px solid var(--ink); }
.plain tbody th { width: 26%; }

/* Call to action */
.cta { background: var(--soft); }
.cta-in { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px 48px; padding-top: 64px; padding-bottom: 64px; }
.cta h2 { font-size: clamp(26px, 2.8vw, 38px); }
.cta p { max-width: 640px; margin-top: 8px; }

/* Pages with a plain heading: use cases, FAQ, contact, imprint */
.page-head { padding-top: 48px; padding-bottom: 56px; }
.page-head .lead { margin-top: 20px; }
.page-head.has-pic { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: 32px 56px; align-items: center; }
.head-art .head-pic { display: block; width: 100%; max-width: 560px; height: auto; margin: 0 0 0 auto; }
.head-more { padding-bottom: 44px; }
@media (max-width: 860px) { .page-head.has-pic { grid-template-columns: 1fr; } .head-art .head-pic { max-width: 420px; margin: 0; } }
.drawing .d-strong { fill: none; stroke: var(--ptext); stroke-width: 7; stroke-linecap: round; stroke-linejoin: round; }
.drawing .d-core-strong { fill: var(--ptext); }
.drawing .d-q { font: 700 50px var(--font-head); fill: var(--ink); }

/* Section headings with their drawn icon: ink lines, one accent in the product colour */
.app-h .ic { display: block; width: 56px; height: 56px; margin-bottom: 14px; overflow: visible; }
.app-h h3 { font-size: 26px; letter-spacing: -0.02em; }
.ic .l { fill: none; stroke: var(--ink); stroke-width: 4; stroke-linecap: round; stroke-linejoin: round; }
.ic .lw { fill: none; stroke: var(--white); stroke-width: 3; stroke-linecap: round; }
.ic .w { fill: var(--white); stroke: var(--ink); stroke-width: 4; stroke-linejoin: round; }
.ic .t { fill: var(--soft); stroke: var(--ink); stroke-width: 2.5; stroke-linejoin: round; }
.ic .f { fill: var(--ink); }
.ic .a { fill: var(--pline); }
.ic .ap { fill: var(--pline); stroke: var(--ink); stroke-width: 4; stroke-linejoin: round; }
.ic .al { fill: none; stroke: var(--pline); stroke-width: 4; stroke-linecap: round; stroke-linejoin: round; }
.ic .thin { stroke-width: 2.5; }

/* FAQ: the questions in groups, each one opens */
.faq-group { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: 12px 56px; padding-top: 56px; padding-bottom: 64px; }
.faq-h { align-self: start; position: sticky; top: calc(var(--bar) + 24px); }
.faq-h .ic { display: block; width: 56px; height: 56px; margin-bottom: 14px; }
.faq-group h2 { font-size: clamp(24px, 2.4vw, 32px); }
.faq-group details { border-bottom: 1px solid var(--line); }
.faq-group details:first-child { border-top: 1px solid var(--ink); }
.faq-group summary { display: flex; align-items: baseline; justify-content: space-between; gap: 24px; padding: 18px 0; cursor: pointer; list-style: none; font: 600 19px/1.35 var(--font-head); letter-spacing: -0.01em; }
.faq-group summary::-webkit-details-marker { display: none; }
.faq-group summary::after { content: '+'; flex: none; width: 24px; font: 400 26px/1 var(--font-body); text-align: center; color: var(--ptext); }
.faq-group details[open] summary::after { content: '\2212'; }
.faq-group summary:hover { text-decoration: underline; text-decoration-color: var(--pline); text-decoration-thickness: 2px; text-underline-offset: 5px; }
.faq-group details p { max-width: 720px; padding-bottom: 22px; }
@media (max-width: 860px) { .faq-group { grid-template-columns: 1fr; } .faq-h { position: static; } }

/* Use cases */
.case-index { display: grid; gap: 8px; margin-top: 28px; font-size: 15.5px; }
.case-index p { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 18px; }
.case-index b { min-width: 120px; font-weight: 600; }
.case-index a { text-decoration-color: var(--rule3); }
.case { padding: 64px 0; }
.case-for { display: inline-flex; align-items: center; gap: 8px; font-size: 15px; font-weight: 600; }
.case-for::before { content: ''; width: 10px; height: 10px; border-radius: 50%; background: var(--pline); }
.case h2 { margin-top: 8px; }
.case-pic { margin-top: 28px; padding: 24px 28px; border-radius: var(--r-box); background: var(--soft); }
.tint .case-pic { padding: 0; background: none; }   /* on a tinted section, the tint is the picture's field */
.case-pic .drawing { margin-top: 0; }
.case-text { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 16px 56px; margin-top: 28px; }
.case-lead { font-size: 19px; line-height: 1.5; }
.case-text div p + p { margin-top: 12px; }
.case-note { padding-left: 14px; border-left: 3px solid var(--pline); color: var(--muted); font-size: 15.5px; }
@media (max-width: 860px) { .case-text { grid-template-columns: 1fr; } .case-pic { padding: 14px; } }

/* The parts of the drawings of the use cases */
.drawing .d-room { fill: none; stroke: var(--ink); stroke-width: 3; }
.drawing .d-wall { fill: none; stroke: var(--ink); stroke-width: 14; }
.drawing .d-bubble, .drawing .d-page, .drawing .d-card { fill: var(--white); stroke: var(--ink); stroke-width: 5; stroke-linejoin: round; }
.drawing .d-region { fill: rgba(255, 255, 255, 0.55); stroke: var(--ink); stroke-width: 2.5; stroke-dasharray: 10 9; }
.drawing .d-scrawl { fill: none; stroke: var(--ink); stroke-width: 3.5; stroke-linecap: round; opacity: 0.6; }
.drawing .d-bar { fill: var(--ink); opacity: 0.22; }
.drawing .d-rule { fill: none; stroke: var(--rule3); stroke-width: 2; }
.drawing .d-rule-ink { fill: none; stroke: var(--ink); stroke-width: 2.5; }
.drawing .d-paper { fill: var(--paper); }
.drawing .d-tone { fill: var(--tone); }
.drawing .d-mark { fill: var(--marked); }
.drawing .d-fill { fill: var(--fill); }
.drawing .d-pfill { fill: var(--pline); }
.drawing .d-hex { fill: var(--pline); }
.drawing .d-ledbar { fill: var(--fill); }
.drawing .d-arc { fill: none; stroke: var(--pline); stroke-width: 6; stroke-linecap: round; }
.drawing .d-wave { fill: none; stroke: var(--pline); stroke-width: 5; stroke-linecap: round; }
.drawing .d-power, .drawing .d-net { fill: none; stroke: var(--ink); stroke-width: 7; stroke-linecap: round; }
.drawing .d-ring-ink { fill: none; stroke: var(--ink); stroke-width: 5; }
.drawing .d-warn { fill: none; stroke: var(--ink); stroke-width: 4; stroke-linejoin: round; stroke-linecap: round; }
.drawing .d-thin { fill: none; stroke: var(--ink); stroke-width: 3; }
.drawing .d-node { fill: var(--ink); }
.drawing .d-cap { font: 600 27px var(--font-body); fill: var(--ink); }
.drawing .d-small { font: 500 19px var(--font-body); fill: var(--ink); }
.drawing .d-code { font: 700 17px var(--font-body); fill: var(--ink); }
.drawing .d-b { font-weight: 700; }

/* They move once, in under five seconds, when they come into view (site.js adds .armed, then
   .play). Without the script, or for visitors who ask for less motion, they stand finished. */
.scene .a-in, .scene .a-pop, .scene .a-pulse, .scene .a-ring, .scene .a-fly { transform-box: fill-box; transform-origin: center; }
.scene .a-fly, .scene .a-ring, .scene .a-break { opacity: 0; }
.scene.armed .a-in { animation: s-in 0.5s ease-out var(--d, 0s) both paused; }
.scene.armed .a-pop { animation: s-pop 0.45s ease-out var(--d, 0s) both paused; }
.scene.armed .a-draw { stroke-dasharray: 1; animation: s-draw 0.5s ease-in-out var(--d, 0s) both paused; }
.scene.armed .a-pulse { animation: s-pulse 0.5s ease-in-out var(--d, 0s) 2 paused; }
.scene.armed .a-ring { animation: s-ring 1s ease-out var(--d, 0s) paused; }
.scene.armed .a-fly { animation: s-fly 0.9s ease-in var(--d, 0s) both paused; }
.scene.armed .a-break { animation: s-break 0.9s linear var(--d, 0s) both paused; }
.scene.armed.play .a-in, .scene.armed.play .a-pop, .scene.armed.play .a-draw, .scene.armed.play .a-pulse,
.scene.armed.play .a-ring, .scene.armed.play .a-fly, .scene.armed.play .a-break { animation-play-state: running; }
@keyframes s-in { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes s-pop { 0% { opacity: 0; transform: scale(0); } 70% { opacity: 1; transform: scale(1.08); } 100% { opacity: 1; transform: scale(1); } }
@keyframes s-draw { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
@keyframes s-pulse { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.2); } }
@keyframes s-ring { 0% { opacity: 0.7; transform: scale(0.75); } 100% { opacity: 0; transform: scale(1.35); } }
@keyframes s-fly { 0% { opacity: 0; transform: none; } 15% { opacity: 1; transform: none; } 100% { opacity: 0; transform: translate(var(--dx), var(--dy)) scale(0.3); } }
@keyframes s-break { 0%, 30% { opacity: 1; } 40% { opacity: 0.15; } 50% { opacity: 1; } 62% { opacity: 0.1; } 100% { opacity: 0; } }

/* Team and contact */
.people { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 40px 48px; margin-top: 36px; }
.person { display: grid; grid-template-columns: 160px minmax(0, 1fr); gap: 24px; align-items: start; }
.person img { width: 160px; height: 160px; border-radius: var(--r-box); object-fit: cover; background: var(--tone); }
.person h3 { font-size: 24px; }
.person .role { margin-top: 2px; color: var(--muted); }
.person .bio { margin-top: 10px; }
@media (max-width: 1000px) { .people { grid-template-columns: 1fr; } }
@media (max-width: 480px) { .person { grid-template-columns: 1fr; } .person img { width: 140px; height: 140px; } }

.contact-in { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); gap: 48px 80px; }
@media (max-width: 960px) { .contact-in { grid-template-columns: 1fr; } }
.form { display: grid; gap: 20px; max-width: 640px; margin-top: 28px; }
.field label, .field legend { display: block; margin-bottom: 6px; font-weight: 500; font-size: 15px; }
.field .opt { font-weight: 400; color: var(--muted); }
.field input[type="text"], .field input[type="email"], .field textarea { width: 100%; padding: 11px 14px; border: 1px solid var(--rule3); border-radius: var(--r); background: var(--white); color: var(--ink); font: inherit; }
.field textarea { min-height: 170px; resize: vertical; }
fieldset { margin: 0; padding: 0; border: 0; }
.choices { display: flex; flex-wrap: wrap; gap: 10px 26px; }
.choices label { display: inline-flex; align-items: center; gap: 8px; margin: 0; font-weight: 400; }
.choices input { width: 20px; height: 20px; margin: 0; accent-color: var(--ink); }
.form .hint { font-size: 14.5px; color: var(--muted); }
.form[hidden] { display: none; }
.send { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; }
.form .form-status { color: var(--ink); }
.form-failed p + p { margin-top: 8px; }
button.more { padding: 0; border: 0; background: none; color: inherit; font: inherit; font-weight: 600; cursor: pointer; }
.form-sent { max-width: 640px; margin-top: 28px; font-size: 18px; }
.form-sent:focus { outline: none; }   /* focused by the script, so that screen readers read it */
.aside h2 { font-size: 26px; }
.aside > * + h2 { margin-top: 40px; }
.aside p { margin-top: 10px; }

/* Imprint and privacy */
.prose { max-width: 820px; padding: 24px 0 88px; }
.prose h2 { margin-top: 48px; font-size: clamp(26px, 2.6vw, 34px); }
.prose p { margin-top: 14px; }
.prose dl { margin-top: 18px; }
.prose dl div { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 4px 24px; padding: 12px 0; border-top: 1px solid var(--line); }
.prose dt { color: var(--muted); }
@media (max-width: 560px) { .prose dl div { grid-template-columns: 1fr; } }

/* ---------- The film: how you work with AI-Box, drawn (pages/_film.html, film.js) ---------- */
.film { margin-top: 36px; }
.film-stage { display: block; width: 100%; height: auto; border-radius: var(--r-box); }
.film .f-bg { fill: var(--soft); }
.tint .film .f-bg { fill: none; }   /* on a tinted section, the tint is the film's field */
.film .f-ink { fill: var(--ink); }
.film .f-paper { fill: var(--paper); }
.film .f-white { fill: var(--white); }
.film .f-tone { fill: var(--tone); }
.film .f-marked { fill: var(--marked); }
.film .f-fill { fill: var(--fill); }
.film .f-pfill { fill: var(--pline); }
.film .f-warn { fill: #7A5200; }
.film .f-ok { fill: #256B2E; }
.film .f-rule { fill: none; stroke: var(--line); stroke-width: 1; }
.film .f-edge { stroke: var(--line); stroke-width: 1; }
.film .f-field { stroke: var(--rule3); stroke-width: 1; }
.film .f-bar { fill: var(--ink); opacity: 0.2; }
.film .f-cable { fill: none; stroke: var(--pline); stroke-width: 24; stroke-linecap: round; }
.film .f-shell { fill: none; stroke: var(--ink); stroke-width: 32; }
.film .f-core { fill: var(--pline); }
.film .f-wave { fill: none; stroke: var(--pline); stroke-width: 6; }
.film .f-usb { fill: none; stroke: var(--ink); stroke-width: 10; stroke-linecap: round; stroke-dasharray: 1; }
.film .f-led { fill: none; stroke: var(--fill); stroke-width: 4; }
.film .f-grille { fill: #2B3A38; }
.film .f-key { fill: #6A7674; }
.film .f-arrow { fill: none; stroke: var(--dark); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.film #f-pw circle { fill: var(--ink); }
.film text { font-family: var(--font-body); fill: var(--ink); }
.film .ft { font-size: 11px; }
.film .ft-s { font-size: 9.5px; fill: var(--muted); }
.film .ft-xs { font-size: 8.5px; fill: var(--muted); }
.film .ft-ink { fill: var(--ink); }
.film .ft-dark { fill: var(--dark); }
.film .ft-p { fill: var(--ptext); }
.film .ft-warn { fill: #7A5200; }
.film .ft-ok { fill: #256B2E; }
.film .ft-b { font-weight: 600; }
.film .ft-i { font-style: italic; }
.film .ft-brand { font-family: var(--font-head); font-weight: 700; font-size: 12.5px; }
.film .ft-page { font-size: 7.5px; }
.film .ft-page-h { font-family: var(--font-head); font-weight: 700; font-size: 12px; }
.film .ft-tool { font-size: 9.5px; font-weight: 600; }
/* The film of Team AI-Box: lines from each device to the network switch, a dashed one from
   outside, dots for questions and answers, the people and the applications their roles allow. */
/* A line is drawn by moving its one dash in (stroke-dashoffset from 1 to 0); the gap of 2 keeps
   the next dash, and its round end, off the line until then. */
.film .t-line { fill: none; stroke: var(--pline); stroke-width: 12; stroke-linecap: round; stroke-dasharray: 1 2; }
.film .t-dash { fill: none; stroke: var(--ink); stroke-width: 10; stroke-linecap: round; stroke-dasharray: 12 24; }
.film .t-draw { stroke-dasharray: 1 2; }
.film .t-dot { fill: var(--ink); stroke: var(--paper); stroke-width: 4; }
.film .t-dot.t-back { fill: var(--white); stroke: var(--ink); stroke-width: 5; }
.film .t-port { fill: #4A5654; }
.film .t-led { fill: var(--fill); }
.film .t-edge { stroke: var(--line); stroke-width: 1.5; }
.film .t-hl { fill: none; stroke: var(--pline); stroke-width: 4; }
.film .t-globe { fill: none; stroke: var(--ink); stroke-width: 3; }
.film .t-slash { fill: none; stroke: var(--ink); stroke-width: 4.5; stroke-linecap: round; }
.film .t-slash-bg { fill: none; stroke: var(--white); stroke-width: 11; stroke-linecap: round; }
.film .t-name { font-family: var(--font-head); font-weight: 700; font-size: 27px; letter-spacing: -0.01em; }
.film .t-note { font-family: var(--font-body); font-weight: 400; font-size: 21px; letter-spacing: 0; fill: var(--muted); }
.film .t-chip-t { font-size: 17px; }
.film .t-label { font-size: 20px; fill: var(--muted); }
.film .t-text { font-size: 23px; font-weight: 600; }
.film .t-title { font-family: var(--font-head); font-weight: 700; font-size: 21px; }
.film .t-time { font-size: 16.5px; fill: var(--muted); font-variant-numeric: tabular-nums; }
.film .t-row { font-size: 16.5px; }

.film-bar { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: 12px 20px; margin-top: 16px; }
.film-play { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 10px 18px 10px 14px; border: 0; border-radius: var(--r); background: var(--fill); color: var(--dark); font: 600 15.5px/1 var(--font-body); cursor: pointer; }
.film-play:hover { background: color-mix(in srgb, var(--fill) 78%, white); }
.film-play svg { width: 18px; height: 18px; fill: currentColor; }
.film-play .if-pause, .film.is-playing .film-play .if-play { display: none; }
.film.is-playing .film-play .if-pause { display: inline; }
.film-steps { display: flex; gap: 6px; }
.film-steps li { flex: 1; }
.film-steps button { position: relative; display: block; width: 100%; height: 28px; padding: 0; border: 0; background: none; cursor: pointer; }
.film-steps button::before, .film-fill { content: ''; position: absolute; left: 0; top: 12px; height: 4px; border-radius: 2px; }
.film-steps button::before { right: 0; background: var(--neutral); }
.film-fill { width: calc(var(--p, 0) * 100%); background: var(--ptext); }
.film-steps button:hover::before { background: var(--line); box-shadow: inset 0 0 0 1px var(--rule3); }
.film-say { grid-column: 1 / -1; min-height: 2.9em; font-size: clamp(17px, 1.5vw, 20px); line-height: 1.45; }
@media (max-width: 600px) { .film-bar { gap: 10px 14px; } .film-steps { gap: 4px; } }

/* ---------- The applications, each with its picture ---------- */
.app-head { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 16px 56px; align-items: start; }
.app-head .say { max-width: 680px; font-size: 18px; }
.app-head .say p + p { margin-top: 12px; }
.app-head .say .planned, .pair .planned { display: inline-block; margin-right: 6px; padding: 0 8px; border-radius: var(--r-item); background: var(--soft); font-size: 14px; font-weight: 600; }
.shot { margin-top: 40px; }
.zoom { display: block; cursor: zoom-in; }
.shot img { display: block; width: 100%; height: auto; border-radius: var(--r-box); box-shadow: 0 0 0 1px var(--line); }
.shot figcaption, .pair figcaption { margin-top: 12px; font-size: 14.5px; color: var(--muted); }
.pair { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 28px 56px; align-items: center; margin-top: 48px; }
.pair h3 { font-size: 26px; letter-spacing: -0.02em; }
.pair .say { font-size: 17px; }
.pair .say p + p, .pair h3 + p { margin-top: 10px; }
.pair img { display: block; width: 100%; height: auto; border-radius: var(--r-box); box-shadow: 0 0 0 1px var(--line); }
.pair .drawing { margin-top: 0; }
@media (max-width: 860px) { .app-head, .pair { grid-template-columns: 1fr; } .shot { margin-top: 28px; } }

/* Drawing parts: the conference microphone, cables, program windows, a key */
.drawing .d-usb { fill: none; stroke: var(--ink); stroke-width: 10; stroke-linecap: round; }
.drawing .d-ring { fill: none; stroke: var(--pline); stroke-width: 6; }
.d-led { fill: none; stroke: var(--fill); stroke-width: 5; }
.d-grille { fill: #2B3A38; }
.d-key { fill: #6A7674; }
.drawing .d-win rect { fill: var(--white); stroke: var(--ink); stroke-width: 6; }
.drawing .d-win path { fill: none; stroke: var(--ink); stroke-width: 4; }
.drawing .d-label { font: 600 34px var(--font-body); fill: var(--ink); }
.drawing .d-key-ring { fill: none; stroke: var(--ink); stroke-width: 10; }
.drawing .d-key-bit { fill: none; stroke: var(--ink); stroke-width: 10; stroke-linecap: round; }

/* A photo between two sections: it keeps the space a section would leave below it. The photos
   come from website/pictures/photos.mjs. */
.photo { padding-bottom: 88px; }
.photo img { display: block; width: 100%; height: auto; border-radius: var(--r-box); }
.photo figcaption { margin-top: 12px; font-size: 14.5px; color: var(--muted); }
@media (max-width: 600px) { .photo { padding-bottom: 56px; } }

/* Your data: the box with what protects it */
.annot { display: grid; grid-template-columns: minmax(0, 1fr) 220px minmax(0, 1fr); gap: 0 48px; align-items: center; margin-top: 40px; }
.annot-box { width: 220px; height: 220px; }
.annot-box .d-shell { fill: none; stroke: var(--ink); }
.annot-box .d-core { fill: var(--pline); }
.annot-side li { position: relative; padding: 16px 0; font-size: 18px; font-weight: 500; line-height: 1.35; }
.annot-side li + li { border-top: 1px solid var(--line); }
.annot-l li { text-align: right; }
.annot-l li::after, .annot-r li::before { content: ''; position: absolute; top: 50%; width: 36px; height: 2px; background: var(--ink); }
.annot-l li::after { right: -44px; }
.annot-r li::before { left: -44px; }
@media (max-width: 860px) {
  .annot { grid-template-columns: 1fr; justify-items: start; }
  .annot-box { order: -1; width: 140px; height: 140px; margin-bottom: 12px; }
  .annot-side { width: 100%; }
  .annot-r li:first-child { border-top: 1px solid var(--line); }
  .annot-l li { text-align: left; }
  .annot-l li::after, .annot-r li::before { display: none; }
}

/* Team AI-Box: the sizes of the hardware, side by side */
.hw { display: grid; grid-template-columns: repeat(3, auto); grid-template-rows: auto auto; justify-content: space-between; gap: 18px 24px; margin-top: 40px; }
.hw li { display: grid; grid-template-rows: subgrid; grid-row: span 2; }
.hw svg { align-self: end; width: calc(var(--w) * 0.42px); height: auto; overflow: visible; }
.hw .hw-body { fill: var(--white); stroke: var(--ink); stroke-width: 4; }
.hw .hw-thin { fill: none; stroke: var(--ink); stroke-width: 2.5; stroke-linecap: round; }
.hw p { max-width: 240px; font-size: 15px; line-height: 1.4; padding-top: 10px; border-top: 1px solid var(--ink); }
@media (max-width: 960px) { .hw { justify-content: start; gap: 28px 40px; } }
@media (max-width: 560px) { .hw { grid-template-columns: repeat(2, minmax(0, 1fr)); } .hw svg { max-width: 100%; } }
