/* Human Delta, company page. Fonts lie in ./fonts (SIL Open Font License, licence texts beside them).
   Round 3 (21/11 2026): version E2 of round 2: white page, the top bar, the contact part and the footer
   on petrol. New in round 3: the invitation on the pale tile, the articles, the small movements. Round 5: the articles as a coloured band under the opening text; the services a little tighter. Round 6: a third colour, rounded corners, the band holds at every width. */

@font-face {
  font-family: "Newsreader";
  src: url("fonts/newsreader-latin.woff2") format("woff2");
  font-weight: 400 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Commissioner";
  src: url("fonts/commissioner-latin.woff2") format("woff2");
  font-weight: 400 600;
  font-style: normal;
  font-display: swap;
}

:root {
  --ink: #17485A;
  --ink2: #3F6170;
  --ink-deep: #0F3645;     /* the ink a step darker: buttons under the mouse */
  --white: #FFFFFF;
  --pale: #DFEBE8;
  --on-ink2: #D6E3E6;      /* quieter text on petrol */

  --line: #C9D6D9;
  --box: var(--pale);
  --box-line: #BFD5D0;
  --field-line: #5E7F8A;
  --ink-line: #3D5C68;     /* thin line on night petrol */

  --bar: #0E2F3B;
  --bar-ink: var(--white);
  --bar-ink2: var(--on-ink2);
  --hero: var(--white);
  --figure: var(--pale);

  /* the third colour: moss (his choice 23/11 2026), on the article band and behind the portrait.
     Corners: rounded (his choice 23/11 2026). */
  --third-a: #C9D7B6;
  --third-b: #E9EFDF;
  --third-solid: #D6E0C7;
  --third-ink: var(--ink);
  --rad: 10px;
  --rad-btn: 999px;
  --rad-s: 6px;

  /* the ground of the contact part and the footer, and the lines on it */
  --deep: #0E2F3B;         /* night petrol */
  --deep-ink: var(--white);
  --bar-line: transparent;

  --gutter: clamp(20px, 6.5vw, 132px);
  --wide: 1206px;
}

/* round 8 (23/11 2026): the top bar, the contact part and the footer share one colour (his words:
   "i meant both top header and bottom"). The values in :root are the night petrol frame; h-mos on <html>
   is the moss frame, which the page carries for now (Claude's bid). Neither is chosen. */
.h-mos { --bar: #D6E0C7; --deep: #D6E0C7; --bar-ink: var(--ink); --bar-ink2: var(--ink2); --deep-ink: var(--ink);
         --on-ink2: var(--ink2); --ink-line: #AEBE9B; }
.h-mos .bar nav a.btn, .h-mos form .btn { color: var(--white); background: var(--ink); border-color: var(--ink); }
.h-mos .bar nav a.btn:hover, .h-mos .bar nav a.btn.here, .h-mos form .btn:hover { background: var(--ink-deep); border-color: var(--ink-deep); }
.h-mos input:focus-visible, .h-mos textarea:focus-visible { outline-color: var(--ink); }

/* round 9 (25/11 2026): a third colour scheme shown for review, on his words "I wonder if we should try
   moss and gold": s-mg on <html> (together with h-mos). Moss where the petrol is, text in a dark moss,
   gold as the third colour. The values are Claude's. */
.s-mg { --ink: #2F4429; --ink2: #51654A; --ink-deep: #1F2F1B; --pale: #E4EBD9; --line: #CDD6C2; --box-line: #C3CFB4;
        --field-line: #6B7F62; --third-a: #E7D08E; --third-b: #F6EDD3; --third-solid: #EDDCA8; }
.s-mg.p-malet .band-art { background: linear-gradient(100deg, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.5) 82%), url(img/malet/mg-baand.jpg) center / 100% 100% no-repeat; }
.s-mg.p-malet .three > div { background-image: url(img/malet/mg-boks-1.jpg); }
.s-mg.p-malet .three > div:nth-child(2) { background-image: url(img/malet/mg-boks-2.jpg); }
.s-mg.p-malet .three > div:nth-child(3) { background-image: url(img/malet/mg-boks-3.jpg); }

/* round 10 (25/11 2026): his version of moss and gold: "moss green banner and then the three boxes below
   are meant to be slightly golden" (v-ny on <html>, with s-mg). t-petrol keeps the text and the logo in
   petrol ink inside the same scheme; shown for comparison, since the logo was settled as petrol ink. */
.s-mg.v-ny.p-malet .band-art { background: linear-gradient(100deg, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.5) 82%), url(img/malet/baand.jpg) center / 100% 100% no-repeat; }
.s-mg.v-ny.p-malet .three > div { background-image: url(img/malet/guld-boks-1.jpg); }
.s-mg.v-ny.p-malet .three > div:nth-child(2) { background-image: url(img/malet/guld-boks-2.jpg); }
.s-mg.v-ny.p-malet .three > div:nth-child(3) { background-image: url(img/malet/guld-boks-3.jpg); }
.t-petrol { --ink: #17485A; --ink2: #3F6170; --ink-deep: #0F3645; }

/* round 11 (25/11 2026): "it is just too green now ... we need something to create more variety". Shown on
   a switch; nothing is chosen. The moss sat in four roles at once (text, top and bottom, band, mark).
   i-kul / i-petrol: the text, the lines and the small logo in a warm charcoal or in petrol ink.
   b-hvid: the top bar white with a thin line.     f-sand / f-dyb / f-hvid: the bottom in sand paper, in the
   deep ink with white text, or white with a line.  k-streg: the three boxes as plain columns under an ink line. */
.i-kul { --ink: #2B2B26; --ink2: #5B5A52; --ink-deep: #23231E; --line: #DAD8CD; --box-line: #CFCDC0; --field-line: #76746A; }
.i-petrol { --ink: #17485A; --ink2: #3F6170; --ink-deep: #0F3645; }
.b-hvid { --bar: #FFFFFF; --bar-line: var(--line); }
.f-sand { --deep: #F4EEDF; --ink-line: #DCD2BA; }
.f-hvid { --deep: #FFFFFF; --ink-line: var(--line); }
.f-hvid .band-contact { border-top: 1px solid var(--line); }
.f-dyb { --deep: var(--ink-deep); --deep-ink: #FFFFFF; --on-ink2: #D8DBD2; --ink-line: rgba(255, 255, 255, 0.26); }
.f-dyb form .btn { color: var(--ink-deep); background: #FFFFFF; border-color: #FFFFFF; }
.f-dyb form .btn:hover { background: var(--pale); border-color: var(--pale); }
.f-dyb input:focus-visible, .f-dyb textarea:focus-visible { outline-color: #FFFFFF; }
.k-streg.p-malet .three > div { background: none !important; border-radius: 0; padding: 22px 0 0; border-top: 1.5px solid var(--ink); overflow: visible; }
/* e-pen: the article band ends like a stroke of the flat pen that drew the mark: both ends cut on the slant,
   inside the page's side margins (no cut where the margins are narrow). His words: "play on this painted
   feel of the logo and then draw a contrast". */
.e-pen .band-art { --cut: clamp(0px, (100vw - var(--wide)) / 2 - 14px, 200px); clip-path: polygon(var(--cut) 0, 100% 0, calc(100% - var(--cut)) 100%, 0 100%); }

/* round 12 (25/11 2026): his words: the invitation band "could be a little slimmer, just like the article
   band, and maybe it should also be painted, and maybe it should actually just be the bottom"; "the very
   bottom with the address and phone number is just white like the top"; the services rows on hover "a
   little more painted, just vaguely". n-form (on the switch): the bottom without the form. */
.p-malet .band-cta { background: linear-gradient(100deg, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.5) 82%), url(img/malet/baand-2.jpg) center / 100% 100% no-repeat; scroll-margin-top: 72px; }
.p-malet .cta { padding: 40px 0; }
.p-malet .cta h2 { font-size: clamp(24px, 1.9vw, 28px); max-width: none; }
.p-malet .cta p { margin-top: 6px; }
.f-hvid .band-cta + .band-contact { border-top: 0; }
.band-cta + .band-contact .sec { padding-top: clamp(48px, 5vw, 72px); }
.p-malet .rows li .tint { background: url(img/malet/raekke.jpg) center / 100% 100% no-repeat; inset: -5px -34px -6px; }
.n-form #kontaktformular, .n-form .contact .intro { display: none; }
.n-form .contact { grid-template-columns: 1fr; }
.n-form .details { grid-auto-flow: column; justify-content: start; gap: 22px 72px; }
.n-form .band-cta + .band-contact .sec { padding: 44px 0 48px; }

/* round 13 (25/11 2026): the form has its own page (kontakt.html, body.sub). On the front page (body.front)
   the invitation band is followed by the white footer; the band itself sets the footer off, so the footer's
   own line is left out there. */
.front footer .inner { border-top: 0; padding-top: 30px; }
.sub .band-contact { border-top: 0; }
.as-h2 { font-size: clamp(30px, 2.8vw, 42px); line-height: 1.15; letter-spacing: 0; margin-bottom: 38px; }

/* round 14 (25/11 2026): both painted bands paler (his words: "it does have to paint it, but just slightly
   less visible, so it's more calming"): more white laid over the same washes. */
.s-mg.v-ny.p-malet .band-art { background: linear-gradient(100deg, rgba(255, 255, 255, 0.45) 0%, rgba(255, 255, 255, 0.74) 82%), url(img/malet/baand.jpg) center / 100% 100% no-repeat; }
.s-mg.v-ny.p-malet .band-cta { background: linear-gradient(100deg, rgba(255, 255, 255, 0.45) 0%, rgba(255, 255, 255, 0.74) 82%), url(img/malet/baand-2.jpg) center / 100% 100% no-repeat; }

/* round 15 (25/11 2026): the wash behind a services row under the pointer is a very light gold (his words:
   "a little bit of contrast helps ... whereas all in green it feels very" monotonous). */
.p-malet .rows li .tint { background-image: url(img/malet/raekke-guld.jpg); }

/* round 10 (25/11 2026): varieties of the big mark at the top ("a bit more alive"). The shape is the settled
   one; the pictures are painted with the slide kit (_build/paint_test.py marks). With mk on <html> the
   picture stands in the mark's place (it has 40 px of air around the mark, hence the width and margins).
   With m-tegn the three pen strokes are drawn one after the other in the order of the pen: the same picture
   lies three times, each cut to one stroke, and a fourth time whole for what lies around the strokes. */
.pm { display: none; position: relative; width: 109.154%; margin: -4.577% 0 -4.577% -4.577%; aspect-ratio: 954 / 840; }
.pm i, .pm b { position: absolute; inset: 0; background: var(--mark) center / 100% 100% no-repeat; }
.pm i { display: none; }
.mk .figure svg { display: none; }
.mk .pm { display: block; }
.m-flad { --mark: url(img/maerke/flad.svg); }
.m-malet { --mark: url(img/maerke/malet.jpg); }
.m-guld-ben { --mark: url(img/maerke/guld-ben.jpg); }
.m-dyb { --mark: url(img/maerke/dyb.jpg); }
.m-streg { --mark: url(img/maerke/streg.jpg); }
.m-reset .figure, .m-reset .figure * { transition: none !important; }
.anim .pm { opacity: 0; transition: opacity 700ms ease-out 350ms; }
.anim .figure.in .pm { opacity: 1; }
.anim.m-tegn .pm { opacity: 1; transition: none; }
.anim.m-tegn .pm i { display: block; transition: clip-path 520ms cubic-bezier(.45, .05, .35, 1); }
.anim.m-tegn .pm b { opacity: 0; transition: opacity 500ms ease-out; }
.anim.m-tegn .pm i:nth-child(1) { clip-path: polygon(93.82% 82.80%, 93.82% 94.67%, 93.82% 94.67%, 93.82% 85.53%, 93.82% 82.80%); }
.anim.m-tegn .pm i:nth-child(2) { clip-path: polygon(18.63% 82.53%, 3.69% 94.38%, 3.69% 94.38%, 18.63% 82.53%); }
.anim.m-tegn .pm i:nth-child(3) { clip-path: polygon(55.68% 8.72%, 42.33% 19.35%, 42.33% 19.35%, 55.68% 8.72%); }
.anim.m-tegn .figure.in .pm i:nth-child(1) { clip-path: polygon(93.82% 82.80%, 93.82% 94.67%, 3.69% 94.67%, 14.84% 85.53%, 16.24% 82.80%); transition-delay: 350ms; }
.anim.m-tegn .figure.in .pm i:nth-child(2) { clip-path: polygon(18.63% 82.53%, 3.69% 94.38%, 43.83% 16.41%, 57.17% 5.78%); transition-delay: 850ms; }
.anim.m-tegn .figure.in .pm i:nth-child(3) { clip-path: polygon(55.68% 8.72%, 42.33% 19.35%, 73.95% 81.55%, 87.29% 70.92%); transition-delay: 1350ms; }
.anim.m-tegn .figure.in .pm b { opacity: 1; transition-delay: 1850ms; }

/* the painted band and boxes (p-malet on <html>; his yes 25/11: "I like the painted feel"). The pictures
   are made with the slide kit by _build/paint_test.py. */
.p-malet .band-art { background: linear-gradient(100deg, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.5) 82%), url(img/malet/baand.jpg) center / 100% 100% no-repeat; }
.p-malet .three > div { background: url(img/malet/boks-1.jpg) center / 100% 100% no-repeat; }
.p-malet .three > div:nth-child(2) { background-image: url(img/malet/boks-2.jpg); }
.p-malet .three > div:nth-child(3) { background-image: url(img/malet/boks-3.jpg); }

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font-family: "Commissioner", system-ui, sans-serif;
  font-variation-settings: "FLAR" 100;
  font-size: 18px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

h1, h2 {
  font-family: "Newsreader", Georgia, serif;
  font-weight: 500;
  font-variation-settings: normal;
  margin: 0;
  letter-spacing: -0.01em;
}
h1 { font-size: clamp(40px, 5.2vw, 78px); line-height: 1.04; letter-spacing: -0.015em; }
h2 { font-size: clamp(30px, 2.8vw, 42px); line-height: 1.15; }
h3 { font-size: 20px; font-weight: 600; line-height: 1.35; margin: 0; }
p { margin: 0; }

a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 0.2em; }
a:hover { text-decoration-thickness: 2px; }

:focus-visible { outline: 2px solid currentColor; outline-offset: 3px; border-radius: 2px; }

.skip { position: absolute; left: -9999px; }
.skip:focus { left: var(--gutter); top: 12px; background: var(--white); color: var(--ink); padding: 8px 12px; z-index: 20; }

/* the top bar: stays at the top of the window while the page scrolls */
.bar { position: sticky; top: 0; z-index: 10; background: var(--bar); color: var(--bar-ink); border-bottom: 1px solid var(--bar-line); }
.bar .wrap { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding-top: 14px; padding-bottom: 14px; }
.logo { display: block; line-height: 0; text-decoration: none; color: var(--bar-ink); }
.logo svg { display: block; height: 58px; width: auto; margin-left: -1px; overflow: visible; }
.bar { transition: box-shadow 250ms ease; }
.bar.scrolled { box-shadow: 0 6px 20px rgba(9, 38, 48, 0.22); }
.bar nav { display: flex; align-items: center; gap: 38px; }
.bar nav a { font-size: 17px; font-weight: 500; text-decoration: none; padding: 8px 0; border-bottom: 2px solid transparent; transition: border-color 200ms ease; }
.bar nav a:hover, .bar nav a.here { border-bottom-color: currentColor; }
.bar nav a.btn { padding: 9px 20px; border: 1px solid var(--white); white-space: nowrap; }
.bar nav a.btn:hover, .bar nav a.btn.here { border-color: var(--pale); }

/* buttons: white on petrol grounds, petrol (.btn-ink) on light grounds */
.btn {
  display: inline-block;
  font: inherit;
  font-size: 17px;
  font-weight: 500;
  line-height: 1.4;
  text-decoration: none;
  color: var(--ink);
  background: var(--white);
  border: 1px solid var(--white);
  border-radius: var(--rad-s);
  padding: 12px 26px;
  cursor: pointer;
  transition: background-color 150ms ease, border-color 150ms ease;
}
.btn:hover { background: var(--pale); border-color: var(--pale); }
.btn-ink { color: var(--white); background: var(--ink); border-color: var(--ink); }
.btn-ink:hover { background: var(--ink-deep); border-color: var(--ink-deep); }

/* the opening text */
.band-hero { background: var(--hero); overflow: hidden; }
.hero { display: grid; grid-template-columns: minmax(0, 1.75fr) minmax(0, 1fr); gap: 56px; align-items: center; padding-top: clamp(48px, 6.4vw, 94px); padding-bottom: clamp(48px, 6vw, 88px); }
.hero .lead { font-size: clamp(20px, 1.65vw, 24px); line-height: 1.45; max-width: 31em; margin-top: 32px; }
.hero .lead + p { max-width: 34em; margin-top: 18px; color: var(--ink2); }
.figure { color: var(--figure); justify-self: end; width: 100%; max-width: 400px; }
.figure svg { display: block; width: 100%; height: auto; overflow: visible; }

/* the articles: a slim band under the opening text. Two cards show at a time, one when the band is
   narrower than 860 px; the row slides on by itself and on a click of the arrows.
   The band's colour is the page's third colour: --third-a (deeper end), --third-b (lighter end). */
.band-art { background: linear-gradient(100deg, var(--third-a) 0%, var(--third-b) 78%); color: var(--third-ink); scroll-margin-top: 86px; }
.art { display: grid; grid-template-columns: 170px minmax(0, 1fr); gap: 40px; align-items: center; padding: 30px 0; }
.art h2 { font-size: 30px; }
.art-nav { display: flex; align-items: center; gap: 8px; margin-top: 16px; }
.arrow { flex: none; display: grid; place-items: center; width: 38px; height: 38px; padding: 0; color: var(--third-ink); background: rgba(255, 255, 255, 0.55); border: 0; border-radius: var(--rad-btn); cursor: pointer; box-shadow: 0 1px 2px rgba(9, 38, 48, 0.12); transition: background-color 200ms ease, color 200ms ease, transform 200ms cubic-bezier(.2, .7, .2, 1), opacity 200ms ease; }
.arrow svg { display: block; width: 18px; height: 18px; }
.arrow:hover { background: var(--white); transform: scale(1.08); }
.arrow:active { transform: scale(0.96); }
.arrow:disabled { opacity: 0.4; box-shadow: none; cursor: default; transform: none; background: rgba(255, 255, 255, 0.4); }
.pages { display: flex; gap: 5px; margin-left: 10px; }
.pages i { position: relative; display: block; width: 10px; height: 4px; border-radius: 2px; background: color-mix(in srgb, var(--third-ink) 22%, transparent); overflow: hidden; transition: width 400ms cubic-bezier(.2, .7, .2, 1); }
.pages i.on { width: 24px; }
.pages i::after { content: ""; position: absolute; inset: 0; border-radius: 2px; background: var(--third-ink); transform: translateX(-101%); }
.pages i.on::after { transform: none; }
.pages i.on.run::after { animation: fill 6s linear both; }
@keyframes fill { from { transform: translateX(-101%); } to { transform: none; } }
.view { container-type: inline-size; overflow: hidden; padding: 10px 12px 16px; margin: -10px -12px -16px; }
.cards { --p: 0; --v: 2; margin: 0; padding: 0; list-style: none; display: flex; gap: 24px; transform: translateX(calc(var(--p) * (-100% - 24px) / var(--v))); transition: transform 850ms cubic-bezier(.65, 0, .25, 1); }
.cards li { flex: 0 0 calc((100% - 24px) / 2); min-width: 0; display: flex; transition: opacity 500ms ease; }
.cards li.off { opacity: 0.35; }
.cards a { flex: 1; display: grid; grid-template-columns: 150px minmax(0, 1fr); align-items: center; gap: 22px; min-height: 104px; overflow: hidden; color: var(--ink); text-decoration: none; background: var(--white); border-radius: var(--rad); box-shadow: 0 1px 2px rgba(9, 38, 48, 0.08), 0 6px 16px rgba(9, 38, 48, 0.08); transition: transform 300ms cubic-bezier(.2, .7, .2, 1), box-shadow 300ms ease; }
.cards a:hover { transform: translateY(-3px); box-shadow: 0 2px 4px rgba(9, 38, 48, 0.08), 0 14px 28px rgba(9, 38, 48, 0.16); }
.thumb { position: relative; display: block; align-self: stretch; overflow: hidden; }
.thumb img { position: absolute; inset: 0; display: block; width: 100%; height: 100%; object-fit: contain; transition: transform 700ms cubic-bezier(.2, .7, .2, 1); }
.cards a:hover .thumb img { transform: scale(1.08); }
.cards h3 { font-size: 18px; font-weight: 500; line-height: 1.4; padding: 14px 22px 14px 0; text-wrap: balance; }
.cards a:hover h3 { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 0.2em; }
@container (max-width: 859px) {
  .cards li { flex-basis: 100%; }
}
@container (max-width: 430px) {
  .cards a { grid-template-columns: 104px minmax(0, 1fr); gap: 16px; }
  .cards h3 { font-size: 16px; padding: 12px 16px 12px 0; }
}
@media (max-width: 1180px) {
  .art { grid-template-columns: 1fr; gap: 16px; padding: 22px 0 28px; }
  .art-head { display: flex; align-items: center; justify-content: space-between; }
  .art h2 { font-size: 27px; }
  .art-nav { margin-top: 0; }
}
/* round 28 (1/12 2026): no articles yet, so the band is an empty painted strip, half as high as with the cards
   (164 px at 1470). His words: "halvt så høj og ingen billeder osv." ARTICLES_READY in _build/build.py brings the cards back. */
.band-vent { height: 82px; }
@media (prefers-reduced-motion: reduce) { .cards { transition: none; } .pages i.on.run::after { animation: none; } }

/* sections */
main section { scroll-margin-top: 96px; }
.sec { padding: clamp(60px, 6.8vw, 100px) 0; }
.sec h2 { margin-bottom: 38px; }

.three { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.three > div { position: relative; overflow: hidden; background: var(--box); border-radius: var(--rad); padding: 34px 32px 36px; }
.three h3 { font-family: "Newsreader", Georgia, serif; font-variation-settings: normal; font-size: 27px; font-weight: 500; line-height: 1.2; letter-spacing: -0.005em; }
.three p { margin-top: 12px; }

.rows { margin: 0; padding: 0; list-style: none; }
.rows li { position: relative; display: grid; grid-template-columns: minmax(220px, 1fr) 2fr; gap: 44px; align-items: baseline; padding: 22px 0; }
.rows li > * { position: relative; transition: transform 300ms cubic-bezier(.2, .7, .2, 1); }
.rows h3 { font-family: "Newsreader", Georgia, serif; font-variation-settings: normal; font-size: 25px; font-weight: 500; line-height: 1.25; letter-spacing: -0.005em; }
.rows li .tint { position: absolute; inset: 1px -20px 0; background: var(--pale); opacity: 0; transition: opacity 300ms ease; }
.rows li:hover .tint { opacity: 1; }
.rows li:hover h3 { transform: translateX(6px); }
#ekspertise { padding-bottom: clamp(36px, 3.8vw, 56px); }
#raadgivning { padding-top: clamp(36px, 3.8vw, 56px); }
.rows li::before, .rows li:last-child::after { content: ""; position: absolute; left: 0; top: 0; width: 100%; height: 1px; background: var(--line); transform-origin: left; }
.rows li:last-child::after { top: auto; bottom: 0; }

/* the invitation between the services and the part about him */
.band-cta { background: var(--pale); }
.cta { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 48px; align-items: center; padding: clamp(48px, 5vw, 72px) 0; }
.cta h2 { font-size: clamp(27px, 2.4vw, 36px); max-width: 21em; }
.cta p { margin-top: 12px; }

/* round 30 (1/12 2026): the text runs around a smaller picture (his words: "teksten 'wrapper' om billedet og billedet ikke visuelt stikker så meget ud") */
.about { display: flow-root; max-width: 760px; }
.about .photo { float: right; width: 320px; margin: 7px 0 16px 36px; }
.about p + p { margin-top: 16px; }
/* round 13: no tile behind the portrait (his words 25/11: "I don't think there needs to be any shade at all") */
.photo { position: relative; }
.photo img { border-radius: var(--rad-s); }
.photo img { position: relative; display: block; width: 100%; height: auto; }

/* contact and footer: on petrol */
.band-contact { background: var(--deep); color: var(--deep-ink); }
.contact { display: grid; grid-template-columns: 1.15fr 1fr; gap: 72px; align-items: start; }
.contact .intro { margin-bottom: 28px; max-width: 30em; }

form { display: grid; gap: 18px; max-width: 34em; }
label { display: block; font-size: 15px; font-weight: 500; margin-bottom: 6px; }
label .opt { font-weight: 400; color: var(--on-ink2); }
input, textarea {
  width: 100%;
  font: inherit;
  font-size: 17px;
  color: var(--ink);
  background: var(--white);
  border: 1px solid var(--field-line);
  border-radius: var(--rad-s);
  padding: 11px 13px;
}
textarea { min-height: 150px; resize: vertical; }
input:focus-visible, textarea:focus-visible { outline: 2px solid var(--white); outline-offset: 2px; }
form .btn { justify-self: start; }
.small { font-size: 15px; color: var(--on-ink2); }
.form-note { font-size: 15px; font-weight: 500; }

.details { margin: 0; display: grid; gap: 22px; }
.details dt { font-size: 15px; color: var(--on-ink2); }
.details dd { margin: 2px 0 0; font-size: 19px; }

footer { background: var(--deep); color: var(--on-ink2); }
footer .inner { border-top: 1px solid var(--ink-line); padding: 26px 0 40px; display: flex; gap: 12px 48px; flex-wrap: wrap; font-size: 15px; }

/* placeholder mark: every value that is not his yet. Search for class="ph" before going live. */
.ph { border-bottom: 1px dashed currentColor; }

/* movement: things rise into place as they come into view. Only when the script in the page's head
   has set .anim (not with reduced motion, not with ?still in the address). */
.anim .rv { opacity: 0; transform: translateY(22px); transition: opacity 620ms ease-out, transform 620ms cubic-bezier(.2, .7, .2, 1); transition-delay: calc(var(--d, 0) * 110ms); }
.anim .rv.in { opacity: 1; transform: none; }
.anim .rows li::before, .anim .rows li:last-child::after { transform: scaleX(0); transition: transform 800ms cubic-bezier(.2, .7, .2, 1); transition-delay: calc(var(--d, 0) * 110ms); }
.anim .rows li.in::before, .anim .rows li.in:last-child::after { transform: none; }
.anim .figure path { opacity: 0; transition: opacity 700ms ease-out; }
.anim .figure.in path { opacity: 1; }
.anim .figure.in path:nth-child(1) { transition-delay: 350ms; }
.anim .figure.in path:nth-child(2) { transition-delay: 700ms; }
.anim .figure.in path:nth-child(3) { transition-delay: 1050ms; }

@media (max-width: 860px) {
  body { font-size: 17px; }
  .bar { position: static; }
  .bar .wrap { padding-top: 12px; padding-bottom: 12px; flex-wrap: wrap; }
  .logo svg { height: 50px; }
  .bar nav { gap: 20px; }
  .bar nav a { font-size: 16px; }
  .bar .wrap { position: relative; }
  .bar nav { width: 100%; }
  .bar nav a.btn { position: absolute; right: var(--gutter); top: 17px; padding: 7px 14px; }
  .cta { grid-template-columns: 1fr; gap: 24px; justify-items: start; }
  .n-form .details { grid-auto-flow: row; }
  .p-malet .cta { padding: 28px 0; gap: 16px; }
  .p-malet .rows li .tint { inset: -4px -14px -5px; }
  .photo { max-width: 478px; }
  .rows li .tint { inset: 1px -12px 0; }
  .rows h3 { font-size: 23px; }
  .hero { grid-template-columns: 1fr; }
  .figure { display: none; }
  .three, .contact { grid-template-columns: 1fr; gap: 20px; }
  .contact { gap: 32px; }
  .about { display: flex; flex-direction: column; max-width: none; }
  .about .photo { float: none; width: auto; order: 9; margin: 32px 0 0; }
  .rows li { grid-template-columns: 1fr; gap: 6px; }
}


/* review panel: only on the pages of a review round, never on site/index.html */
.review { position: fixed; right: 14px; bottom: 14px; z-index: 30; display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; max-width: calc(100vw - 24px); padding: 9px 14px; font: 14px/1.3 system-ui, sans-serif; color: #1E2A2E; background: #fff; border: 1px solid #C8C8C8; border-radius: 10px; box-shadow: 0 8px 28px rgba(0, 0, 0, 0.22); }
.review span { font-weight: 600; }
.review.min > span, .review.min > div { display: none; }
.review .mini { margin-left: 4px; }
.review.min { padding: 6px; }
.review.min .mini { margin: 0; color: #fff; background: #1E2A2E; border-color: #1E2A2E; }
.review div { display: flex; flex-wrap: wrap; gap: 4px; }
.review button { font: inherit; padding: 5px 9px; color: inherit; background: #F1F1F1; border: 1px solid #D0D0D0; border-radius: 6px; cursor: pointer; }
.review button[aria-pressed="true"] { color: #fff; background: #1E2A2E; border-color: #1E2A2E; }
.review button i { display: inline-block; width: 10px; height: 10px; margin-right: 5px; border-radius: 50%; border: 1px solid rgba(0, 0, 0, 0.2); vertical-align: -1px; }
.review button:disabled { opacity: 0.45; cursor: default; }


/* round 16 (26/11 2026): a second top to compare. With t-foto on <html> his portrait stands in the right
   column in place of the big mark, a small painted mark sits beside the delta sentence, and "Om Nikolaj"
   shows another picture from the same shoot (the place for a workshop picture when he has one). */
.hero-photo, .dm, .photo .p-b { display: none; }
.hero-photo img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 22%; border-radius: var(--rad-s); }
.t-foto .figure { display: none; }
.t-foto .hero-photo { display: block; justify-self: end; width: 100%; max-width: 400px; }
.t-foto .hero .delta { display: grid; grid-template-columns: 56px minmax(0, 1fr); gap: 18px; align-items: center; max-width: 38em; }
.t-foto .dm { display: block; aspect-ratio: 954 / 840; background: url(img/maerke/dyb.jpg) center / 100% 100% no-repeat; }
.t-foto .photo .p-a { display: none; }
.t-foto .photo .p-b { display: block; }
.t-foto .review [data-set="g"], .t-foto .review [data-for="g"] { display: none; }
@media (max-width: 860px) {
  .t-foto .hero { gap: 0; }
  .t-foto .hero > div:first-child { display: contents; }
  .t-foto .hero h1 { order: 1; }
  .t-foto .hero-photo { order: 2; justify-self: start; max-width: 300px; margin-top: 28px; }
  .t-foto .hero-photo img { aspect-ratio: 1 / 1; object-position: 50% 12%; }
  .t-foto .hero .lead { order: 3; margin-top: 26px; }
  .t-foto .hero .delta { order: 4; grid-template-columns: 44px minmax(0, 1fr); gap: 14px; }
}

/* round 17 (26/11 2026): the pictures in black and white or, with t-farve on <html>, in colour */
.hero-photo .f-farve, .t-foto .photo .f-farve { display: none; }
.t-farve .hero-photo .f-sh, .t-farve.t-foto .photo .f-sh { display: none; }
.t-farve .hero-photo .f-farve, .t-farve.t-foto .photo .f-farve { display: block; }

/* round 19 (26/11 2026): the form sends. The hidden field is for junk senders only; a status line in bold when
   something went wrong. */
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-note.err { font-weight: 600; }
.form-note:empty + .small { margin-top: -18px; }

/* round 20 (27/11 2026): the written-through text. The opening is three short paragraphs in one size; the painted
   mark can stand as the D in the top bar (l-malet); the page for an address that does not exist. */
.hero .lead { font-size: clamp(18px, 1.36vw, 20px); line-height: 1.5; max-width: 34em; margin-top: 30px; }
.hero .lead + .lead, .t-foto .hero .lead + .lead { margin-top: 14px; max-width: 34em; color: inherit; }
.logo .lp { display: none; mix-blend-mode: multiply; }
.l-malet .logo .lp { display: block; }
.l-malet .logo .lf { display: none; }
/* round 29 (1/12 2026): the privacy page, a narrow column of plain text */
.legal { max-width: 720px; }
.sec.legal .as-h2 { margin-bottom: 20px; }
.sec.legal h2 { font-size: 22px; line-height: 1.3; margin: 36px 0 8px; }
.legal p { margin: 0 0 12px; }
.missing { min-height: 46vh; }
.missing p { margin-top: 18px; font-size: 19px; }

/* round 21 (27/11 2026): "Om mig" has its heading above both columns; the picture starts level with the text's first line */
/* (the round 21 offset of the picture went out with the two columns in round 30) */

/* round 22 (27/11 2026): a line between a section's heading and its content */
.sec h2:has(+ .sec-intro) { margin-bottom: 16px; }
.sec-intro { font-size: clamp(18px, 1.5vw, 22px); line-height: 1.45; max-width: 36em; margin-bottom: 38px; }

/* round 24 (29/11 2026): the line under "Min ekspertise" is now a paragraph, so it is set like the opening's text */
.sec-intro { font-size: clamp(18px, 1.36vw, 20px); line-height: 1.5; max-width: 44em; }
