/* Noircraft Lab 2026 - layouts of the stage-2 pages: case, archive, services, about, legal, 404, search, for agencies.
   Mockup v41, frames f05-f14, f17-f18, f23-f30. Mobile first; control widths 1360 and 390; breakpoints 768 and 1024.
   Components (button, card, glass, h2...) live in components.css, the page grid, header and footer in theme.css.
   Every colour, radius and glow is a token (tokens.css) or a value of the frame noted next to it. */

/* ---- Shared pieces ---- */
.nc-h1 { margin: 0; font-family: var(--font-serif); font-weight: 400; font-size: 44px; line-height: 1.05; text-shadow: 0 0 30px rgba(232,201,74,0.30); }
.nc-lead { margin: 16px 0 0; font-size: 17px; line-height: 1.55; color: var(--muted); }
.nc-label { margin: 0; font-size: 12px; font-weight: 600; letter-spacing: .12em; color: var(--muted); }
.nc-root a.nc-back { color: var(--muted); }
.nc-root a.nc-back:hover { color: var(--ink); }
@media (max-width: 767px) { .nc-link.nc-back { font-size: 15px; } } /* f06: 15 px, the height of the touch target stays 44 px */
.nc-btnrow { display: flex; flex-direction: column; gap: 12px; }
@media (min-width: 768px) {
  .nc-btnrow { flex-direction: row; flex-wrap: wrap; gap: 14px; }
}
@media (min-width: 1024px) {
  .nc-h1 { font-size: 72px; line-height: 1; letter-spacing: -.01em; text-shadow: var(--text-glow-hero); }
  .nc-lead { margin-top: 22px; font-size: 19px; }
}

/* Gold frame with a copy behind it: "Need a similar website?" (f05-f12, f14) */
.nc-cta { position: relative; margin-right: 10px; }
.nc-cta__copy { position: absolute; inset: 0; transform: translate(10px, 10px); border-radius: var(--radius-16); background: var(--surface-stack-pk); border: 1px solid var(--gold-line-stack-pk); }
.nc-cta__card { position: relative; padding: 28px 20px; border-radius: var(--radius-16); background: linear-gradient(180deg, var(--surface-raised) 0%, var(--surface) 100%); border: 1px solid var(--gold-line-strong); box-shadow: 0 0 0 1px rgba(232,201,74,0.10), 0 0 30px rgba(232,201,74,0.22); }
.nc-cta__title { margin: 0; font-family: var(--font-serif); font-weight: 400; font-size: 28px; line-height: 1.15; text-shadow: 0 0 24px rgba(232,201,74,0.22); }
.nc-cta__text { margin: 12px 0 0; font-size: 16px; line-height: 1.5; color: var(--muted); }
.nc-cta__btns { margin-top: 22px; display: flex; flex-direction: column; gap: 12px; }
.nc-cta-sec.nc-sec { padding-top: 24px; }
@media (min-width: 1024px) {
  .nc-cta { max-width: 880px; margin: 0 auto; }
  .nc-cta__copy { transform: translate(12px, 12px); }
  .nc-cta__card { padding: 48px 56px; box-shadow: var(--glow-featured); text-align: center; }
  .nc-cta__title { font-size: 40px; line-height: 1.1; text-shadow: var(--text-glow-h2); }
  .nc-cta__text { margin: 16px auto 0; font-size: 18px; max-width: 560px; }
  .nc-cta__btns { margin-top: 30px; flex-direction: row; justify-content: center; gap: 14px; }
  .nc-cta-sec.nc-sec { padding-top: 72px; }
}

/* Text of a record written in the block editor (old case texts, legal pages) */
.nc-prose { font-size: 16px; line-height: 1.6; max-width: 880px; }
.nc-prose > * { margin: 0; }
.nc-prose > * + * { margin-top: 16px; }
.nc-prose h2 { margin-top: 44px; padding-left: 16px; border-left: 3px solid var(--gold); font-family: var(--font-serif); font-weight: 400; font-size: 26px; line-height: 1.2; text-shadow: 0 0 24px rgba(232,201,74,0.22); }
.nc-prose > h2:first-child { margin-top: 0; }
.nc-prose h3 { margin-top: 28px; font-family: var(--font-serif); font-weight: 400; font-size: 21px; line-height: 1.3; }
.nc-prose a { color: var(--ink); text-decoration: underline; text-underline-offset: 4px; }
.nc-prose a:hover { color: var(--gold); }
.nc-prose a:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
.nc-prose ul, .nc-prose ol { padding-left: 22px; display: flex; flex-direction: column; gap: 8px; }
.nc-prose strong { font-weight: 600; }
.nc-prose figure { margin-left: 0; margin-right: 0; }
.nc-prose img { display: block; max-width: 100%; height: auto; border-radius: var(--radius-12); border: 1px solid var(--line); }
.nc-prose figcaption { margin-top: 8px; font-size: 14px; color: var(--muted); }
.nc-prose .wp-block-table { overflow-x: auto; }
.nc-prose table { width: 100%; border-collapse: collapse; font-size: 15px; line-height: 1.5; }
.nc-prose table { border: 0; }
.nc-prose td, .nc-prose th { padding: 10px 12px 10px 0; vertical-align: top; text-align: left; border: 0; border-bottom: 1px solid var(--line-soft); }
.nc-prose td:first-child { width: 38%; color: var(--muted); }
.nc-prose td:first-child strong { font-weight: 400; }
.nc-prose .wp-block-buttons { margin-top: 28px; display: flex; flex-direction: column; gap: 12px; }
.nc-prose .wp-block-buttons a { text-decoration: none; }
@media (min-width: 1024px) {
  .nc-prose { font-size: 17px; }
  .nc-prose > * + * { margin-top: 18px; }
  .nc-prose h2 { margin-top: 56px; padding-left: 20px; font-size: 32px; text-shadow: var(--text-glow-h2); }
  .nc-prose h3 { font-size: 24px; }
  .nc-prose table { font-size: 16px; }
  .nc-prose .wp-block-buttons { flex-direction: row; flex-wrap: wrap; gap: 14px; }
}

/* ---- Case page (f05-f12) ---- */
.nc-case-hero { padding: 28px var(--space-20) 40px; }
.nc-case-hero__in { max-width: 1360px; margin: 0 auto; }
.nc-case-hero .nc-label { margin-top: 16px; }
.nc-case-hero .nc-h1 { margin-top: 10px; }
.nc-case-hero__lead { margin: 16px 0 0; font-size: 17px; line-height: 1.55; }
.nc-case-hero__cta { margin-top: 24px; }
.nc-case-hero__shots { position: relative; margin-top: 36px; aspect-ratio: 350 / 300; }
.cs-shot { position: absolute; left: 0; top: 0; width: 100%; height: 73%; border-radius: var(--radius-16); overflow: hidden; background: var(--cover-empty); border: 1px solid var(--gold-line); box-shadow: var(--glow-card); }
.cs-phone { position: absolute; left: 67.43%; top: 36.67%; width: 29.71%; height: 62.67%; border-radius: var(--radius-16); overflow: hidden; background: var(--cover-empty); border: 1px solid var(--line-glass); box-shadow: var(--shadow-panel), 0 0 0 6px var(--bg); }
.cs-shot img, .cs-phone img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: top center; }
.cs-shot img { object-position: top left; }
/* fallback mode: the title of an old record is a whole phrase, not a project name */
.nc-case-hero.is-fallback .nc-h1 { font-size: 32px; line-height: 1.12; }
.nc-case-hero__shots.is-single { aspect-ratio: 350 / 219; }
.nc-case-hero__shots.is-single .cs-shot { height: 100%; }
@media (min-width: 1024px) {
  .nc-case-hero { padding: 56px var(--space-80) 72px; }
  .nc-case-hero__grid { position: relative; margin-top: 28px; min-height: 470px; }
  .nc-case-hero__col { width: calc(50% - 100px); max-width: 500px; padding-top: 20px; }
  .nc-case-hero .nc-label { margin-top: 0; }
  .nc-case-hero .nc-h1 { margin-top: 14px; }
  .nc-case-hero__lead { margin-top: 22px; font-size: 19px; max-width: 470px; }
  .nc-case-hero__cta { margin-top: 32px; }
  .nc-case-hero__shots { position: absolute; right: 0; top: 0; margin-top: 0; width: 50%; max-width: 600px; aspect-ratio: 600 / 462; }
  .cs-shot { height: 81.17%; }
  .cs-phone { left: 73.33%; top: 41.13%; width: 25%; height: 58.87%; border-radius: 22px; }
  .nc-case-hero__shots.is-single { aspect-ratio: 600 / 375; }
  .nc-case-hero.is-fallback .nc-h1 { font-size: 46px; line-height: 1.1; letter-spacing: 0; }
}

.nc-case-facts { padding: 0 var(--space-20); }
.nc-case-facts__in { max-width: 1360px; margin: 0 auto; }
.nc-case-facts .glass { padding: 0; font-size: inherit; line-height: inherit; }
.nc-facts { margin: 0; padding: 0; }
.nc-facts > div { padding: 16px 20px; }
.nc-facts > div + div { border-top: 1px solid rgba(232,201,74,0.30); }
.nc-facts dt { margin: 0; font-size: 12px; font-weight: 600; letter-spacing: .12em; line-height: normal; color: var(--muted); }
.nc-facts dd { margin: 6px 0 0; font-family: var(--font-serif); font-size: 19px; line-height: 1.3; }
@media (min-width: 1024px) {
  .nc-case-facts { padding: 0 var(--space-80); }
  .nc-facts { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); padding: 30px 0; }
  .nc-facts > div { padding: 0 32px; }
  .nc-facts > div + div { border-top: 0; border-left: 1px solid var(--gold-line-band); }
  .nc-facts dd { margin-top: 10px; font-size: 22px; }
}

.nc-case-ts__task { margin: 24px 0 0; font-size: 17px; line-height: 1.6; }
.nc-case-ts__col + .nc-case-ts__col { margin-top: 56px; }
.cs-list { margin: 24px 0 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 14px; font-size: 16px; line-height: 1.5; }
.cs-list li { position: relative; padding-left: 26px; }
.cs-list li::before { content: ""; position: absolute; left: 0; top: 13px; width: 12px; height: 1px; background: var(--gold); box-shadow: var(--glow-bullet); }
.nc-case-demo { margin-top: 36px; padding-top: 24px; border-top: 1px solid var(--line-soft); }
.nc-case-demo__text { margin: 12px 0 0; font-size: 15px; line-height: 1.6; color: var(--muted); }
@media (min-width: 1024px) {
  .nc-case-ts__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: 80px; }
  .nc-case-ts__col + .nc-case-ts__col { margin-top: 0; }
  .nc-case-ts__task { margin-top: 32px; font-size: 19px; max-width: 500px; }
  .cs-list { margin-top: 32px; font-size: 17px; }
  .nc-case-demo { margin-top: 56px; padding-top: 28px; }
  .nc-case-demo__text { font-size: 16px; max-width: 880px; }
}

.nc-case-nb.nc-sec { padding-top: 24px; padding-bottom: 56px; }
.nc-case-nb__grid { display: flex; flex-direction: column; gap: 14px; }
.cs-nb { display: flex; align-items: center; gap: 16px; padding: 12px; border-radius: var(--radius-16); border: 1px solid var(--line); background: var(--surface); text-decoration: none; transition: border-color .2s ease, box-shadow .2s ease; }
.cs-nb:hover { border-color: var(--gold-line); box-shadow: var(--glow-card); }
.cs-nb:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
.cs-nb__img { flex: none; width: 112px; height: 70px; border-radius: var(--radius-10); background: var(--cover-empty) center top / cover no-repeat; border: 1px solid var(--line-soft); }
.cs-nb__txt { display: block; min-width: 0; }
.cs-nb__label { display: block; font-size: 12px; font-weight: 600; letter-spacing: .12em; color: var(--muted); }
.cs-nb__name { display: block; margin-top: 6px; font-family: var(--font-serif); font-size: 21px; line-height: 1.15; }
@media (min-width: 1024px) {
  .nc-case-nb.nc-sec { padding-top: 56px; padding-bottom: 96px; }
  .nc-case-nb__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px; }
  .cs-nb { gap: 22px; padding: 14px; }
  .cs-nb__img { width: 200px; height: 125px; }
  .cs-nb__name { font-size: 26px; }
}
@media (prefers-reduced-motion: reduce) { .cs-nb { transition: none; } }

/* E-1 (main 14.10): fallback mode (VATRA, Findugo, Whitepace). The first screen is as high as its content (no 470 px stage for a
   desktop screenshot plus a phone), and the text of the record starts at the same distance as the facts row of cases M, 6, 7:
   80 px on 1360 (hero padding 72 + 8), 40 px on 390 (hero padding 40 + 0). */
.nc-case-ts--prose.nc-sec { padding-top: 0; }
@media (min-width: 1024px) {
  .nc-case-hero.is-fallback .nc-case-hero__grid { min-height: 0; display: grid; grid-template-columns: minmax(0, 500px) minmax(0, 600px); justify-content: space-between; align-items: start; column-gap: 40px; }
  .nc-case-hero.is-fallback .nc-case-hero__col { width: auto; max-width: none; }
  .nc-case-hero.is-fallback .nc-case-hero__shots { position: relative; right: auto; width: 100%; }
  .nc-case-ts--prose.nc-sec { padding-top: 8px; }
}

/* ---- Archive /cases/ (f13, f14) ---- */
.nc-archive { padding: 40px var(--space-20) 56px; }
.nc-archive__in { max-width: 1360px; margin: 0 auto; }
.nc-archive__grid { margin-top: 32px; display: grid; grid-template-columns: 1fr; gap: 24px; }
.nc-archive__grid .nc-cta { margin-top: 32px; }
@media (min-width: 768px) {
  .nc-archive__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-32); }
  /* the eighth cell: the same frame without the copy, as a tile of the grid */
  .nc-archive__grid .nc-cta { margin: 0; max-width: none; min-width: 0; display: flex; }
  .nc-archive__grid .nc-cta__copy { display: none; }
  .nc-archive__grid .nc-cta__card { flex: 1; min-width: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 40px 48px; border-radius: var(--radius-18); box-shadow: var(--glow-featured); text-align: center; }
  .nc-archive__grid .nc-cta__title { font-size: 40px; line-height: 1.1; text-shadow: var(--text-glow-h2); }
  .nc-archive__grid .nc-cta__text { margin: 16px 0 0; font-size: 18px; max-width: 440px; }
  /* F-1 (decision of Roman 14.10, variant A; differs from frame f13, where the buttons stand in a row): btn.01 above btn.02,
     both full-width buttons (.nc-full) as wide as the content of the tile, the gap of the stacked buttons of the strips (12 px) */
  .nc-archive__grid .nc-cta__btns { align-self: stretch; margin-top: 30px; flex-direction: column; gap: 12px; }
}
@media (min-width: 1024px) {
  .nc-archive { padding: 72px var(--space-80) 96px; }
  .nc-archive .nc-lead { max-width: 760px; }
  .nc-archive__grid { margin-top: 56px; }
}

/* ---- Services (f17, f18) ---- */
.nc-svc__in { max-width: 1360px; margin: 0 auto; }
.nc-svc-head { padding: 40px var(--space-20) 0; }
.nc-svc-block { padding: 24px var(--space-20) 0; scroll-margin-top: 72px; }
.nc-svc-head + .nc-svc-block { padding-top: 32px; }
.sv { border-radius: var(--radius-16); background: linear-gradient(180deg, var(--surface-raised) 0%, var(--surface) 100%); border: 1px solid var(--gold-line); box-shadow: 0 0 0 1px rgba(232,201,74,0.08), 0 0 28px rgba(232,201,74,0.18); }
.sv-l { padding: 24px 20px; }
.sv-r { padding: 22px 20px 24px; border-top: 1px solid var(--line-soft); }
.sv-h { margin: 18px 0 0; font-family: var(--font-serif); font-weight: 400; font-size: 30px; line-height: 1.15; text-shadow: 0 0 24px rgba(232,201,74,0.22); }
.sv-p { margin: 14px 0 0; font-size: 17px; line-height: 1.55; }
.sv-p2 { margin: 10px 0 0; font-size: 16px; line-height: 1.55; color: var(--muted); }
.sv-price { margin-top: 22px; }
.sv-price__v { margin: 6px 0 0; font-family: var(--font-serif); font-size: 19px; line-height: 1.3; }
.sv .cs-list { margin-top: 16px; }
.sv-note { margin: 20px 0 0; padding-top: 18px; border-top: 1px solid var(--line-soft); font-size: 15px; line-height: 1.6; color: var(--muted); }
/* W-32: block #support - two plan cards in sv-r in the look of the home cards «Після запуску» (theme.css .nc-after .glass),
   fitted to the column: one under the other up to 1023, side by side from 1024 (with the .sv grid); the lists keep the gold dashes
   of the neighbours (.cs-list, D-2 main 17.10). Under them the h3 svc.37 and two paragraphs. */
.sv-plans { margin-top: 16px; display: grid; gap: 16px; }
.sv-plan { padding: 24px; border-top: 1px solid var(--gold-line); font-size: 16px; line-height: 1.5; }
.sv-plan h3 { margin: 0; font-family: var(--font-serif); font-weight: 400; font-size: 23px; line-height: normal; }
.sv-plan .price { margin: 12px 0 0; font-family: var(--font-serif); font-size: 32px; line-height: 1; }
.sv-plan .cs-list { margin-top: 16px; gap: 10px; font-size: 16px; }
.sv-h3 { margin: 28px 0 0; font-family: var(--font-serif); font-weight: 400; font-size: 23px; line-height: 1.2; }
.sv-txt { margin: 12px 0 0; font-size: 16px; line-height: 1.55; }
.nc-svc-more { padding: 24px var(--space-20) 56px; }
.nc-svc-more .glass { padding: 18px 20px; font-size: 15px; line-height: 1.6; }
.nc-strip { margin-top: 24px; padding: 22px 20px; border-radius: var(--radius-16); background: var(--surface); border: 1px solid var(--line-faint); }
.nc-strip p { margin: 0; font-size: 17px; line-height: 1.5; }
.nc-strip__btns { margin-top: 18px; display: flex; flex-direction: column; gap: 12px; }
@media (min-width: 1024px) {
  .nc-svc-head { padding: 72px var(--space-80) 0; }
  .nc-svc-head .nc-lead { max-width: 760px; }
  .nc-svc-block { padding: 32px var(--space-80) 0; scroll-margin-top: 80px; }
  .nc-svc-head + .nc-svc-block { padding-top: 56px; }
  .sv { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); box-shadow: var(--glow-card); }
  .sv-l { display: flex; flex-direction: column; padding: 44px 48px; }
  .sv-r { padding: 44px 48px; border-top: 0; border-left: 1px solid var(--line-soft); }
  .sv-h { margin-top: 24px; font-size: 40px; line-height: 1.1; text-shadow: var(--text-glow-h2); }
  .sv-p { margin-top: 18px; font-size: 19px; }
  .sv-p2 { margin-top: 12px; font-size: 17px; }
  .sv-price { margin-top: auto; padding-top: 32px; }
  .sv-price__v { margin-top: 10px; font-size: 22px; }
  .sv .cs-list { margin-top: 20px; }
  .sv-note { margin-top: 24px; padding-top: 20px; }
  .sv-plans { margin-top: 20px; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
  .sv-plan { padding: 28px 24px; }
  .sv-plan h3 { font-size: 24px; }
  .sv-plan .price { margin-top: 14px; font-size: 34px; }
  .sv-plan .cs-list { margin-top: 20px; gap: 12px; font-size: 16px; }
  .sv-h3 { margin-top: 36px; font-size: 26px; }
  .sv-txt { margin-top: 14px; font-size: 17px; }
  .nc-svc-more { padding: 32px var(--space-80) 96px; }
  .nc-svc-more .glass { padding: 20px 28px; font-size: 16px; line-height: 1.5; }
  .nc-strip { margin-top: 32px; padding: 24px 32px 24px 40px; display: flex; align-items: center; justify-content: space-between; gap: 32px; }
  .nc-strip p { font-size: 18px; line-height: 1.45; }
  .nc-strip__btns { margin-top: 0; flex: none; flex-direction: row; gap: 14px; }
}

/* ---- About me (f23, f24) ---- */
.nc-me__in { max-width: 1360px; margin: 0 auto; }
.nc-me-hero { position: relative; padding: 0 0 8px; }
.nc-me-hero__bg { position: relative; height: 470px; overflow: hidden; background: var(--bg); }
.nc-me-hero__bg img { width: 100%; height: 100%; object-fit: cover; object-position: center top; }
.nc-me-hero__scrim { display: none; }
.nc-me-hero__in { position: relative; margin-top: -28px; padding: 0 var(--space-20); }
.nc-me-hero .nc-h1 { position: absolute; left: var(--space-20); top: -402px; } /* over the photo: 40 px from its top (470 - 28 - 40) */
.nc-me-hero__greeting { margin: 0; font-family: var(--font-serif); font-size: 26px; line-height: 1.2; color: var(--gold); text-shadow: 0 0 20px rgba(232,201,74,0.30); }
.nc-me-hero__text { margin: 14px 0 0; font-size: 17px; line-height: 1.6; }
.nc-me-how { padding: 48px var(--space-20) 0; }
.nc-me-how__facts { margin-top: 24px; display: flex; flex-direction: column; gap: 10px; }
.nc-me-how .fact { padding: 16px 18px; border-radius: var(--radius-12); background: var(--surface); border: 1px solid var(--line); font-size: 16px; line-height: 1.5; }
.nc-me-details { padding: 32px var(--space-20) 0; }
.blk { padding: 22px 20px 24px; border-radius: var(--radius-16); background: linear-gradient(180deg, var(--surface-raised) 0%, var(--surface) 100%); border: 1px solid var(--line-faint); }
.blk + .blk { margin-top: 16px; }
.blk h2 { margin: 0; font-family: var(--font-serif); font-weight: 400; font-size: 23px; line-height: 1.2; }
.blk p { margin: 12px 0 0; font-size: 16px; line-height: 1.6; }
.blk p.muted { color: var(--muted); font-size: 15px; }
.nc-me-start { padding: 32px var(--space-20) 56px; }
/* H-74, 431-767: the photo keeps the proportions of about-390 (whole frame, chin included, in view); up to 430 it stays 470 high.
   The photo height varies here, so the title is placed from the top of the section (40 px) instead of from the text block. */
@media (min-width: 431px) and (max-width: 767px) {
  .nc-me-hero__bg { width: 100%; height: auto; aspect-ratio: 390 / 470; max-height: 700px; } /* width: 100% - see .nc-about__bg in theme.css */
  .nc-me-hero__in { position: static; }
  .nc-me-hero__greeting, .nc-me-hero__text { position: relative; } /* paint over the photo edge, as with the positioned __in */
  .nc-me-hero .nc-h1 { top: 40px; }
}
@media (min-width: 768px) { /* H-74: the desktop hero (about-1360, figure left, text right) from 768 */
  .nc-me-hero { min-height: 780px; padding: 0; }
  .nc-me-hero__bg { position: absolute; inset: 0; height: auto; }
  .nc-me-hero__bg img { object-position: left top; }
  .nc-me-hero__scrim { display: block; position: absolute; inset: 0; background: linear-gradient(270deg, rgba(13,13,13,0.95) 0%, rgba(13,13,13,0.86) 34%, rgba(13,13,13,0.30) 50%, rgba(13,13,13,0) 60%); }
  .nc-me-hero__in { max-width: 1360px; margin: 0 auto; padding: 150px var(--space-80) 72px; }
  .nc-me-hero__col { max-width: 560px; margin-left: auto; }
  .nc-me-hero .nc-h1 { position: static; }
  .nc-me-hero__greeting { margin-top: 40px; font-size: 30px; text-shadow: var(--text-glow-gold); }
  .nc-me-hero__text { margin-top: 18px; font-size: 19px; }
}
/* H-74, 768-1199: same geometry as .nc-about in theme.css (the 1360 frame at scale 1, shifted so that the head sits in the
   middle of the free zone left of the text). */
@media (min-width: 768px) and (max-width: 1199px) {
  .nc-me-hero {
    --about-pad: var(--space-40);  /* side field of the text */
    --about-col: 560px;            /* widest text column */
    --about-gap: 32px;             /* head box -> text */
    --about-free: 316px;           /* narrowest free zone left of the text: head 276 + 2 x 20 */
    --about-face-cx: 365px;        /* head centre in about-1360 px */
  }
  .nc-me-hero__bg { inset: 0 0 auto; height: 780px; }
  .nc-me-hero__bg img { position: absolute; top: 0; left: max(calc(var(--about-free) / 2 - var(--about-face-cx)), calc(50% - (var(--about-pad) + var(--about-col) + var(--about-gap)) / 2 - var(--about-face-cx))); width: 1360px; max-width: none; height: 780px; }
  .nc-me-hero__scrim { background: linear-gradient(270deg, rgba(13,13,13,0.95) 0%, rgba(13,13,13,0.86) calc(min(var(--about-pad) + var(--about-col), 100% - var(--about-free) - var(--about-gap)) - 96px), rgba(13,13,13,0.40) min(var(--about-pad) + var(--about-col), 100% - var(--about-free) - var(--about-gap)), rgba(13,13,13,0) min(var(--about-pad) + var(--about-col) + var(--about-gap), 100% - var(--about-free))); }
  .nc-me-hero__in { padding-left: var(--about-pad); padding-right: var(--about-pad); }
  .nc-me-hero__col { max-width: min(var(--about-col), calc(100% + var(--about-pad) - var(--about-free) - var(--about-gap))); }
}
@media (min-width: 1024px) {
  .nc-me-how { padding: 96px var(--space-80) 0; }
  .nc-me-how__facts { margin-top: 36px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
  .nc-me-how .fact { padding: 22px 24px; border-radius: var(--radius-14); font-size: 17px; }
  .nc-me-details { padding: 56px var(--space-80) 0; }
  .nc-me-details__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; align-items: stretch; }
  .blk { padding: 32px 32px 34px; }
  .blk + .blk { margin-top: 0; }
  .blk h2 { font-size: 26px; }
  .blk p { margin-top: 16px; font-size: 17px; }
  .blk p.muted { font-size: 16px; }
  .nc-me-start { padding: 56px var(--space-80) 96px; }
  .nc-me-start .nc-strip { margin-top: 0; padding: 28px 32px 28px 40px; }
}
.nc-me-start .nc-strip { margin-top: 0; }

/* ---- Legal pages (f25, f26). Text colour of the paragraphs is the frame's #E2DED7 (a softer ink for long reading). ---- */
.nc-legal__in { max-width: 1360px; margin: 0 auto; }
.nc-legal-head { padding: 40px var(--space-20) 0; }
.nc-legal-head .nc-h1 { font-size: 38px; line-height: 1.1; overflow-wrap: break-word; }
.nc-legal__updated { margin: 14px 0 0; font-size: 14px; color: var(--muted); }
.nc-legal-body { padding: 36px var(--space-20) 56px; }
.toc { display: none; }
.lg { max-width: 760px; }
.lg > *:first-child { margin-top: 0; }
.lg h2 { margin: 40px 0 0; font-family: var(--font-serif); font-weight: 400; font-size: 23px; line-height: 1.25; scroll-margin-top: 84px; }
.lg h2 .lg__n { display: block; margin-bottom: 6px; font-family: var(--font-sans); font-size: 12px; font-weight: 600; letter-spacing: .12em; color: var(--gold); }
.lg p { margin: 12px 0 0; font-size: 17px; line-height: 1.65; color: #e2ded7; }
.lg ul, .lg ol { margin: 12px 0 0; padding-left: 22px; font-size: 17px; line-height: 1.65; color: #e2ded7; }
.lg strong { font-weight: 600; color: var(--ink); }
.lg a { color: var(--ink); text-decoration: underline; text-underline-offset: 4px; }
.lg a:hover { color: var(--gold); }
.lg a:focus-visible, .toc a:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
/* H-3 (main 14.10): the fallback templates (page, post, archives of posts) use the legal layout; the list of posts */
.lg .nc-fb-list { margin: 0; padding: 0; list-style: none; }
.nc-fb-list li + li { margin-top: 32px; padding-top: 32px; border-top: 1px solid var(--line-soft); }
.lg .nc-fb-list__t { margin: 0; font-size: 26px; }
.lg .nc-fb-list__t a { text-decoration: none; }
.lg .nc-fb-list__t a:hover { color: var(--gold); }
.lg .nc-fb-list__d { margin-top: 6px; font-size: 14px; color: var(--muted); }
.lg .nav-links { margin-top: 40px; display: flex; flex-wrap: wrap; gap: 12px 20px; font-size: 16px; }
.lg .page-numbers { display: inline-flex; align-items: center; min-height: 44px; min-width: 44px; }
.lg .page-numbers.current { color: var(--gold); }
@media (max-width: 767px) { .lg a, .nc-prose p a, .nc-prose li a, .nc-prose td a, .consent a, .nc-ag-send__mail a { display: inline-block; padding: 12px 0; margin: -12px 0; min-width: 44px; } } /* touch target of an inline link: 44 px high, the line height does not change */
@media (min-width: 1024px) {
  .nc-legal-head { padding: 72px var(--space-80) 0; }
  .nc-legal-head .nc-h1 { font-size: 72px; line-height: 1; }
  .nc-legal__updated { margin-top: 20px; font-size: 15px; }
  .nc-legal-body { padding: 56px var(--space-80) 96px; }
  .nc-legal-body__grid { display: grid; grid-template-columns: 280px minmax(0, 1fr); gap: 72px; align-items: start; }
  .nc-legal-body.is-plain .nc-legal-body__grid { display: block; }
  .toc { position: sticky; top: 96px; display: flex; flex-direction: column; gap: 2px; padding: 16px 0; border-left: 1px solid var(--line-faint); }
  .toc a { display: flex; gap: 12px; align-items: baseline; padding: 8px 0 8px 20px; font-size: 14px; line-height: 1.4; color: var(--muted); text-decoration: none; transition: color .18s ease; }
  .nc-root .toc a { color: var(--muted); }
  .nc-root .toc a:hover { color: var(--ink); }
  .toc a span { font-size: 12px; font-weight: 600; letter-spacing: .08em; color: var(--gold); }
  .lg h2 { margin-top: 56px; display: flex; gap: 14px; align-items: baseline; font-size: 28px; scroll-margin-top: 96px; }
  .lg h2 .lg__n { display: inline; margin-bottom: 0; font-size: 13px; }
  .lg p { margin-top: 16px; font-size: 18px; line-height: 1.7; }
  .lg ul, .lg ol { margin-top: 16px; font-size: 18px; line-height: 1.7; }
}

/* ---- 404 (f27, f28) ---- */
.nc-404 { padding: 56px var(--space-20) 72px; }
.nc-404__in { max-width: 1360px; margin: 0 auto; display: flex; flex-direction: column; }
.nc-404__num { order: -1; margin: 0; font-family: var(--font-serif); font-size: 120px; line-height: 1; color: transparent; -webkit-text-stroke: 1.2px rgba(232,201,74,0.65); text-shadow: 0 0 40px rgba(232,201,74,0.18); }
.nc-404__label { margin: 24px 0 0; font-size: 12px; font-weight: 600; letter-spacing: .12em; color: var(--muted); }
.nc-404__title { margin: 12px 0 0; font-family: var(--font-serif); font-weight: 400; font-size: 38px; line-height: 1.1; text-shadow: 0 0 30px rgba(232,201,74,0.30); }
.nc-404__text { margin: 16px 0 0; font-size: 17px; line-height: 1.6; color: var(--muted); }
.nc-404__btns { margin-top: 28px; }
@media (min-width: 1024px) {
  .nc-404 { padding: 120px var(--space-80) 140px; }
  .nc-404__in { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 40px; align-items: center; }
  .nc-404__num { order: 0; text-align: right; font-size: 280px; -webkit-text-stroke: 1.5px rgba(232,201,74,0.65); text-shadow: 0 0 60px rgba(232,201,74,0.18); }
  .nc-404__label { margin-top: 0; font-size: 13px; }
  .nc-404__title { margin-top: 18px; font-size: 64px; line-height: 1.05; text-shadow: var(--text-glow-hero); }
  .nc-404__text { margin-top: 22px; font-size: 19px; max-width: 520px; }
  .nc-404__btns { margin-top: 36px; }
}

/* ---- Search results (no frame: old template on the new components) ---- */
.nc-search { padding: 40px var(--space-20) 56px; }
.nc-search__in { max-width: 1360px; margin: 0 auto; }
.nc-search__title { margin-top: 10px; font-size: 32px; line-height: 1.12; overflow-wrap: anywhere; }
.nc-search__q { color: var(--gold); }
.nc-search__group { margin-top: 40px; }
.nc-search__list { margin: 28px 0 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 4px; }
.nc-search__btns { margin-top: 28px; }
.nc-search__pages { margin-top: 36px; font-size: 15px; }
.nc-search__pages .nav-links { display: flex; flex-wrap: wrap; gap: 8px 18px; align-items: center; }
.nc-search__pages a, .nc-search__pages .current { display: inline-flex; align-items: center; min-height: 44px; min-width: 24px; color: var(--ink); text-underline-offset: 5px; }
.nc-search__pages .current { color: var(--muted); }
.nc-search__pages .screen-reader-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
@media (min-width: 1024px) {
  .nc-search { padding: 72px var(--space-80) 96px; }
  .nc-search__title { margin-top: 14px; font-size: 46px; line-height: 1.1; letter-spacing: 0; }
  .nc-search__group { margin-top: 56px; }
  .nc-search__list { margin-top: 40px; gap: 14px; }
  .nc-search__btns { margin-top: 36px; }
}

/* ---- For agencies (f29, f30). #c9c5be is the frame's softer text colour of this page. ---- */
.nc-ag__in { max-width: 1360px; margin: 0 auto; }
.nc-ag-hero { padding: 44px var(--space-20) 0; }
.nc-ag-hero__title { margin: 0; font-family: var(--font-serif); font-weight: 400; font-size: 36px; line-height: 1.1; text-shadow: 0 0 30px rgba(232,201,74,0.30); }
.nc-ag-hero__tag { margin: 20px 0 0; font-family: var(--font-serif); font-size: 23px; line-height: 1.3; color: var(--gold); }
.nc-ag-hero__lead { margin: 16px 0 0; font-size: 17px; line-height: 1.6; color: #c9c5be; }
.nc-ag-hero__cta { margin-top: 24px; }
.nc-ag-hero__cta p { margin: 12px 0 0; font-size: 15px; color: var(--muted); }
.nc-ag-sec { padding: 56px var(--space-20) 0; scroll-margin-top: 64px; }
.nc-ag-get { margin-top: 24px; display: flex; flex-direction: column; gap: 12px; }
.get { padding: 20px 18px 22px; border-radius: var(--radius-16); background: linear-gradient(180deg, var(--surface-raised) 0%, var(--surface) 100%); border: 1px solid var(--line-faint); }
.get h3 { margin: 0; font-family: var(--font-serif); font-weight: 400; font-size: 20px; line-height: 1.25; }
.get p { margin: 12px 0 0; font-size: 16px; line-height: 1.6; color: #c9c5be; }
.nc-ag-scope { padding: 20px var(--space-20) 0; }
.nc-ag-scope .glass { padding: 18px 20px; font-size: 16px; line-height: 1.6; }
.nc-ag-how { margin: 20px 0 0; padding: 0; list-style: none; }
.astep { display: grid; grid-template-columns: minmax(0, 1fr); gap: 4px 20px; padding: 22px 0; border-top: 1px solid var(--line-soft); }
.astep__n { font-size: 13px; font-weight: 600; letter-spacing: .12em; color: var(--gold); }
.astep h3 { margin: 0; font-family: var(--font-serif); font-weight: 400; font-size: 22px; line-height: 1.3; }
.astep p { margin: 0; font-size: 16px; line-height: 1.6; color: #c9c5be; }
.nc-ag-how__note { margin: 16px 0 0; padding-top: 18px; border-top: 1px solid var(--line-soft); font-size: 15px; line-height: 1.6; color: var(--muted); }
.proof { margin-top: 24px; border-radius: var(--radius-18); border: 1px solid var(--gold-line); background: var(--surface); overflow: hidden; box-shadow: 0 0 0 1px rgba(232,201,74,0.08), 0 0 34px rgba(232,201,74,0.16); }
.proof-cov { height: 230px; background: var(--cover-empty); }
.proof-cov img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: top center; }
.proof-body { padding: 22px 20px 18px; }
.proof-name { margin: 10px 0 0; font-family: var(--font-serif); font-weight: 400; font-size: 26px; line-height: 1.2; }
.proof-text { margin: 12px 0 0; font-size: 15px; line-height: 1.6; color: #c9c5be; }
.mlist { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 10px; font-size: 15px; line-height: 1.5; }
.mlist li { position: relative; padding-left: 22px; }
.mlist li::before { content: ""; position: absolute; left: 0; top: 11px; width: 10px; height: 1px; background: var(--gold); box-shadow: var(--glow-bullet); }
.proof .mlist { margin-top: 18px; }
.proof-date { margin: 14px 0 0; font-size: 13px; color: var(--muted); }
.plinks { margin-top: 8px; display: flex; flex-wrap: wrap; gap: 6px 20px; font-size: 15px; }
/* f29 / f30: 15 px, 44 px high; the underline of the hop link stays next to the letters */
.plinks .nc-link, .plinks .nc-link.hop.is-split { display: inline-flex; align-items: center; min-height: 44px; font-size: 15px; }
.plinks .nc-link.hop.is-split { border-bottom: 0; padding-bottom: 0; }
.plinks .nc-link.hop .hop__w { border-bottom: 1px solid currentColor; padding-bottom: 4px; }
.nc-ag-own { margin-top: 14px; display: flex; align-items: center; justify-content: space-between; gap: 32px; }
.nc-ag-send { padding-bottom: 56px; }
.nc-ag-send__text { margin: 18px 0 0; font-size: 16px; line-height: 1.6; color: #c9c5be; }
.nc-ag-send__mail { margin: 8px 0 0; font-size: 15px; color: var(--muted); }
.nc-ag-send__mail a { text-underline-offset: 5px; }
.nc-ag-send__mail a:hover, .consent a:hover { color: var(--gold); }
.nc-ag-send__mail a:focus-visible, .consent a:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
.nc-ag-what { margin: 22px 0 26px; }
.nc-ag-what .mlist { margin-top: 14px; }
.nc-aform { display: grid; grid-template-columns: minmax(0, 1fr); gap: 18px; }
.fld { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.fld label, .fld .lbl { font-size: 14px; line-height: 1.45; color: var(--muted); }
.fld input, .fld textarea, .fld select { box-sizing: border-box; width: 100%; border-radius: var(--radius-12); border: 1px solid var(--line-glass); background: var(--bg); color: var(--ink); font: 16px/1.5 var(--font-sans); padding: 12px 14px; }
.fld input, .fld select { height: 48px; }
.fld select { appearance: none; -webkit-appearance: none; padding-right: 44px; background-image: linear-gradient(45deg, transparent 50%, var(--gold) 50%), linear-gradient(135deg, var(--gold) 50%, transparent 50%); background-position: calc(100% - 22px) 21px, calc(100% - 16px) 21px; background-size: 6px 6px, 6px 6px; background-repeat: no-repeat; }
.fld textarea { height: 110px; resize: vertical; }
.fld input:focus-visible, .fld textarea:focus-visible, .fld select:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; border-color: var(--gold-line); }
.fld input[type="date"] { color-scheme: dark; }
.fld input[type="date"]:focus, .fld input[type="date"]:focus-within { outline: 2px solid var(--ink); outline-offset: 2px; border-color: var(--gold-line); }
.fld input[type="date"]::-webkit-calendar-picker-indicator:focus-visible { outline: 2px solid var(--gold); outline-offset: 1px; border-radius: 4px; } /* the picker button inside the field is a tab stop of its own: the ring stays on the field */
.req { color: var(--gold); }
.inw { position: relative; display: block; }
.inw .corner { position: absolute; left: 10px; top: 6px; font-size: 16px; line-height: 1; color: var(--gold); pointer-events: none; }
.inw input:not(:placeholder-shown) ~ .corner, .inw textarea:not(:placeholder-shown) ~ .corner { display: none; }
.help { margin: -8px 0 0; font-size: 14px; line-height: 1.5; color: var(--muted); }
.fld .file { position: relative; display: inline-flex; align-items: center; align-self: flex-start; min-height: 44px; padding: 0 18px; border-radius: var(--radius-12); border: 1px dashed rgba(240,237,232,0.30); font-size: 14px; line-height: 1.45; color: var(--ink); cursor: pointer; }
.fld .file input { position: absolute; opacity: 0; width: 1px; height: 1px; padding: 0; border: 0; }
.fld .file:focus-within { outline: 2px solid var(--ink); outline-offset: 2px; }
.consent { display: flex; align-items: center; gap: 12px; min-height: 44px; font-size: 15px; color: #c9c5be; }
.consent input { appearance: none; -webkit-appearance: none; flex: none; width: 20px; height: 20px; margin: 0; border-radius: 5px; border: 1.5px solid rgba(240,237,232,0.40); background: transparent; }
.consent input:checked { background: var(--gold); border-color: var(--gold); }
.consent input:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.consent a { text-underline-offset: 4px; }
.nc-aform button.nc-btn { cursor: pointer; font-family: var(--font-sans); }
/* Stage 3a: messages of the forms (brief, For agencies), the error line, the honeypot, the chosen file */
/* Messages of the form (no frame: the glass panel of the design system) */
.nc-notice { margin: 0 0 20px; padding: 16px 20px; border-radius: var(--radius-12); background: var(--surface-raised); border: 1px solid var(--gold-line); font-size: 16px; line-height: 1.5; }
.nc-notice--err { border-color: var(--line-strong); }
.nc-notice:focus { outline: none; }
/* G-1 (main 15.10): the anchor the handler returns to, the messages and the fields stop under the sticky header (64 / 72 px) with air */
#nc-brief, #agency-brief, .nc-notice, .nc-form-err, .fld { scroll-margin-top: 80px; }
@media (min-width: 1024px) { #nc-brief, #agency-brief, .nc-notice, .nc-form-err, .fld { scroll-margin-top: 88px; } }
.nc-notice:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.nc-form-err { margin: 20px 0 0; padding: 12px 16px; border-radius: var(--radius-12); border: 1px solid var(--gold-line); font-size: 15px; line-height: 1.5; }
.nc-form-err[hidden] { display: none; }
.fld-err { margin: 0; font-size: 14px; line-height: 1.45; color: var(--gold); } /* the line of an invalid field (form.04-form.07) */
.fld-err[hidden] { display: none; }
.fld [aria-invalid="true"] { border-color: var(--gold); }
.nc-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.fld .file-name { font-size: 14px; color: var(--muted); overflow-wrap: anywhere; }
.fld .file-name:empty { display: none; }
.nc-aform button.nc-btn[disabled] { opacity: .55; cursor: not-allowed; pointer-events: none; }
@media (min-width: 768px) {
  .nc-aform { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 20px; }
  .nc-aform .is-wide { grid-column: 1 / -1; }
  .fld input, .fld textarea, .fld select { padding: 12px 16px; }
}
@media (min-width: 1024px) {
  .nc-ag-hero { padding: 96px var(--space-80) 0; }
  .nc-ag-hero__title { max-width: 1040px; font-size: 64px; line-height: 1.05; letter-spacing: -.01em; text-shadow: var(--text-glow-hero); }
  .nc-ag-hero__tag { margin-top: 28px; max-width: 1040px; font-size: 30px; line-height: 1.25; text-shadow: var(--text-glow-gold); }
  .nc-ag-hero__lead { margin-top: 22px; font-size: 19px; max-width: 820px; }
  .nc-ag-hero__cta { margin-top: 34px; display: flex; align-items: center; gap: 24px; }
  .nc-ag-hero__cta p { margin: 0; }
  .nc-ag-sec { padding: 96px var(--space-80) 0; scroll-margin-top: 72px; }
  .nc-ag-get { margin-top: 36px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
  .get { padding: 26px 26px 28px; }
  .get h3 { font-size: 22px; }
  .nc-ag-scope { padding: 28px var(--space-80) 0; }
  .nc-ag-scope .glass { padding: 22px 28px; font-size: 17px; line-height: 1.55; }
  .nc-ag-how { margin-top: 28px; }
  .astep { grid-template-columns: 64px minmax(0, 320px) minmax(0, 1fr); }
  .nc-ag-how__note { margin-top: 24px; padding-top: 22px; font-size: 16px; line-height: normal; }
  .proof { margin-top: 36px; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .proof-cov { height: auto; min-height: 520px; position: relative; }
  .proof-cov img { position: absolute; inset: 0; }
  .proof-body { padding: 40px 44px; }
  .proof-name { margin-top: 12px; font-size: 34px; line-height: 1.15; }
  .proof-text { margin-top: 14px; font-size: 16px; }
  .proof .mlist { margin-top: 22px; }
  .proof-date { margin-top: 16px; }
  .plinks { margin-top: 14px; }
  .nc-ag-own { margin-top: 20px; }
  .nc-ag-send { padding-bottom: 96px; }
  .nc-ag-send__grid { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: 64px; align-items: start; }
  .nc-ag-send__text { margin-top: 22px; font-size: 17px; }
  .nc-ag-send__mail { margin-top: 10px; }
  .nc-ag-what { margin: 28px 0 0; }
  .nc-ag-what .mlist { margin-top: 16px; }
}
