/* Novum Global – design system
   One typeface (Archivo, variable width + weight), one ground, one ink, one accent.
   Flat colour, no gradients, no shadows at rest, square corners. */
@import url("../fonts/fonts.css");
@import url("pages.css");

:root {
  --green: #09A24A;
  --green-deep: #067A38;
  --green-dark: #0B4D2A;
  --ink: #2B2F33;
  --ink-soft: #4F555B;
  --paper: #FFFFFF;
  --paper-2: #F3F5F4;
  --paper-3: #E6EAE8;
  --label: #FFFFFF;
  --on-green: #FFFFFF;
  --focus: #FFB800;

  --font: "Archivo", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --wdth-display: 112;
  --wdth-text: 100;
  --wdth-label: 88;

  --size-display: clamp(2.75rem, 1.2rem + 6.2vw, 6.75rem);
  --size-h2: clamp(2rem, 1.1rem + 3.4vw, 4rem);
  --size-h3: clamp(1.25rem, 1.05rem + 0.8vw, 1.75rem);
  --size-statement: clamp(1.25rem, 1.05rem + 0.9vw, 1.75rem);
  --size-body: 1.125rem;
  --size-small: 0.9375rem;

  --gutter: clamp(1rem, 0.5rem + 2vw, 2rem);
  --section: clamp(5rem, 3rem + 8vw, 12rem);
  --max: 1440px;

  --ease: cubic-bezier(.2,.7,.2,1);
  --dur: .6s;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font-family: var(--font); font-variation-settings: "wdth" var(--wdth-text);
  font-size: var(--size-body); line-height: 1.55; font-weight: 400;
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
img, svg, video { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: .15em; }
a:hover { color: var(--green-deep); }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: var(--gutter); top: -4rem; background: var(--ink); color: #fff; padding: .6rem 1rem; z-index: 100; }
.skip:focus { top: .5rem; }
::selection { background: var(--green); color: #fff; }

h1, h2, h3, h4 { font-weight: 700; letter-spacing: -0.02em; line-height: 1.02; margin: 0 0 .5em; text-wrap: balance; font-variation-settings: "wdth" var(--wdth-display); }
h1.display, .display { font-size: var(--size-display); letter-spacing: -0.035em; line-height: .95; }
h2 { font-size: var(--size-h2); }
@media (max-width: 480px) { h2 { font-size: clamp(1.75rem, 1.4rem + 2vw, 2rem); } }
h3 { font-size: var(--size-h3); letter-spacing: -0.01em; line-height: 1.15; }
p { margin: 0 0 1em; }
.statement { font-size: var(--size-statement); line-height: 1.35; font-weight: 400; max-width: 34em; letter-spacing: -0.01em; }
.num { font-variant-numeric: tabular-nums; font-feature-settings: "tnum"; }
.lead { font-size: var(--size-statement); line-height: 1.4; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  padding: .85em 1.4em; font: inherit; font-weight: 600; line-height: 1; text-decoration: none; cursor: pointer;
  background: var(--ink); color: #fff; border: 0; border-radius: 0; transition: transform .25s var(--ease), background .25s var(--ease);
  font-variation-settings: "wdth" 96;
}
.btn:hover { background: #000; color: #fff; transform: translateY(-2px); }
.btn:active { transform: translateY(0) scale(.98); }
.btn-accent { background: var(--green); }
.btn-accent:hover { background: var(--green-deep); }
.btn-dark { background: var(--ink); }
.btn-ghost { background: transparent; color: inherit; box-shadow: inset 0 0 0 2px currentColor; }
.btn-ghost:hover { background: rgba(255,255,255,.12); color: inherit; }
.btn-lg { padding: 1.05em 1.8em; font-size: 1.1rem; }
.btn-sm { padding: .65em 1.05em; font-size: .95rem; }
.link-btn { background: none; border: 0; padding: 0; font: inherit; color: inherit; text-decoration: underline; cursor: pointer; }
.link-more { font-weight: 600; color: var(--green-deep); }
.link-more::after { content: " →"; }

/* ---------------------------------------------------------------- header */
.site-header { position: sticky; top: 0; z-index: 50; background: var(--paper); }
.site-header-inner { display: flex; align-items: center; gap: 1rem; max-width: var(--max); margin: 0 auto; padding: .8rem var(--gutter); }
.logo { flex: 0 0 auto; display: block; }
.logo-img { width: 150px; height: auto; }
.nav { flex: 1 1 auto; min-width: 0; display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.nav-list { list-style: none; margin: 0; padding: 0; display: flex; gap: .25rem; }
.nav-list > li { position: relative; }
.nav-list > li > a { display: block; padding: .6rem .6rem; font-weight: 600; text-decoration: none; white-space: nowrap; }
.nav-list > li.is-active > a { color: var(--green-deep); box-shadow: inset 0 -3px 0 var(--green); }
.sub-toggle { display: none; }
.sub { list-style: none; margin: 0; padding: .6rem 0; position: absolute; left: 0; top: 100%; min-width: 17rem; background: var(--paper); display: none; z-index: 60; }
.sub li a { display: block; padding: .5rem 1rem; text-decoration: none; font-size: 1rem; }
.sub li a:hover { background: var(--paper-2); color: var(--green-deep); }
.nav-list > li:hover > .sub, .nav-list > li:focus-within > .sub { display: block; }
.nav-extra { display: flex; align-items: center; gap: .75rem; }
.nav-phone { font-weight: 700; text-decoration: none; white-space: nowrap; font-variant-numeric: tabular-nums; }
.lang { display: flex; gap: .4rem; font-size: .9rem; font-weight: 600; }
.lang span { color: var(--green-deep); }
.lang a { text-decoration: none; color: var(--ink-soft); }
.nav-search { background: var(--paper-2); color: var(--ink); width: 44px; height: 40px; padding: 0; font-size: 0; }
.nav-search::before { content: ""; width: 14px; height: 14px; border: 3px solid var(--ink); border-radius: 50%; display: block; transform: translate(-2px, -2px); }
.nav-search::after { content: ""; width: 3px; height: 9px; background: var(--ink); display: block; transform: translate(10px, 6px) rotate(-45deg); position: absolute; }
.nav-search { position: relative; }
.header-actions { display: flex; align-items: center; gap: .75rem; }
.burger { display: none; width: 44px; height: 44px; background: none; border: 0; padding: 10px; cursor: pointer; flex-direction: column; justify-content: space-between; }
.burger span { display: block; height: 3px; background: var(--ink); transition: transform .3s var(--ease), opacity .3s; }

@media (max-width: 1100px) {
  .nav-phone { display: none; }
  .nav-list > li > a { padding: .6rem .5rem; font-size: .95rem; }
}
@media (max-width: 900px) {
  .nav-search { width: auto; height: auto; padding: .65em 1.05em; font-size: .95rem; }
  .nav-search::before, .nav-search::after { display: none; }
  .burger { display: flex; }
  .nav { display: none; position: fixed; inset: 64px 0 0 0; background: var(--paper); flex-direction: column; align-items: stretch; justify-content: flex-start; overflow: auto; padding: 1rem var(--gutter) 3rem; }
  .nav.is-open { display: flex; }
  .nav-list { flex-direction: column; gap: 0; }
  .nav-list > li { display: grid; grid-template-columns: 1fr 48px; align-items: center; }
  .nav-list > li > a { font-size: 1.4rem; padding: .7rem 0; }
  .nav-list > li.is-active > a { box-shadow: none; }
  .sub-toggle { display: block; width: 48px; height: 48px; background: none; border: 0; position: relative; cursor: pointer; }
  .sub-toggle::before, .sub-toggle::after { content: ""; position: absolute; left: 50%; top: 50%; width: 14px; height: 3px; background: var(--ink); transform: translate(-50%, -50%); }
  .sub-toggle::after { transform: translate(-50%, -50%) rotate(90deg); transition: transform .25s; }
  .sub-toggle[aria-expanded="true"]::after { transform: translate(-50%, -50%) rotate(0); }
  .sub { position: static; display: none; grid-column: 1 / -1; padding: 0 0 .5rem 1rem; }
  .sub.is-open { display: block; }
  .sub li a { font-size: 1.1rem; padding: .45rem 0; }
  .nav-list > li:hover > .sub { display: none; }
  .nav-list > li:hover > .sub.is-open, .nav-list > li:focus-within > .sub.is-open { display: block; }
  .nav-extra { flex-wrap: wrap; gap: .75rem 1rem; padding-top: 1.5rem; }
  .nav-phone { display: inline; font-size: 1.3rem; }
  body.nav-open { overflow: hidden; }
  .burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(10.5px) rotate(45deg); }
  .burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-10.5px) rotate(-45deg); }
}

/* ---------------------------------------------------------------- layout */
main { display: block; }
.section { max-width: var(--max); margin: 0 auto; padding: var(--section) var(--gutter) 0; }
.section-head { display: grid; gap: .5rem 3rem; align-items: end; margin-bottom: clamp(2rem, 4vw, 4rem); }
@media (min-width: 900px) { .section-head { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); } .section-head h2 { margin: 0; } .section-head .statement { margin: 0; } }
.field-green { background: var(--green); color: var(--on-green); max-width: none; }
.field-green a:hover { color: #fff; }
.field-grey { background: var(--paper-2); max-width: none; }
.field-dark { background: var(--ink); color: #fff; max-width: none; }
.field-green, .field-grey, .field-dark { padding-bottom: var(--section); }
.field-green > *, .field-grey > *, .field-dark > * { max-width: var(--max); margin-left: auto; margin-right: auto; }
.section + .field-green, .section + .field-grey, .section + .field-dark { margin-top: var(--section); }
.plain-list { list-style: none; margin: 0 0 1.5rem; padding: 0; }
.plain-list li { padding: .35rem 0; }
.plain-list a { text-decoration: none; font-weight: 600; }
.plain-list a:hover { text-decoration: underline; }

/* label motif: the DIGI scale prints a label; cards on this site are labels */
.label { background: var(--label); color: var(--ink); padding: 1.25rem 1.5rem; font-variation-settings: "wdth" var(--wdth-label); }
.label h3 { margin-top: .25rem; }
.label-row { display: flex; justify-content: space-between; gap: 1rem; font-weight: 600; }
.label-row + .label-row { margin-top: .25rem; font-weight: 400; color: var(--ink-soft); }
.label-on-photo { position: absolute; left: 1.25rem; bottom: 1.25rem; min-width: 16rem; max-width: calc(100% - 2.5rem); margin: 0; }
.label-head { display: flex; justify-content: space-between; font-weight: 700; font-size: .9rem; letter-spacing: .02em; margin-bottom: .75rem; }
.label-title { font-size: var(--size-h3); margin-bottom: .75rem; }
.label-body h4 { font-size: .95rem; margin: 1rem 0 .3rem; color: var(--ink-soft); font-weight: 600; font-variation-settings: "wdth" 100; }
.label-body ul { list-style: none; margin: 0; padding: 0; }
.label-body li { display: flex; justify-content: space-between; gap: 1rem; padding: .25rem 0; }
.label-body li a { text-decoration: none; font-weight: 600; }
.label-body li a:hover { text-decoration: underline; }
.label-body li small { color: var(--ink-soft); text-align: right; }
.barcode { width: 100%; height: 40px; margin-top: 1rem; }
.barcode rect { fill: var(--ink); }

/* ---------------------------------------------------------------- hero */
.hero { position: relative; background: var(--green-dark); color: #fff; display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 6fr); grid-template-rows: auto auto; min-height: calc(100vh - 80px); }
.hero-text { padding: clamp(2rem, 6vw, 6rem) var(--gutter) clamp(2rem, 4vw, 4rem); display: flex; flex-direction: column; justify-content: center; max-width: 45rem; justify-self: end; width: 100%; }
.hero h1 { font-size: clamp(2.25rem, 1rem + 3.6vw, 4.25rem); letter-spacing: -0.03em; line-height: .98; }
.hero-lead { font-size: var(--size-statement); line-height: 1.35; max-width: 30em; margin: 1.5rem 0 2rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .75rem; }
.hero-media { position: relative; margin: 0; overflow: hidden; min-height: 50vh; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; object-position: 55% 40%; }
.hero-strip { grid-column: 1 / -1; list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); background: var(--green); color: #fff; }
.hero-strip li { display: flex; flex-direction: column; padding: 1.25rem var(--gutter); gap: .1rem; }
.hero-strip li + li { box-shadow: inset 6px 0 0 var(--green-dark); }
.hero-strip .num { font-size: clamp(1.75rem, 1rem + 2.5vw, 3rem); font-weight: 700; letter-spacing: -0.03em; line-height: 1; font-variation-settings: "wdth" 112; }
@media (max-width: 1023px) {
  .hero { grid-template-columns: 1fr; min-height: 0; }
  .hero-text { max-width: none; justify-self: stretch; padding-top: 3rem; }
  .hero-media { min-height: 60vw; }
  .hero-strip { grid-template-columns: repeat(2, 1fr); }
  .hero-strip li + li { box-shadow: none; }
  .hero-strip li:nth-child(even) { box-shadow: inset 6px 0 0 var(--green-dark); }
  .hero-strip li:nth-child(n+3) { border-top: 6px solid var(--green-dark); }
}

/* ---------------------------------------------------------------- messages */
.messages { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.25rem; }
.msg-featured { grid-column: 1 / -1; }
.msg a { display: grid; grid-template-columns: minmax(0, 1fr); align-content: start; text-decoration: none; background: var(--paper-2); height: 100%; }
.msg-featured a { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); align-items: center; }
.msg-featured h3 { font-size: var(--size-h2); margin-top: 1.5rem; }
.msg figure { margin: 0; overflow: hidden; background: var(--green-dark); width: 100%; min-width: 0; }
.msg img { width: 100%; height: auto; }
.msg-text { padding: 1.25rem 1.5rem 1.5rem; }
.msg img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.msg a:hover img { transform: scale(1.04); }
.msg h3 { margin: 0 0 .5rem; font-size: 1.5rem; }
.msg p { margin: 0 0 1rem; color: var(--ink-soft); }
.msg .link-more { display: block; }
@media (max-width: 1100px) { .msg a, .msg-featured a { grid-template-columns: 1fr; } }
@media (max-width: 600px) { .messages { grid-template-columns: minmax(0, 1fr); } }

/* ---------------------------------------------------------------- entries */
.entries { display: grid; grid-template-columns: repeat(12, 1fr); grid-auto-rows: minmax(16rem, 30vw); gap: 1rem; }
.entry { position: relative; display: block; overflow: hidden; background: var(--ink); color: #fff; text-decoration: none; }
.entry img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease); }
.entry:hover img { transform: scale(1.05); }
.entry::after { content: ""; position: absolute; inset: 0; background: rgba(20, 30, 25, .35); transition: background .4s; }
.entry:hover::after { background: rgba(9, 162, 74, .55); }
.entry-text { position: absolute; left: 1.5rem; bottom: 1.5rem; z-index: 2; display: flex; flex-direction: column; }
.entry-tag { font-weight: 500; font-size: 1rem; }
.entry-title { font-size: clamp(2rem, 1rem + 3.5vw, 4rem); font-weight: 700; letter-spacing: -0.03em; line-height: 1; font-variation-settings: "wdth" 112; }
.entry-1 { grid-column: span 7; }
.entry-2 { grid-column: span 5; }
.entry-3 { grid-column: span 5; }
.entry-4 { grid-column: span 7; }
@media (max-width: 900px) { .entries { grid-auto-rows: 52vw; } .entry { grid-column: span 12 !important; } }

/* ---------------------------------------------------------------- about / pillars */
.about-grid { display: grid; gap: 2.5rem 4rem; padding: 0 var(--gutter); grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); }
.about-grid h2 { grid-column: 1 / -1; }
.pillars { list-style: none; margin: 0; padding: 0; display: grid; gap: 1.5rem; grid-template-columns: repeat(2, 1fr); }
.pillars li { display: flex; flex-direction: column; gap: .75rem; font-weight: 600; font-size: 1.1rem; line-height: 1.25; }
.pillars img { width: 56px; height: 56px; object-fit: contain; filter: brightness(0) invert(1); }
.about-text { align-self: center; }
.about-text a { font-weight: 600; }
@media (max-width: 900px) { .about-grid { grid-template-columns: 1fr; } }

/* ---------------------------------------------------------------- live thing */
.live-grid { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 6fr); gap: 3rem; align-items: start; }
.live-text, .live-output { min-width: 0; }
.chips { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1.5rem; }
.chip { font: inherit; font-weight: 600; padding: .7em 1.1em; min-height: 44px; background: var(--paper-2); color: var(--ink); border: 0; cursor: pointer; transition: background .25s, color .25s, transform .25s; }
.chip:hover { background: var(--paper-3); }
.chip[aria-pressed="true"] { background: var(--green); color: #fff; }
.live-output { position: relative; min-height: 20rem; background: var(--paper-2); padding: 2rem; }
.live-hint { margin: 0; color: var(--ink-soft); }
.label-print { max-width: 32rem; margin: 0 auto; transform-origin: top center; }
.label-print.is-printing { animation: print .7s var(--ease); }
@keyframes print { from { clip-path: inset(0 0 100% 0); } to { clip-path: inset(0 0 0 0); } }
.label-print .btn { margin-top: 1rem; }
@media (max-width: 900px) { .live-grid { grid-template-columns: minmax(0, 1fr); gap: 1.5rem; } .live-output { padding: 1rem; } }

/* ---------------------------------------------------------------- products index */
.products-grid { display: grid; grid-template-columns: minmax(0, 8fr) minmax(0, 4fr); gap: 3rem; align-items: start; }
.plines { list-style: none; margin: 0; padding: 0; }
.pline { background: var(--paper); }
.pline + .pline { box-shadow: inset 0 6px 0 var(--paper-2); }
.pline-group h3 { margin: 2.5rem 0 .75rem; font-size: 1rem; color: var(--ink-soft); font-variation-settings: "wdth" 100; }
.pline-group:first-child h3 { margin-top: 0; }
.pline-head { display: flex; width: 100%; justify-content: space-between; align-items: baseline; gap: 1rem; padding: 1.1rem 0; text-decoration: none; background: none; border: 0; font: inherit; color: inherit; text-align: left; cursor: pointer; }
.pline-head:hover .pline-title { color: var(--green-deep); }
.pline-title { font-size: var(--size-h3); font-weight: 700; letter-spacing: -0.015em; font-variation-settings: "wdth" 108; }
.pline-count { font-variant-numeric: tabular-nums; color: var(--ink-soft); font-weight: 600; }
.pline-body { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 1.5rem; padding: 0 0 1.5rem; }
.pline-body figure { margin: 0; aspect-ratio: 4 / 3; overflow: hidden; background: var(--paper-2); }
.pline-body img { width: 100%; height: 100%; object-fit: cover; }
.pline-desc p { margin-bottom: 1rem; }
.pline-body { display: none; }
.pline.is-open .pline-body { display: grid; }
.pline.is-open .pline-head { color: var(--green-deep); }
@media (max-width: 900px) { .products-grid { grid-template-columns: 1fr; } .pline-body { grid-template-columns: 1fr; } }
.products-aside { position: sticky; top: 6rem; }
.products-aside .label { background: var(--paper-2); }
.products-aside h3 { font-size: 1rem; color: var(--ink-soft); margin: 1rem 0 .5rem; }
.products-aside h3:first-child { margin-top: 0; }

/* ---------------------------------------------------------------- references */
.split { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 3rem; padding: 0 var(--gutter); align-items: start; }
.refs { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.ref { display: flex; flex-direction: column; background: var(--paper); text-decoration: none; height: 100%; }
.ref figure { margin: 0; aspect-ratio: 1; display: grid; place-items: center; padding: 2rem; }
.ref img { max-height: 100%; object-fit: contain; }
.ref span { padding: 1rem 1.25rem 1.5rem; font-weight: 600; }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; } .refs { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .refs { grid-template-columns: 1fr; } }

/* ---------------------------------------------------------------- news */
.posts { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.post-card a { display: flex; flex-direction: column; text-decoration: none; height: 100%; }
.post-card figure { margin: 0 0 1rem; aspect-ratio: 3 / 2; overflow: hidden; background: var(--paper-2); }
.post-card img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.post-card a:hover img { transform: scale(1.04); }
.post-meta { color: var(--ink-soft); font-size: var(--size-small); margin-bottom: .4rem; }
.post-excerpt { color: var(--ink-soft); margin-bottom: .75rem; font-size: 1rem; }
.post-title { font-size: var(--size-h3); font-weight: 700; letter-spacing: -0.01em; line-height: 1.15; margin-bottom: .75rem; font-variation-settings: "wdth" 104; }
@media (max-width: 900px) { .posts { grid-template-columns: 1fr; } }

/* ---------------------------------------------------------------- group */
.group-grid { display: grid; gap: 2rem 4rem; padding: 0 var(--gutter); grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); align-items: center; }
.group-grid h2 { grid-column: 1; margin: 0; }
.group-logos { list-style: none; margin: 0; padding: 0; display: flex; gap: 1rem; grid-column: 2; grid-row: 1 / span 3; flex-direction: column; }
.group-logos li { background: #fff; padding: 1.5rem 2rem; }
.group-logos img { height: 44px; width: auto; }
@media (max-width: 900px) { .group-grid { grid-template-columns: 1fr; } .group-logos { grid-column: 1; grid-row: auto; flex-direction: row; flex-wrap: wrap; } }

/* ---------------------------------------------------------------- footer */
.site-footer { margin-top: var(--section); background: var(--ink); color: #fff; padding: 3rem var(--gutter) 2rem; }
.site-footer a { color: #fff; }
.site-footer a:hover { color: #9FE6BC; }
.footer-name { font-size: clamp(3rem, 1rem + 11vw, 11rem); font-weight: 700; letter-spacing: -0.04em; line-height: .9; font-variation-settings: "wdth" 112; color: var(--green); max-width: var(--max); margin: 0 auto 3rem; }
.footer-grid { display: grid; gap: 2rem; grid-template-columns: repeat(6, 1fr); max-width: var(--max); margin: 0 auto; }
.footer-col ul { list-style: none; margin: 0; padding: 0; }
.footer-col li { padding: .2rem 0; font-size: .95rem; }
.footer-col a { text-decoration: none; }
.footer-head { display: block; font-weight: 700; margin-bottom: .75rem; font-size: 1.05rem; }
.footer-contact p { font-size: .95rem; }
.social { list-style: none; margin: 1rem 0 0; padding: 0; display: flex; gap: 1rem; flex-wrap: wrap; }
.footer-group { max-width: var(--max); margin: 3rem auto 0; display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; font-size: .95rem; }
.footer-group span { font-weight: 700; color: var(--green); }
.footer-bottom { max-width: var(--max); margin: 1.5rem auto 0; display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; font-size: .9rem; color: #C9CED2; }
.footer-bottom a, .footer-bottom button { color: #C9CED2; }
@media (max-width: 1100px) { .footer-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 640px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-contact { grid-column: 1 / -1; } }

/* ---------------------------------------------------------------- forms */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.field { display: flex; flex-direction: column; gap: .35rem; }
.field-wide { grid-column: 1 / -1; }
.field label { font-weight: 600; font-size: .95rem; }
.req { color: var(--green-deep); }
.field input, .field select, .field textarea { font: inherit; padding: .8rem 1rem; border: 2px solid var(--paper-3); background: #fff; color: var(--ink); border-radius: 0; width: 100%; min-height: 48px; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--green); outline: none; }
.field.is-invalid input, .field.is-invalid select, .field.is-invalid textarea { border-color: #C62828; }
.field-error { color: #C62828; font-size: .9rem; font-weight: 600; }
.form-note { font-size: .9rem; color: var(--ink-soft); margin: 1rem 0; }
.form-actions { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; }
.form-status { font-weight: 600; }
.form.is-sending .btn { opacity: .6; pointer-events: none; }
.form-success { background: var(--paper-2); padding: 1.5rem; margin-top: 1rem; }
.form.is-sent .form-grid, .form.is-sent .form-note, .form.is-sent .form-actions { display: none; }
.hp { position: absolute; left: -9999px; }
.field-upload input[type="file"] { padding: .6rem; }
@media (max-width: 600px) { .form-grid { grid-template-columns: 1fr; } }

/* ---------------------------------------------------------------- modal */
.modal { position: fixed; inset: 0; z-index: 90; display: grid; place-items: center; padding: 1rem; }
.modal[hidden] { display: none; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(43, 47, 51, .7); }
.modal-dialog { position: relative; background: #fff; color: var(--ink); width: min(44rem, 100%); max-height: 100%; overflow: auto; padding: 2.5rem; box-shadow: 0 30px 60px rgba(0,0,0,.3); }
.modal-dialog h2 { font-size: var(--size-h3); font-size: 2rem; }
.modal-close { position: absolute; right: .75rem; top: .75rem; width: 44px; height: 44px; border: 0; background: var(--paper-2); cursor: pointer; }
.modal-close::before, .modal-close::after { content: ""; position: absolute; left: 50%; top: 50%; width: 20px; height: 3px; background: var(--ink); transform: translate(-50%,-50%) rotate(45deg); }
.modal-close::after { transform: translate(-50%,-50%) rotate(-45deg); }
body.modal-open { overflow: hidden; }
@media (max-width: 600px) { .modal { padding: 0; } .modal-dialog { padding: 3.5rem 1.25rem 2rem; } }

/* ---------------------------------------------------------------- cookie bar */
.cookie-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 80; background: var(--ink); color: #fff; padding: 1rem var(--gutter); }
.cookie-bar[hidden] { display: none; }
.cookie-inner { max-width: var(--max); margin: 0 auto; display: flex; gap: 1.5rem; align-items: center; flex-wrap: wrap; }
.cookie-inner p { margin: 0; flex: 1 1 30rem; font-size: .95rem; }
.cookie-inner a { color: #9FE6BC; }
.cookie-actions { display: flex; gap: .5rem; }

/* ---------------------------------------------------------------- motion */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }
.section-head h2, .section-head .statement, .hero-text > * { opacity: 0; transform: translateY(18px); animation: rise .7s var(--ease) forwards; }
.hero-text > *:nth-child(2) { animation-delay: .08s; }
.hero-text > *:nth-child(3) { animation-delay: .16s; }
.section-head .statement { animation-delay: .1s; }
@keyframes rise { to { opacity: 1; transform: none; } }
[data-parallax] img { will-change: transform; transform: translateY(var(--py, 0)) scale(1.1); }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal, .section-head h2, .section-head .statement, .hero-text > * { opacity: 1; transform: none; animation: none; transition: none; }
  [data-parallax] img { transform: none; }
  .label-print.is-printing { animation: none; }
  .msg img, .entry img, .post-card img, .btn { transition: none; }
  .entry:hover img, .msg a:hover img, .post-card a:hover img { transform: none; }
}
.no-js .reveal { opacity: 1; transform: none; }
