/* Nutri Space website. Palette and type follow DietXP-Fonts-and-Colours.md (Switzer + Manrope;
   navy, oat, white, yellow, citrus). No citrus text on light backgrounds, no white text on yellow or citrus. */

@font-face { font-family: 'Switzer'; src: url('../fonts/Switzer-Variable.woff2') format('woff2'); font-weight: 100 900; font-display: swap; }
@font-face { font-family: 'Manrope'; src: url('../fonts/Manrope-Variable.woff2') format('woff2'); font-weight: 200 800; font-display: swap; }

:root {
  --navy: #0B132B;
  --navy-2: #1C2541;
  --yellow: #F4D35E;
  --citrus: #FF691A;
  --oat: #FAF7F2;
  --oat-2: #F3EEE5;
  --white: #FFFFFF;
  --ink: #0B132B;
  --ink-2: #3A4256;
  --ink-3: #5A6274;
  --line: #E3DDD2;
  --line-2: #D4CCBE;
  --on-navy-2: #C9CFDC;
  --radius: 18px;
  --radius-lg: 26px;
  --wrap: 1240px;
  --gutter: clamp(16px, 4vw, 40px);
  --head: 'Switzer', 'Manrope', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --body: 'Manrope', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --shadow: 0 1px 2px rgba(11, 19, 43, .06), 0 12px 32px -18px rgba(11, 19, 43, .28);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 88px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--oat); color: var(--ink); font: 400 1.0625rem/1.65 var(--body); overflow-x: clip; }
img, svg { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-underline-offset: .2em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
p { margin: 0 0 1em; }
h1, h2, h3, h4 { font-family: var(--head); color: var(--navy); margin: 0 0 .5em; letter-spacing: -.015em; text-wrap: balance; }
h1 { font-weight: 700; font-size: clamp(2.3rem, 1.3rem + 3.6vw, 4.1rem); line-height: 1.04; letter-spacing: -.025em; }
h2 { font-weight: 600; font-size: clamp(1.75rem, 1.2rem + 1.9vw, 2.6rem); line-height: 1.1; }
h3 { font-weight: 600; font-size: 1.3rem; line-height: 1.25; }
h4 { font-weight: 600; font-size: 1.05rem; line-height: 1.3; }
ul, ol { padding-left: 1.2em; margin: 0 0 1em; }
li { margin-bottom: .35em; }
strong { font-weight: 700; }
small { font-size: .875rem; }
:focus-visible { outline: 3px solid var(--navy); outline-offset: 3px; border-radius: 4px; }
.on-navy :focus-visible, .site-footer :focus-visible { outline-color: var(--yellow); }
::selection { background: var(--yellow); color: var(--navy); }

.wrap { width: 100%; max-width: calc(var(--wrap) + 2 * var(--gutter)); margin: 0 auto; padding: 0 var(--gutter); }
.narrow { max-width: 760px; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 16px; top: -60px; z-index: 100; background: var(--navy); color: var(--white); padding: 10px 16px; border-radius: 10px; font-weight: 600; }
.skip:focus { top: 12px; }

/* ---------- header ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(250, 247, 242, .94); backdrop-filter: saturate(140%) blur(10px); border-bottom: 1px solid transparent; transition: border-color .2s, box-shadow .3s; }
.site-header.is-scrolled { border-bottom-color: var(--line); box-shadow: 0 10px 30px -24px rgba(11, 19, 43, .45); }
.site-header .wrap { display: flex; align-items: center; gap: 24px; min-height: 76px; transition: min-height .3s cubic-bezier(.2,.7,.2,1); }
@media (min-width: 901px) { .site-header.is-scrolled .wrap { min-height: 64px; } }
.brand { display: inline-flex; flex: none; }
.brand svg { width: 168px; height: auto; display: block; overflow: visible; }
.nav { margin-left: auto; display: flex; align-items: center; gap: 6px; }
.nav a { font: 600 .95rem/1 var(--body); text-decoration: none; padding: 12px 14px; border-radius: 999px; color: var(--navy); }
.nav a:hover { background: var(--oat-2); }
.nav a[aria-current="page"] { background: var(--white); box-shadow: inset 0 0 0 1px var(--line); }
.nav .nav-dietxp { margin-left: 10px; box-shadow: inset 0 0 0 1.5px var(--navy); display: inline-flex; gap: 8px; align-items: center; white-space: nowrap; }
.nav .nav-dietxp .arrow { width: 14px; height: 14px; flex: none; }
.nav .nav-dietxp:hover { background: var(--navy); color: var(--white); }
.nav-toggle { display: none; margin-left: auto; align-items: center; gap: 8px; font: 600 .95rem var(--body); color: var(--navy); background: var(--white); border: 1px solid var(--line-2); border-radius: 999px; padding: 10px 16px; min-height: 44px; cursor: pointer; }
.nav-toggle .bars { width: 18px; height: 12px; position: relative; }
.nav-toggle .bars::before, .nav-toggle .bars::after { content: ''; position: absolute; left: 0; right: 0; height: 2px; background: currentColor; border-radius: 2px; transition: transform .2s; }
.nav-toggle .bars::before { top: 1px; } .nav-toggle .bars::after { bottom: 1px; }
.nav-toggle[aria-expanded="true"] .bars::before { transform: translateY(4px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .bars::after { transform: translateY(-5px) rotate(-45deg); }
@media (max-width: 900px) {
  .brand svg { width: 148px; }
  .site-header .wrap { min-height: 68px; }
  .js .nav-toggle { display: inline-flex; }
  .js .nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: var(--oat); border-bottom: 1px solid var(--line); flex-direction: column; align-items: stretch; padding: 8px var(--gutter) 20px; gap: 2px; }
  .js .nav.is-open { display: flex; }
  .js .nav a { padding: 14px 12px; border-radius: 12px; font-size: 1.05rem; }
  .js .nav .nav-dietxp { margin: 10px 0 0; justify-content: center; }
  .no-js .site-header .wrap { flex-wrap: wrap; padding-bottom: 10px; }
  .no-js .nav { flex-wrap: wrap; margin-left: 0; }
}

/* ---------- buttons, labels ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 50px; padding: 13px 24px; border-radius: 999px; font: 600 1rem/1.2 var(--body); text-decoration: none; border: 0; cursor: pointer; transition: transform .15s, background-color .15s, box-shadow .15s; text-align: center; }
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: none; }
.btn-primary { background: var(--navy); color: var(--white); }
.btn-primary:hover { background: var(--navy-2); }
.btn-ghost { background: transparent; color: var(--navy); box-shadow: inset 0 0 0 1.5px var(--navy); }
.btn-ghost:hover { background: var(--white); }
.btn-yellow { background: var(--yellow); color: var(--navy); }
.btn-yellow:hover { background: #F7DC7C; }
.on-navy .btn-ghost { color: var(--white); box-shadow: inset 0 0 0 1.5px rgba(255,255,255,.7); }
.on-navy .btn-ghost:hover { background: rgba(255,255,255,.08); }
.btn .arrow { width: 16px; height: 16px; flex: none; transition: transform .15s; }
.btn:hover .arrow { transform: translateX(3px); }
@media (prefers-reduced-motion: reduce) { .btn, .btn .arrow { transition: none; } .btn:hover, .btn:hover .arrow { transform: none; } }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }
@media (max-width: 480px) { .btn-row .btn { flex: 1 1 100%; } }

.eyebrow { display: inline-flex; align-items: center; gap: 10px; font: 700 .8125rem/1.3 var(--body); letter-spacing: .09em; text-transform: uppercase; color: var(--navy); margin: 0 0 18px; }
.eyebrow::before { content: ''; width: 22px; height: 3px; border-radius: 3px; background: var(--citrus); flex: none; }
.on-navy .eyebrow { color: var(--white); }
.lead { font-size: clamp(1.1rem, 1rem + .35vw, 1.3rem); line-height: 1.6; color: var(--ink-2); font-weight: 500; }
.muted { color: var(--ink-3); }
.link-arrow { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; text-decoration: none; color: var(--navy); }
.link-arrow span { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .22em; }
.link-arrow:hover span { text-decoration-thickness: 2px; }
.link-arrow svg { width: 15px; height: 15px; flex: none; }
.status { display: inline-flex; align-items: center; gap: 7px; font: 700 .75rem/1 var(--body); letter-spacing: .04em; text-transform: uppercase; padding: 7px 11px; border-radius: 999px; white-space: nowrap; }
.status::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.status-live { background: #E3F1E6; color: #145A2A; }
.status-use { background: #FCF1C8; color: var(--navy); }
.status-dev { background: var(--white); color: var(--navy); box-shadow: inset 0 0 0 1px var(--line-2); }
.status-dev::before { background: transparent; box-shadow: inset 0 0 0 2px var(--citrus); }

/* ---------- sections ---------- */
.section { padding: clamp(64px, 5vw + 40px, 112px) 0; }
.section-tight { padding: clamp(48px, 3vw + 32px, 80px) 0; }
.section-alt { background: var(--oat-2); }
.section-white { background: var(--white); }
.section-navy { background: var(--navy); color: var(--white); }
.section-navy h2, .section-navy h3, .section-navy h4 { color: var(--white); }
.section-navy .lead, .section-navy .muted { color: var(--on-navy-2); }
.section-head { max-width: 760px; margin-bottom: clamp(32px, 3vw, 52px); }
.section-head p { color: var(--ink-2); font-size: 1.125rem; }
.section-navy .section-head p { color: var(--on-navy-2); }
.grid { display: grid; gap: clamp(16px, 2vw, 24px); }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 1024px) { .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 680px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: minmax(0, 1fr); } }

.card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(22px, 2vw, 30px); }
.card h3 { margin-bottom: .35em; }
.card p:last-child { margin-bottom: 0; }

/* ---------- hero ---------- */
.hero { padding: clamp(36px, 4vw, 72px) 0 clamp(56px, 5vw, 96px); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.02fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
.hero-copy .lead { max-width: 34em; margin-bottom: 28px; }
.hero h1 { margin-bottom: 22px; }
.hero h1 .mark { position: relative; white-space: nowrap; }
.hero h1 .mark::after { content: ''; position: absolute; left: -2px; right: -2px; bottom: .04em; height: .2em; background: var(--yellow); z-index: -1; border-radius: 3px; }
.hero h1 { position: relative; z-index: 0; }
.relation { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; margin-top: 30px; padding-top: 22px; border-top: 1px solid var(--line); font-size: .95rem; color: var(--ink-2); }
.relation img { height: 26px; width: auto; }
.relation .rel-arrow { width: 18px; height: 18px; color: var(--ink-3); }
.relation .rel-dx { height: 30px; }
.relation .rel-caption { flex-basis: 100%; color: var(--ink-3); font-size: .92rem; }
.hero-visual { position: relative; padding-bottom: 46px; }
.hero-photo { border-radius: var(--radius-lg); overflow: hidden; aspect-ratio: 4 / 3.15; background: var(--oat-2); box-shadow: var(--shadow); }
.hero-photo img { width: 100%; height: 100%; object-fit: cover; }
.hero-screen { position: absolute; left: -36px; bottom: 0; width: min(64%, 380px); }
.hero-tag { position: absolute; right: 18px; top: 18px; background: rgba(255,255,255,.94); border-radius: 999px; padding: 8px 14px 8px 10px; display: flex; align-items: center; gap: 9px; font: 600 .82rem/1.2 var(--body); box-shadow: var(--shadow); }
.hero-tag img { width: 34px; height: 34px; border-radius: 50%; object-fit: cover; }
@media (max-width: 960px) {
  .hero-grid { grid-template-columns: minmax(0, 1fr); }
  .hero-visual { max-width: 640px; }
  .hero-screen { left: 16px; width: min(70%, 360px); }
}
@media (max-width: 520px) { .hero-screen { left: auto; right: 10px; width: 68%; } .hero-visual { padding-bottom: 40px; } .hero-tag { right: 10px; top: 10px; font-size: .75rem; } }

/* browser frame around real screenshots */
.browser { background: var(--white); border-radius: 14px; overflow: hidden; box-shadow: 0 2px 4px rgba(11,19,43,.08), 0 24px 48px -24px rgba(11,19,43,.45); border: 1px solid var(--line); }
.browser-bar { display: flex; align-items: center; gap: 6px; padding: 8px 12px; background: #F1EEE8; border-bottom: 1px solid var(--line); }
.browser-bar i { width: 8px; height: 8px; border-radius: 50%; background: #D8D1C4; flex: none; }
.browser-bar span { margin-left: 8px; flex: 1; min-width: 0; font: 500 .75rem/1.4 var(--body); color: var(--ink-3); background: var(--white); border-radius: 999px; padding: 3px 10px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.browser img { width: 100%; height: auto; }

/* ---------- DietXP family ---------- */
.family { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(28px, 4vw, 64px); align-items: center; }
.family-diagram { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: clamp(22px, 3vw, 34px); }
.fam-node { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border-radius: 14px; background: var(--oat); }
.fam-node img { height: 30px; width: auto; flex: none; }
.fam-node .fam-dx { height: 34px; }
.fam-node strong { display: block; font-family: var(--head); font-weight: 600; font-size: 1.05rem; }
.fam-node span { display: block; font-size: .9rem; color: var(--ink-2); line-height: 1.4; }
.fam-link { width: 2px; height: 22px; background: var(--line-2); margin: 4px 0 4px 31px; }
.fam-children { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-left: 30px; position: relative; padding-left: 18px; border-left: 2px solid var(--line-2); }
.fam-children a { display: block; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--line); text-decoration: none; background: var(--white); }
.fam-children a:hover { border-color: var(--navy); }
.fam-children b { display: block; font: 600 .98rem/1.3 var(--head); }
.fam-children small { color: var(--ink-3); font-size: .82rem; line-height: 1.35; display: block; margin-top: 2px; }
.routes { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin-top: clamp(36px, 4vw, 56px); }
.route { position: relative; display: grid; align-content: start; gap: 14px; padding: 22px 22px 24px; background: var(--white); border: 1px solid var(--line); border-radius: 16px; text-decoration: none; transition: border-color .15s, transform .15s; }
.route:hover { border-color: var(--navy); transform: translateY(-3px); box-shadow: var(--shadow); }
.route-icon { transition: background-color .25s; }
.route:hover .route-icon { background: var(--yellow); }
.route .go { transition: transform .25s; }
.route:hover .go { transform: translate(2px, -2px); color: var(--navy); }
.route-icon { width: 52px; height: 52px; border-radius: 14px; background: var(--oat-2); display: grid; place-items: center; }
.route-icon svg { width: 26px; height: 26px; }
.route b { display: block; font: 600 1.08rem/1.3 var(--head); }
.route span { display: block; color: var(--ink-2); font-size: .95rem; line-height: 1.45; }
.route .go { position: absolute; top: 22px; right: 20px; width: 18px; height: 18px; color: var(--ink-3); }
@media (prefers-reduced-motion: reduce) { .route { transition: none; } .route:hover { transform: none; } }
@media (max-width: 960px) { .family { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 1024px) { .routes { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .routes { grid-template-columns: minmax(0, 1fr); } .route { grid-template-columns: 44px minmax(0, 1fr); align-items: start; padding: 18px 44px 18px 18px; } .route-icon { width: 44px; height: 44px; } .route .go { top: 20px; right: 16px; } }
@media (max-width: 480px) { .fam-children { margin-left: 14px; padding-left: 12px; gap: 8px; } .fam-children a { padding: 10px 11px; } .fam-link { margin-left: 15px; } }
@media (max-width: 359px) { .fam-children { grid-template-columns: minmax(0, 1fr); } }

/* ---------- work rows (home) ---------- */
.work-list { display: grid; gap: clamp(48px, 5vw, 88px); }
.work { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: clamp(28px, 4vw, 64px); align-items: center; }
.work:nth-child(even) .work-media { order: 2; }
.work-media { position: relative; }
.work-media .photo { border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow); background: var(--white); }
.work-media .photo img { width: 100%; height: 100%; object-fit: cover; }
.work-num { font: 700 .8125rem/1 var(--body); letter-spacing: .09em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 12px; display: block; }
.facts { list-style: none; padding: 0; margin: 22px 0 26px; border-top: 1px solid var(--line); }
.facts li { display: grid; grid-template-columns: 9.5em minmax(0, 1fr); gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--line); margin: 0; font-size: .98rem; }
.facts li b { font-weight: 700; color: var(--navy); }
@media (max-width: 860px) { .work { grid-template-columns: minmax(0, 1fr); } .work:nth-child(even) .work-media { order: 0; } }
@media (max-width: 420px) { .facts li { grid-template-columns: minmax(0, 1fr); gap: 2px; } }

/* ---------- approach steps ---------- */
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(14px, 1.6vw, 22px); counter-reset: step; }
.steps li { margin: 0; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px 24px 24px; position: relative; }
.section-navy .steps li { background: var(--navy-2); border-color: rgba(255,255,255,.12); }
.steps li::before { counter-increment: step; content: counter(step); display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--yellow); color: var(--navy); font: 700 1.05rem/1 var(--head); margin-bottom: 18px; }
.steps h3 { font-size: 1.15rem; }
.steps p { margin: 0; color: var(--ink-2); font-size: .98rem; }
.section-navy .steps p { color: var(--on-navy-2); }
@media (max-width: 1024px) { .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .steps { grid-template-columns: minmax(0, 1fr); } }

/* ---------- call to action panel ---------- */
.cta-panel { background: var(--navy); color: var(--white); border-radius: var(--radius-lg); padding: clamp(32px, 5vw, 64px); display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: clamp(28px, 4vw, 56px); align-items: center; position: relative; overflow: hidden; isolation: isolate; }
.cta-panel h2 { color: var(--white); }
.cta-panel p { color: var(--on-navy-2); }
.cta-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.cta-list li { margin: 0; display: flex; gap: 12px; align-items: flex-start; padding: 12px 14px; border-radius: 12px; background: rgba(255,255,255,.06); color: var(--white); font-weight: 500; }
.cta-list li::before { content: ''; flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--yellow); margin-top: .55em; }
@media (max-width: 860px) { .cta-panel { grid-template-columns: minmax(0, 1fr); } }

/* ---------- page hero (inner pages) ---------- */
.page-hero { padding: clamp(40px, 4vw, 72px) 0 clamp(40px, 4vw, 64px); }
.page-hero .lead { max-width: 40em; }
.page-hero-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: clamp(28px, 4vw, 64px); align-items: center; }
.page-hero-photo { border-radius: var(--radius-lg); overflow: hidden; aspect-ratio: 3 / 2; box-shadow: var(--shadow); background: var(--oat-2); }
.page-hero-photo img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 900px) { .page-hero-grid { grid-template-columns: minmax(0, 1fr); } }
.crumbs { font-size: .9rem; color: var(--ink-3); margin-bottom: 18px; }
.crumbs a { color: var(--ink-2); }
.toc { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 28px 0 0; }
.toc li { margin: 0; }
.toc a { display: inline-block; font: 600 .9rem/1.2 var(--body); padding: 10px 14px; border-radius: 999px; background: var(--white); border: 1px solid var(--line); text-decoration: none; }
.toc a:hover { border-color: var(--navy); }

/* ---------- prose ---------- */
.prose { max-width: 720px; }
.prose h2 { margin-top: 1.6em; font-size: clamp(1.5rem, 1.2rem + 1vw, 2rem); }
.prose h3 { margin-top: 1.4em; }
.prose ul li { margin-bottom: .5em; }
.prose a { font-weight: 600; }
.two-col { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(28px, 4vw, 64px); align-items: start; }
@media (max-width: 860px) { .two-col { grid-template-columns: minmax(0, 1fr); } }

/* definition list for organisation details */
.details-list { margin: 0; display: grid; grid-template-columns: minmax(0, 11em) minmax(0, 1fr); border-top: 1px solid var(--line); }
.details-list dt, .details-list dd { margin: 0; padding: 12px 0; border-bottom: 1px solid var(--line); }
.details-list dt { font-weight: 700; padding-right: 16px; }
@media (max-width: 480px) { .details-list { grid-template-columns: minmax(0, 1fr); } .details-list dt { border-bottom: 0; padding-bottom: 0; } .details-list dd { padding-top: 2px; } }

/* evidence types */
.evidence { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.evidence .card { display: grid; gap: 6px; align-content: start; }
.evidence h3 { font-size: 1.1rem; margin: 0; }
.evidence .shows, .evidence .not { font-size: .96rem; margin: 0; }
.evidence .shows b, .evidence .not b { display: block; font-size: .78rem; letter-spacing: .07em; text-transform: uppercase; margin-bottom: 2px; }
.evidence .not b { color: var(--ink-3); }
@media (max-width: 760px) { .evidence { grid-template-columns: minmax(0, 1fr); } }

/* ---------- our work: project cards ---------- */
.area { padding-top: 12px; }
.area + .area { margin-top: clamp(56px, 6vw, 96px); }
.area-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: clamp(24px, 4vw, 56px); align-items: end; margin-bottom: 28px; }
.area-head p { color: var(--ink-2); margin: 0; }
@media (max-width: 860px) { .area-head { grid-template-columns: minmax(0, 1fr); } }
.area-feature { border-radius: var(--radius-lg); overflow: hidden; margin-bottom: 20px; background: var(--white); border: 1px solid var(--line); }
.area-feature img { width: 100%; height: auto; }
.projects { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; align-items: start; }
@media (max-width: 760px) { .projects { grid-template-columns: minmax(0, 1fr); } }
.project { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.project-media { aspect-ratio: 16 / 9; background: var(--oat-2); overflow: hidden; border-bottom: 1px solid var(--line); }
.project-media img { width: 100%; height: 100%; object-fit: cover; object-position: top center; }
.project-body { padding: 22px 24px 8px; }
.project-top { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; margin-bottom: 8px; }
.project-top h3 { margin: 0; font-size: 1.22rem; }
.project-body > p { color: var(--ink-2); margin-bottom: 14px; }
.project details { border-top: 1px solid var(--line); }
.project summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 24px; font: 600 .98rem/1.3 var(--body); min-height: 52px; }
.project summary::-webkit-details-marker { display: none; }
.project summary::after { content: ''; width: 10px; height: 10px; border-right: 2px solid var(--navy); border-bottom: 2px solid var(--navy); transform: rotate(45deg) translate(-2px, -2px); transition: transform .2s; flex: none; }
.project details[open] summary::after { transform: rotate(-135deg) translate(-2px, -2px); }
.project summary:hover { background: var(--oat); }
@media (prefers-reduced-motion: reduce) { .project summary::after { transition: none; } }
.project dl { margin: 0; padding: 4px 24px 18px; display: grid; grid-template-columns: minmax(0, 8.5em) minmax(0, 1fr); font-size: .95rem; }
.project dt, .project dd { margin: 0; padding: 9px 0; border-bottom: 1px solid var(--line); }
.project dt { font-weight: 700; padding-right: 12px; }
.project dd a { font-weight: 600; }
.project dl > :nth-last-child(-n+2) { border-bottom: 0; }
@media (max-width: 420px) { .project dl { grid-template-columns: minmax(0, 1fr); } .project dt { border-bottom: 0; padding-bottom: 0; } .project dd { padding-top: 2px; } .project dl > dt:nth-last-child(2) { border-bottom: 0; } }
.project-links { display: flex; flex-wrap: wrap; gap: 8px 18px; padding: 0 24px 22px; }

/* ---------- forms ---------- */
.form-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: clamp(22px, 3vw, 40px); box-shadow: var(--shadow); }
.field { margin-bottom: 20px; }
.field label, .field legend { display: block; font: 600 .98rem/1.35 var(--body); margin-bottom: 8px; color: var(--navy); }
.field .hint { display: block; font-size: .9rem; color: var(--ink-3); margin: -4px 0 8px; font-weight: 500; }
.opt { font-weight: 500; color: var(--ink-3); }
input[type=text], input[type=email], input[type=tel], input[type=url], select, textarea { width: 100%; font: 500 1rem/1.4 var(--body); color: var(--navy); background: var(--white); border: 1.5px solid #B9B2A5; border-radius: 12px; padding: 13px 14px; min-height: 50px; transition: border-color .15s, box-shadow .15s; }
textarea { min-height: 150px; resize: vertical; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--navy); box-shadow: 0 0 0 3px rgba(11, 19, 43, .18); }
.field-error input, .field-error textarea, .field-error select { border-color: #B42318; }
.error-msg { display: block; color: #B42318; font-weight: 600; font-size: .9rem; margin-top: 6px; }
.two-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 16px; }
@media (max-width: 600px) { .two-fields { grid-template-columns: minmax(0, 1fr); } }
fieldset { border: 0; padding: 0; margin: 0 0 22px; min-width: 0; }
.choice-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
@media (max-width: 600px) { .choice-grid { grid-template-columns: minmax(0, 1fr); } }
.choice { position: relative; }
.choice input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.choice label { display: flex; gap: 12px; align-items: flex-start; margin: 0; padding: 14px 16px; border: 1.5px solid var(--line-2); border-radius: 14px; cursor: pointer; font-weight: 600; min-height: 54px; background: var(--white); transition: border-color .15s, background-color .15s; }
.choice label small { display: block; font-weight: 500; color: var(--ink-3); font-size: .86rem; line-height: 1.35; margin-top: 2px; }
.choice label::before { content: ''; flex: none; width: 20px; height: 20px; border-radius: 50%; border: 2px solid #8C8578; margin-top: 1px; background: var(--white); }
.choice input:checked + label { border-color: var(--navy); background: #FDF8E6; }
.choice input:checked + label::before { border: 6px solid var(--navy); }
.choice input:focus-visible + label { outline: 3px solid var(--navy); outline-offset: 2px; }
.check, .field .check { display: flex; gap: 12px; align-items: flex-start; font-size: .96rem; font-weight: 500; margin: 0; }
.check input { width: 24px; height: 24px; margin: 2px 0 0; accent-color: var(--navy); flex: none; }
.field .consent-hint { margin: 8px 0 0 36px; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form-note { font-size: .9rem; color: var(--ink-3); margin-top: 14px; }
.form-status { margin: 0 0 20px; padding: 14px 16px; border-radius: 12px; font-weight: 600; }
.form-status[hidden] { display: none; }
.form-status.is-error { background: #FDECEA; color: #8A1C12; }
.form-status.is-ok { background: #E3F1E6; color: #145A2A; }
.btn[disabled] { opacity: .6; cursor: progress; transform: none; }

/* contact routes */
.contact-routes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.contact-routes .card { display: flex; flex-direction: column; gap: 4px; }
.contact-routes .card .link-arrow { margin-top: auto; padding-top: 12px; }
@media (max-width: 760px) { .contact-routes { grid-template-columns: minmax(0, 1fr); } }
.contact-lines { list-style: none; padding: 0; margin: 0; }
.contact-lines li { padding: 14px 0; border-bottom: 1px solid var(--line); margin: 0; display: grid; gap: 2px; }
.contact-lines li span { font-size: .85rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-3); }
.contact-lines a { font-weight: 600; }

.note-box { border-left: 4px solid var(--yellow); background: var(--white); border-radius: 0 14px 14px 0; padding: 16px 20px; font-size: .98rem; }
.note-box p:last-child { margin: 0; }

/* ---------- footer ---------- */
.site-footer { background: var(--navy); color: var(--on-navy-2); padding: clamp(56px, 6vw, 88px) 0 28px; font-size: .96rem; }
.site-footer a { color: var(--white); text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.footer-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr)); gap: clamp(28px, 4vw, 56px); }
.footer-brand img { width: 176px; margin-bottom: 18px; }
.footer-brand p { max-width: 30em; }
.site-footer h2 { font: 700 .8rem/1.3 var(--body); letter-spacing: .09em; text-transform: uppercase; color: var(--white); margin: 6px 0 14px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin: 0 0 10px; }
.footer-legal { margin-top: clamp(40px, 5vw, 64px); padding-top: 22px; border-top: 1px solid rgba(255,255,255,.14); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 24px; font-size: .86rem; }
@media (max-width: 900px) { .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .footer-brand { grid-column: 1 / -1; } }
@media (max-width: 480px) { .footer-grid { gap: 28px 20px; } .footer-contact { grid-column: 1 / -1; } }


/* ---------- 404 ---------- */
.notfound { min-height: 56vh; display: grid; align-content: center; }

/* =====================================================================================
   Polish and motion (30 Oct 2026). Every animation sits inside prefers-reduced-motion:
   no-preference, so visitors who ask their device for less motion get still pages.
   Scroll-in effects need JavaScript (.js on <html>); without it everything is visible.
   ===================================================================================== */
:root { --ease-out: cubic-bezier(.2, .7, .2, 1); --ease-spring: cubic-bezier(.34, 1.56, .64, 1); }

/* hero: warm glow behind the photo */
.hero { position: relative; overflow: hidden; isolation: isolate; }
.hero::before { content: ''; position: absolute; z-index: -1; right: -14vw; top: -18vw; width: min(62vw, 900px); aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle at 40% 45%, rgba(244, 211, 94, .32), rgba(255, 105, 26, .08) 45%, transparent 70%); pointer-events: none; }
.page-hero { position: relative; overflow: hidden; isolation: isolate; }
.page-hero::before { content: ''; position: absolute; z-index: -1; right: -20vw; top: -26vw; width: min(56vw, 760px); aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle, rgba(244, 211, 94, .22), transparent 68%); pointer-events: none; }

/* numbers band */
.stats-band { background: var(--navy); color: var(--white); padding: clamp(28px, 3vw, 44px) 0; }
.stats { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.stats li { margin: 0; padding: 6px clamp(14px, 2vw, 28px); border-left: 1px solid rgba(255, 255, 255, .14); display: grid; gap: 4px; }
.stats li:first-child { border-left: 0; padding-left: 0; }
.stat-num { font: 700 clamp(2rem, 1.4rem + 2.2vw, 3.1rem)/1 var(--head); letter-spacing: -.03em; color: var(--white); font-variant-numeric: tabular-nums; }
.stat-label { color: var(--on-navy-2); font-size: .95rem; font-weight: 500; }
@media (max-width: 760px) {
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 22px; }
  .stats li:nth-child(3) { border-left: 0; padding-left: 0; }
}

/* section eyebrow line, card accents */
.eyebrow::before { transform-origin: left center; }
.steps li { overflow: hidden; }
.steps li::after { content: ''; position: absolute; left: 0; right: 0; top: 0; height: 3px; background: var(--yellow); transform-origin: left center; }
.project, .card { transition: box-shadow .3s, border-color .3s, transform .3s var(--ease-out); }
a.card:hover, .project:hover { box-shadow: var(--shadow); border-color: var(--line-2); }
a.card:hover { transform: translateY(-3px); }
.project-media img, .work-media .photo img, a.card .project-media img { transition: transform .9s var(--ease-out); }
.project:hover .project-media img, .work:hover .photo img, a.card:hover .project-media img { transform: scale(1.04); }
.legend { list-style: none; padding: 0; margin: 22px 0 0; display: flex; flex-wrap: wrap; gap: 10px 22px; color: var(--ink-3); font-size: .94rem; }
.legend li { margin: 0; display: flex; align-items: center; gap: 8px; }

/* buttons: light sweep on hover */
.btn-primary, .btn-yellow { position: relative; overflow: hidden; isolation: isolate; }
.btn-primary::after, .btn-yellow::after { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(105deg, transparent 30%, rgba(255, 255, 255, .22) 50%, transparent 70%); transform: translateX(-120%); }
.btn-yellow::after { background: linear-gradient(105deg, transparent 30%, rgba(255, 255, 255, .55) 50%, transparent 70%); }

/* footer: large faint wordmark */
.site-footer { position: relative; overflow: hidden; isolation: isolate; }
.site-footer::after { content: ''; position: absolute; z-index: -1; left: 50%; bottom: -1.2vw; width: min(1240px, 94vw); aspect-ratio: 5.85; transform: translateX(-50%); background: url('../brand/nutrispace-logo-white.svg') no-repeat center bottom / contain; opacity: .045; pointer-events: none; }

/* phone swipe rails (cards side by side with the next one peeking in) */
.rail-dots { display: none; }
@media (max-width: 680px) {
  .rail { display: grid; grid-auto-flow: column; grid-template-columns: none; grid-auto-columns: 84%; gap: 12px; overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; margin-inline: calc(-1 * var(--gutter)); padding: 6px var(--gutter) 10px; scroll-padding-inline: var(--gutter); scrollbar-width: none; }
  .rail::-webkit-scrollbar { display: none; }
  .rail > * { scroll-snap-align: start; }
  .routes.rail { margin-top: 32px; }
  .routes.rail .route { grid-template-columns: minmax(0, 1fr); padding: 22px 22px 24px; align-content: start; }
  .routes.rail .route-icon { width: 52px; height: 52px; }
  .routes.rail .route .go { top: 22px; right: 20px; }
  .rail-dots { display: flex; justify-content: center; gap: 2px; margin-top: 6px; }
  .rail-dots button { width: 28px; height: 28px; border: 0; padding: 0; background: none; cursor: pointer; display: grid; place-items: center; }
  .rail-dots button::before { content: ''; width: 8px; height: 8px; border-radius: 999px; background: var(--line-2); transition: width .3s var(--ease-out), background-color .3s; }
  .rail-dots button[aria-current="true"]::before { width: 22px; background: var(--navy); }
  .on-navy .rail-dots button::before, .section-navy .rail-dots button::before { background: rgba(255, 255, 255, .25); }
  .on-navy .rail-dots button[aria-current="true"]::before, .section-navy .rail-dots button[aria-current="true"]::before { background: var(--yellow); }
  .rail:focus-visible { outline-offset: -3px; }
}

@media (prefers-reduced-motion: no-preference) {
  /* animated header logo: plate parts settle in, then the leaf grows; the leaf waves on hover */
  .ns-logo .ns-q1, .ns-logo .ns-q2, .ns-logo .ns-q3 { transform-box: fill-box; transform-origin: center; animation: ns-pop .6s var(--ease-spring) both; }
  .ns-logo .ns-q2 { animation-delay: .08s; }
  .ns-logo .ns-q3 { animation-delay: .16s; }
  .ns-logo .ns-leaf { transform-box: fill-box; transform-origin: 0% 100%; animation: ns-grow .8s .38s var(--ease-spring) both; }
  .ns-logo .ns-word { animation: ns-word .7s .2s var(--ease-out) both; }
  .brand:hover .ns-leaf { animation: ns-wave .9s var(--ease-out); }

  /* page entrance (no JavaScript needed) */
  .hero-copy > *, .hero-in > * { animation: ns-rise .8s var(--ease-out) both; }
  .hero-copy > :nth-child(2), .hero-in > :nth-child(2) { animation-delay: .1s; }
  .hero-copy > :nth-child(3), .hero-in > :nth-child(3) { animation-delay: .2s; }
  .hero-copy > :nth-child(4), .hero-in > :nth-child(4) { animation-delay: .32s; }
  .hero-copy > :nth-child(5), .hero-in > :nth-child(5) { animation-delay: .44s; }
  .hero-in > :nth-child(n+6) { animation-delay: .54s; }
  .hero h1 .mark::after { transform-origin: left center; animation: ns-draw .8s .7s var(--ease-out) both; }
  .hero-photo, .page-hero-photo { animation: ns-unveil 1.1s .15s var(--ease-out) both; }
  .hero-photo img, .page-hero-photo img { animation: ns-settle 1.8s .15s var(--ease-out) both; }
  .hero-screen { animation: ns-rise-far 1s .65s var(--ease-out) both; }

  /* scroll-in: single blocks and staggered groups (translate, so hover transforms stay free) */
  .js .reveal, .js .stagger > * { opacity: 0; translate: 0 24px; transition: opacity .75s var(--ease-out), translate .75s var(--ease-out), transform .3s var(--ease-out), box-shadow .3s, border-color .3s, background-color .3s; }
  .js .stagger > * { transition-delay: calc(var(--i, 0) * 90ms); }
  .js .reveal.is-in, .js .stagger.is-in > * { opacity: 1; translate: 0 0; }
  .js .reveal .eyebrow::before, .js .stagger .eyebrow::before { transform: scaleX(0); transition: transform .6s .25s var(--ease-out); }
  .js .reveal.is-in .eyebrow::before, .js .stagger.is-in .eyebrow::before { transform: scaleX(1); }
  .js .steps li::after { transform: scaleX(0); transition: transform .8s var(--ease-out); transition-delay: calc(var(--i, 0) * 120ms + .3s); }
  .js .steps.is-in li::after { transform: scaleX(1); }
  .js .steps li::before { scale: .4; transition: scale .5s var(--ease-spring); transition-delay: calc(var(--i, 0) * 120ms + .15s); }
  .js .steps.is-in li::before { scale: 1; }
  .js .family-diagram .fam-link { transform-origin: top center; }
  .js .family-diagram > .fam-link { opacity: 1; translate: 0 0; scale: 1 0; transition: scale .5s var(--ease-out); transition-delay: calc(var(--i, 0) * 90ms); }
  .js .family-diagram.is-in > .fam-link { scale: 1 1; }
  .js .stagger.is-in > .is-settled { transition-delay: 0s; }
  .js .work-media .photo img, .js .work-media .browser img { scale: 1.06; transition: scale 1.4s var(--ease-out), transform .9s var(--ease-out); }
  .js .work-media.is-in .photo img, .js .work-media.is-in .browser img { scale: 1; }

  /* small interactions */
  .btn:hover::after { transform: translateX(120%); transition: transform .8s var(--ease-out); }
  .btn:active { transform: scale(.98); }
  .project details[open] dl, .project details[open] + .project-links { animation: ns-rise .45s var(--ease-out) both; }
  .choice input:checked + label::before { animation: ns-pop .35s var(--ease-spring); }
  .choice label:hover { border-color: var(--navy); }
  .nav a { transition: background-color .2s, box-shadow .2s; }
  .js .nav.is-open a { animation: ns-rise .4s var(--ease-out) both; }
  .js .nav.is-open a:nth-child(2) { animation-delay: .04s; }
  .js .nav.is-open a:nth-child(3) { animation-delay: .08s; }
  .js .nav.is-open a:nth-child(4) { animation-delay: .12s; }
  .js .nav.is-open a:nth-child(5) { animation-delay: .16s; }
}

@keyframes ns-pop { from { opacity: 0; transform: scale(.4); } to { opacity: 1; transform: none; } }
@keyframes ns-grow { from { opacity: 0; transform: scale(0) rotate(-35deg); } to { opacity: 1; transform: none; } }
@keyframes ns-wave { 0%, 100% { transform: none; } 30% { transform: rotate(-12deg); } 65% { transform: rotate(7deg); } }
@keyframes ns-word { from { opacity: 0; transform: translateX(-8px); } to { opacity: 1; transform: none; } }
@keyframes ns-rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@keyframes ns-rise-far { from { opacity: 0; transform: translateY(40px); } to { opacity: 1; transform: none; } }
@keyframes ns-draw { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes ns-unveil { from { opacity: 0; clip-path: inset(8% 8% 8% 8% round 26px); } to { opacity: 1; clip-path: inset(0 0 0 0 round 26px); } }
@keyframes ns-settle { from { transform: scale(1.12); } to { transform: none; } }

/* About page side photos (30 Oct 2026): fill the text-only left columns; unveiled upwards on scroll */
.side-photo { margin: clamp(24px, 3vw, 36px) 0 0; border-radius: var(--radius-lg); overflow: hidden; aspect-ratio: 4 / 3; background: var(--oat-2); }
.side-photo img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 860px) { .side-photo { aspect-ratio: 16 / 10; margin-bottom: 8px; } }
@media (prefers-reduced-motion: no-preference) {
  .js .media-reveal { clip-path: inset(100% 0 0 0 round var(--radius-lg)); transition: clip-path 1.2s var(--ease-out); }
  .js .media-reveal.is-in { clip-path: inset(0 0 0 0 round var(--radius-lg)); }
  .js .media-reveal img { scale: 1.14; transition: scale 1.8s var(--ease-out); }
  .js .media-reveal.is-in img { scale: 1; }
}

