/* gargs.nl, "Fortnight". One stylesheet for every page: home, detail pages and the 404.
   Plain CSS: no nesting, no build step, no JavaScript. Order: tokens, base, links and buttons,
   header, home sections, closing block and footer, detail pages, 404, then the width ranges.
   The two families are served from /fonts/ (Latin subset, variable weight); their licenses sit beside them. */

/* ---------- 0. Fonts ---------- */
/* The arrows after links are outside this range on purpose: they come from the system font, as in the design. */
@font-face {
  font-family: "Piazzolla"; font-style: normal; font-weight: 400 800; font-display: swap;
  src: url("../fonts/piazzolla-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Piazzolla"; font-style: italic; font-weight: 400 800; font-display: swap;
  src: url("../fonts/piazzolla-latin-italic.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Schibsted Grotesk"; font-style: normal; font-weight: 400 800; font-display: swap;
  src: url("../fonts/schibsted-grotesk-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* ---------- 1. Tokens ---------- */
:root {
  color-scheme: light dark;

  /* Color */
  --paper: #F8F5EE;            /* page ground */
  --ink: #17201B;              /* headings, strong text, outline buttons */
  --soft: #49544D;             /* running text, captions */
  --line: rgba(23, 32, 27, .2);/* hairlines */
  --tint: #E3ECE1;             /* numbers band, fact panel, row hover */
  --green: #0F5E3C;            /* links, figures, marks */
  --green-d: #0A4129;          /* link hover */
  --fill: #0F5E3C;             /* primary button */
  --fill-d: #0A4129;           /* primary button hover */
  --band: #0F5E3C;             /* quote band */
  --on-fill: #FFFFFF;          /* text on --fill and --band */
  --on-fill-soft: #D5E6DA;     /* caption on --band */
  --orange: #DD5519;           /* accent: one per motif, and the focus ring */

  /* Type */
  --serif: "Piazzolla", Georgia, serif;
  --sans: "Schibsted Grotesk", system-ui, -apple-system, "Segoe UI", sans-serif;

  /* Layout */
  --wrap: 1184px;              /* content width, inside the gutters */
  --gutter: 32px;
  --col: 352px;                /* title column of every two-column section */
  --gap: 32px;                 /* gap between title column and text column */
  --header: 69px;              /* sticky header height, including its hairline */

  /* The tick pattern behind the fortnight rule, the nav underline and the twenty-year rule */
  --ticks: repeating-linear-gradient(90deg, currentColor 0 2px, transparent 2px 14px);
}

@media (prefers-color-scheme: dark) {
  :root {
    --paper: #111713;
    --ink: #ECE8DE;
    --soft: #AAB4AC;
    --line: rgba(236, 232, 222, .22);
    --tint: #1A241E;
    --green: #7CCFA2;
    --green-d: #A5E2C0;
    --fill: #1E7A52;
    --fill-d: #166241;
    --band: #153F2D;
    --on-fill: #FFFFFF;
    --on-fill-soft: #C9DDD0;
    --orange: #F07A3F;
  }
}

/* ---------- 2. Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; min-height: 100vh; color: var(--ink); background: var(--paper);
  font: 400 18px/28px var(--sans); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  display: flex; flex-direction: column;       /* keeps the footer at the bottom of the window on a short page (the 404) */
}
main { flex: 1; }
.anchor { position: absolute; top: 0; }        /* a link target inside a list item, see 07-hugo.md */
h1, h2, h3, p, ul, ol, dl, dd, figure, blockquote { margin: 0; padding: 0; }
ul, ol { list-style: none; }
img { display: block; max-width: 100%; height: auto; }
[id] { scroll-margin-top: calc(var(--header) + 23px); }
h1, h2, h3, blockquote, dt, .brand, .n, .roles, .deck { font-family: var(--serif); }
p, li, dd { text-wrap: pretty; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }

h1 { font-size: 64px; line-height: 68px; font-weight: 700; letter-spacing: -.018em; text-wrap: balance; }
h2 { font-size: 40px; line-height: 44px; font-weight: 700; letter-spacing: -.015em; }
h3 { font-size: 24px; line-height: 30px; font-weight: 700; letter-spacing: -.005em; }

/* The fortnight rule: thirteen ticks and a longer orange one. It opens every section. */
h2::before, .notfound h1::before, .foot .wrap > div::before {
  content: ""; display: block; width: 184px; height: 16px; margin-bottom: 20px; color: var(--ink);
  background: linear-gradient(var(--orange), var(--orange)) 182px 0 / 2px 16px no-repeat, var(--ticks) 0 8px / 170px 8px no-repeat;
}

/* ---------- 3. Links and buttons ---------- */
/* A link is always visibly a link: green, underlined, and an arrow where it leads to more. */
a { color: var(--green); text-decoration: underline; text-decoration-thickness: 1.5px; text-underline-offset: 3px; }
a:hover { color: var(--green-d); text-decoration-thickness: 3px; }
a:focus-visible { outline: 2px solid var(--orange); outline-offset: 3px; }
.go { font-weight: 650; }
.go::after { content: "\00a0\2192"; }              /* leads to more on this site */
.ext::after, .sec .text a[href^="http"]::after, .facts a[href^="http"]::after { content: "\00a0\2197"; }   /* leaves the site */
.back::after { content: none; }
.back::before { content: "\2190\00a0"; }
.hit { position: relative; }                       /* the whole card or row is the hit area of its one link */
.hit .go::before { content: ""; position: absolute; inset: 0; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 16px; top: 12px; z-index: 9; background: var(--ink); color: var(--paper); padding: 8px 14px; }

.btn {
  display: inline-flex; align-items: center; height: 48px; padding: 0 20px; border-radius: 3px;
  font-weight: 700; font-size: 16px; line-height: 1; text-decoration: none;
  color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--ink); transition: background .15s, color .15s;
}
.btn:hover { background: var(--ink); color: var(--paper); }
.btn-p { background: var(--fill); color: var(--on-fill); box-shadow: none; }
.btn-p:hover { background: var(--fill-d); color: var(--on-fill); }
.acts { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }

/* ---------- 4. Header: the same on every page ---------- */
.top { position: sticky; top: 0; z-index: 5; background: var(--paper); border-bottom: 1px solid var(--line); }
.bar { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.brand { display: inline-flex; align-items: center; font-size: 21px; font-weight: 700; color: var(--ink); text-decoration: none; }
.brand:hover { color: var(--ink); text-decoration: underline; }
.brand::before { content: ""; order: -2; width: 13px; height: 13px; border-radius: 4px; background: var(--green); margin-right: 4px; }
.brand::after { content: ""; order: -1; width: 13px; height: 13px; border-radius: 50%; background: var(--orange); margin-right: 12px; }
.nav { display: flex; align-items: center; gap: 28px; font-size: 16px; font-weight: 600; }
.nav a:not(.btn) { color: var(--ink); text-decoration: none; padding: 6px 0; background: var(--ticks) 0 100% / 0 5px no-repeat; transition: background-size .2s; }
.nav a:not(.btn):hover, .nav a[aria-current] { background-size: 100% 5px; }
.nav .btn { height: 40px; padding: 0 16px; }

/* ---------- 5. Home: opening ---------- */
.hero { padding: 84px 0 88px; }
.hero .wrap { display: grid; grid-template-columns: minmax(0, 1fr) 320px; column-gap: 128px; align-items: center; }
.lead, .intro, .summary { font-size: 20px; line-height: 31px; color: var(--soft); max-width: 30em; }
.lead { margin-top: 24px; }
.lead + .lead { margin-top: 10px; }
.avail { margin-top: 22px; font-weight: 700; padding-left: 16px; position: relative; }
.avail::before { content: ""; position: absolute; left: 0; top: 4px; width: 3px; height: 20px; background: var(--orange); }
.portrait { position: relative; }
.portrait::before {
  content: ""; position: absolute; left: -26px; top: 0; width: 12px; height: 400px; color: var(--ink);
  background: linear-gradient(var(--orange), var(--orange)) 0 398px / 12px 2px no-repeat, repeating-linear-gradient(180deg, currentColor 0 2px, transparent 2px 30.6px) 6px 0 / 6px 100% no-repeat;
}
.portrait img { width: 320px; height: 400px; object-fit: cover; object-position: 50% 20%; }
.portrait figcaption, .credit, .meta, .crumb { font-size: 15px; line-height: 22px; color: var(--soft); }
.portrait figcaption { margin-top: 14px; }

/* ---------- 6. Home: numbers ---------- */
.nums { background: var(--tint); padding: 68px 0 72px; }
.nums .wrap { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 52px 64px; }
.n { font-size: 68px; line-height: 64px; font-weight: 700; letter-spacing: -.025em; color: var(--green); }
.cap { margin-top: 12px; max-width: 26em; font-size: 17px; line-height: 26px; color: var(--soft); }
.marks { display: grid; grid-template-columns: repeat(8, 24px); gap: 8px; margin: 18px 0 6px; }
.marks i { width: 24px; height: 24px; background: var(--green); border-radius: 7px; }
.marks i:nth-child(n+9) { border-radius: 50%; }
.marks i:first-child { background: var(--orange); }
.yrs20 { width: 268px; height: 24px; margin: 18px 0 6px; color: var(--green); background: linear-gradient(var(--orange), var(--orange)) 266px 0 / 2px 24px no-repeat, var(--ticks) 0 8px / 254px 16px no-repeat; }

/* ---------- 7. Sections: a title column and a text column ---------- */
.blk { padding-top: 100px; }
.head, .sec, .consult, .about, .facts .wrap { display: grid; grid-template-columns: var(--col) minmax(0, 1fr); column-gap: var(--gap); }
.head { align-items: end; margin-bottom: 40px; }
.text p, .text li, dd, .lead-item p { max-width: 31em; }
.text p + p, .text ul + p, .text p + ul { margin-top: 14px; }

/* How I lead: a heading, one sentence, and where the story is told */
.leads { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 64px; }
.lead-item { border-top: 1px solid var(--line); padding: 24px 0 32px; }
.lead-item h3 { display: flex; align-items: center; gap: 14px; }
.lead-item h3::before { content: ""; flex: none; height: 14px; width: calc(var(--i) * 7px - 5px); color: var(--green); background: repeating-linear-gradient(90deg, currentColor 0 2px, transparent 2px 7px); }
.lead-item:nth-child(1) { --i: 1; } .lead-item:nth-child(2) { --i: 2; } .lead-item:nth-child(3) { --i: 3; }
.lead-item:nth-child(4) { --i: 4; } .lead-item:nth-child(5) { --i: 5; } .lead-item:nth-child(6) { --i: 6; }
.lead-item p { margin-top: 8px; color: var(--soft); }
.lead-item .more { display: flex; flex-wrap: wrap; gap: 4px 24px; margin-top: 10px; font-size: 17px; color: var(--ink); }

/* Selected work: the whole card is the link */
.works { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; }
.shot { aspect-ratio: 4 / 3; overflow: hidden; background: var(--tint); outline: 0 solid var(--green); transition: outline-width .12s; }
.shot img { width: 100%; height: 100%; object-fit: cover; }
.work:hover .shot, .work:focus-within .shot { outline-width: 3px; }
.work h3 { margin-top: 20px; font-size: 27px; line-height: 32px; }
.meta { font-weight: 600; margin-top: 4px; }
.desc { margin-top: 8px; font-size: 17px; line-height: 26px; color: var(--soft); }
.credit { margin-top: 20px; }

/* Earlier career: the whole row is the link */
.sub { margin: 72px 0 14px; }
.earlier li { display: grid; grid-template-columns: 88px 264px minmax(0, 1fr); column-gap: 32px; align-items: baseline; padding: 16px 0 18px; border-top: 1px solid var(--line); transition: background .12s; }
.earlier li:last-child { border-bottom: 1px solid var(--line); }
.earlier li:hover { background: var(--tint); }
.earlier .go { font-family: var(--serif); font-weight: 700; font-size: 22px; line-height: 28px; }
.earlier p { color: var(--soft); }
.yrs { font-size: 15px; font-variant-numeric: tabular-nums; color: var(--soft); }
.consult { padding-top: 40px; }
.consult p { color: var(--soft); }

/* Quote */
.quote { margin-top: 104px; padding: 88px 0 80px; background: var(--band); color: var(--on-fill); text-align: center; }
blockquote { max-width: 900px; margin: 0 auto; font-size: 38px; line-height: 50px; font-style: italic; font-weight: 500; text-wrap: balance; }
.quote figcaption { margin-top: 22px; font-size: 16px; color: var(--on-fill-soft); }

/* What I am looking for */
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); column-gap: 96px; align-items: end; }
.split .intro { margin-top: 14px; }
.roles { margin-top: 28px; border-bottom: 1px solid var(--line); }
.roles li { font-size: 27px; line-height: 34px; font-weight: 700; padding: 15px 0 17px; border-top: 1px solid var(--line); }
/* The same markers serve the lists in detail-page prose (plain <ul> from Markdown, inside .sec .text) */
.details li, .sec .text li { position: relative; padding-left: 30px; margin-bottom: 16px; color: var(--soft); }
.details li::before, .sec .text li::before { content: ""; position: absolute; left: 0; top: 9px; width: 12px; height: 12px; border-radius: 4px; background: var(--green); }
.details li:nth-child(even)::before, .sec .text li:nth-child(even)::before { border-radius: 50%; background: var(--orange); }
.details li:last-child, .sec .text li:last-child { margin-bottom: 0; }
.sec .text li strong { color: var(--ink); }

/* A bit about me: short facts, then doors */
.about p { color: var(--soft); }
.doors { margin-top: 26px; border-top: 1px solid var(--line); max-width: 31em; }
.doors li { padding: 14px 0 16px; border-bottom: 1px solid var(--line); color: var(--soft); }

/* ---------- 8. Closing block and footer: on every page ---------- */
.contact { padding: 116px 0 108px; text-align: center; }
.contact h2 { font-size: 60px; line-height: 64px; }
.contact h2::before { margin: 0 auto 24px; }
.contact .intro { margin: 14px auto 0; }
.contact .avail { display: inline-block; }
.contact .acts { justify-content: center; }
.foot .wrap > div { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 28px; border-top: 1px solid var(--line); padding: 26px 0 40px; font-size: 15px; color: var(--soft); }
.foot .wrap > div::before { margin: 0; }
.foot p:last-child { margin-left: auto; }
.foot a { color: var(--soft); margin-left: 18px; }
.foot a:first-child { margin-left: 0; }

/* ---------- 9. Detail pages ---------- */
.crumb { padding-top: 28px; }
.crumb ol { display: flex; flex-wrap: wrap; }
.crumb li + li::before { content: "/"; margin: 0 .35em; }
.crumb a { color: var(--soft); }
.crumb [aria-current] { color: var(--ink); font-weight: 600; }
.case-head { padding: 28px 0 56px; }
.subtitle { margin-top: 12px; font-size: 20px; line-height: 28px; font-weight: 600; color: var(--green); }
.summary { margin-top: 22px; max-width: 34em; }
.facts { background: var(--tint); padding: 60px 0 56px; }
.facts dl { border-top: 1px solid var(--line); }
.facts dl > div { display: grid; grid-template-columns: 168px minmax(0, 1fr); column-gap: 24px; padding: 14px 0 16px; border-bottom: 1px solid var(--line); }
dt { font-size: 20px; font-weight: 700; }
dd { color: var(--soft); }
.media { padding-top: 64px; }
.media > img { width: 100%; background: #fff; outline: 1px solid var(--line); }
.shots { display: flex; gap: 20px; overflow-x: auto; padding-bottom: 6px; }
.shots img { flex: none; width: 208px; outline: 1px solid var(--line); }
.shots:focus-visible { outline: 2px solid var(--orange); outline-offset: 3px; }
.toc { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 24px; padding-top: 40px; font-size: 17px; }
.toc b { font-weight: 600; color: var(--soft); }
.sec { padding-top: 76px; }
.text { color: var(--soft); }
.text h3 { color: var(--ink); margin: 6px 0 12px; }
.deck { font-size: 24px; line-height: 34px; color: var(--ink); max-width: 26em; margin-bottom: 18px; }
.out { display: flex; flex-wrap: wrap; gap: 12px; padding-top: 56px; margin-left: calc(var(--col) + var(--gap)); }
.pn { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: start; gap: 24px; margin-top: 88px; padding-top: 28px; border-top: 1px solid var(--line); }
.pn div:last-child { text-align: right; }
.pn span { display: block; font-size: 15px; color: var(--soft); }
.pn a { font-family: var(--serif); font-weight: 700; font-size: 24px; line-height: 30px; }
.pn .all { font: 650 17px/30px var(--sans); }

/* ---------- 10. 404 ---------- */
.notfound { padding: 120px 0 148px; }
.notfound h1::before { margin-bottom: 28px; }

/* ---------- 11. Between phone and full width: 881px to 1180px ---------- */
/* Same layout as full width, tightened: narrower title column, smaller opening. */
@media (min-width: 881px) and (max-width: 1180px) {
  :root { --col: 264px; }
  .hero { padding: 64px 0 72px; }
  .hero .wrap { grid-template-columns: minmax(0, 1fr) 280px; column-gap: 64px; }
  h1 { font-size: 52px; line-height: 56px; }
  .portrait::before { height: 350px; background: linear-gradient(var(--orange), var(--orange)) 0 348px / 12px 2px no-repeat, repeating-linear-gradient(180deg, currentColor 0 2px, transparent 2px 26.77px) 6px 0 / 6px 100% no-repeat; }
  .portrait img { width: 280px; height: 350px; }
  .nums .wrap { gap: 44px 48px; }
  .n { font-size: 60px; line-height: 58px; }
  .leads { column-gap: 40px; }
  .works { gap: 24px; }
  .work h3 { font-size: 24px; line-height: 30px; }
  .earlier li { grid-template-columns: 88px 216px minmax(0, 1fr); column-gap: 24px; }
  blockquote { font-size: 32px; line-height: 43px; }
  .split { column-gap: 56px; }
  .roles li { font-size: 24px; line-height: 31px; }
  .contact h2 { font-size: 52px; line-height: 56px; }
}

/* ---------- 12. Phone and small tablet: up to 880px ---------- */
@media (max-width: 880px) {
  :root { --gutter: 20px; --header: 57px; }
  .wrap { font-size: 17px; line-height: 27px; }
  [id] { scroll-margin-top: calc(var(--header) + 16px); }

  /* Header: one row, as on wide screens, a little lower. The text links get a tap area of 44px or more
     through an invisible overlay, so nothing moves and the underline stays under the word. */
  .bar { height: 56px; }
  .brand { flex: none; font-size: 19px; }
  .nav { flex: none; gap: 22px; font-size: 15px; }
  .nav a { white-space: nowrap; }
  .nav a:not(.btn) { position: relative; }
  .nav a:not(.btn)::after { content: ""; position: absolute; inset: -6px -12px; }
  .nav .btn { flex: none; height: 40px; padding: 0 14px; }

  .hero { padding: 22px 0 40px; }
  .acts { gap: 8px; margin-top: 22px; }
  .hero .btn { height: 44px; padding: 0 13px; font-size: 15px; }
  .hero .wrap, .head, .sec, .consult, .about, .facts .wrap, .split, .leads { display: block; }
  .hero .wrap { display: flex; flex-direction: column; }
  .hero .wrap > div { order: 2; }
  .portrait { display: flex; align-items: flex-end; gap: 16px; margin: 0 0 26px 22px; }
  .portrait::before { left: -22px; height: 130px; width: 10px; background: linear-gradient(var(--orange), var(--orange)) 0 128px / 10px 2px no-repeat, repeating-linear-gradient(180deg, currentColor 0 2px, transparent 2px 9.84px) 5px 0 / 5px 100% no-repeat; }
  .portrait img { width: 104px; height: 130px; }
  .portrait figcaption { margin: 0; }
  h1 { font-size: 38px; line-height: 42px; }
  .lead, .intro, .summary { font-size: 18px; line-height: 28px; }

  .nums { padding: 36px 0 40px; }
  .nums .wrap { grid-template-columns: 1fr 1fr; gap: 32px 20px; }
  .n { font-size: 44px; line-height: 44px; }
  .cap { font-size: 15px; line-height: 22px; }
  .marks { grid-template-columns: repeat(8, 14px); gap: 5px; margin: 12px 0 2px; }
  .marks i { width: 14px; height: 14px; border-radius: 4px; }
  .marks i:nth-child(n+9) { border-radius: 50%; }
  .yrs20 { width: 142px; height: 16px; margin: 12px 0 2px; background: linear-gradient(var(--orange), var(--orange)) 140px 0 / 2px 16px no-repeat, repeating-linear-gradient(90deg, currentColor 0 2px, transparent 2px 7.3px) 0 6px / 135px 10px no-repeat; }

  .blk { padding-top: 48px; }
  .head { margin-bottom: 14px; }
  h2 { font-size: 32px; line-height: 36px; margin-bottom: 10px; }
  h2::before { margin-bottom: 14px; }
  .lead-item { padding: 12px 0 14px; }
  .lead-item p { margin-top: 4px; }
  .lead-item .more { margin-top: 6px; }
  .lead-item h3 { font-size: 22px; line-height: 28px; }

  /* Selected work becomes rows with a thumbnail */
  .works { display: block; }
  .work { display: grid; grid-template-columns: 104px minmax(0, 1fr); column-gap: 16px; padding: 18px 0; border-top: 1px solid var(--line); }
  .work .shot { grid-row: 1 / span 3; align-self: start; aspect-ratio: 1; }
  .work h3 { margin-top: 0; font-size: 23px; line-height: 28px; }
  .desc { font-size: 16px; line-height: 24px; }
  .credit { margin-top: 0; padding-top: 14px; border-top: 1px solid var(--line); }
  .sub { margin: 32px 0 10px; }
  .earlier li { grid-template-columns: 92px minmax(0, 1fr); column-gap: 0; padding: 14px 0 16px; }
  .earlier p { grid-column: 1 / -1; margin-top: 4px; }
  .consult { padding-top: 22px; }
  .consult h3 { margin-bottom: 8px; }

  .quote { margin-top: 48px; padding: 40px 0 36px; }
  blockquote { font-size: 25px; line-height: 35px; }
  .roles li { font-size: 22px; line-height: 29px; padding: 12px 0 14px; }
  .details { padding-top: 22px; }
  .details li { margin-bottom: 10px; }
  .doors { margin-top: 18px; }
  .doors li { padding: 10px 0 12px; }
  .contact { padding: 52px 0 46px; }
  .contact h2 { font-size: 42px; line-height: 46px; }
  .foot p:last-child { margin-left: 0; }

  .case-head { padding: 20px 0 40px; }
  .facts { padding: 40px 0; }
  .facts dl > div { display: block; }
  .media { padding-top: 40px; }
  .shots img { width: 168px; }
  .sec { padding-top: 52px; }
  .deck { font-size: 21px; line-height: 30px; }
  .out { margin-left: 0; padding-top: 36px; }
  .pn { grid-template-columns: 1fr 1fr; margin-top: 56px; }
  .pn .mid { grid-column: 1 / -1; grid-row: 2; }
  .pn a { font-size: 21px; line-height: 26px; }
  .notfound { padding: 56px 0 72px; }
}

/* ---------- 13. Phones: the header keeps the name, the CV and the main action ---------- */
/* 640px and under: the three section links are left out; the sections are one scroll away and the name links home. */
@media (max-width: 640px) {
  .nav .wide { display: none; }
}
/* 400px and under: a little tighter, so the name keeps clear of the CV link */
@media (max-width: 400px) {
  .brand { font-size: 18px; }
  .brand::after { margin-right: 10px; }
  .nav { gap: 20px; }
  .nav .btn { padding: 0 12px; }
}
/* Under 375px (a 360px screen): tighter again */
@media (max-width: 374px) {
  .brand { font-size: 17px; }
  .brand::after { margin-right: 9px; }
  .nav { gap: 18px; }
  .nav .btn { padding: 0 10px; }
}
/* 350px and under (a 320px screen): the two-shape mark makes room for the name */
@media (max-width: 350px) {
  .brand::before, .brand::after { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
