/* Derin Robotic - site styles, v2
   Direction (chosen by the client, reference: growtech-solution.webflow.io):
   white page, vivid leaf-green and black cards, fixed left sidebar, neutral Helvetica-style grotesk (Inter).
   Light theme only: the brand look is green on white.
   Shape rule: cards 18px; media inside cards 12px; chips 12px; number badges 8px; buttons and tags full pill. */

@font-face {
  font-family: "Inter";
  src: url("../fonts/inter-latin-wght-normal.woff2") format("woff2");
  font-weight: 100 900; font-style: normal; font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Inter";
  src: url("../fonts/inter-latin-ext-wght-normal.woff2") format("woff2");
  font-weight: 100 900; font-style: normal; font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* ---------- Tokens ---------- */
:root {
  color-scheme: light;
  --paper: #fcfcfb;
  --grey: #ededeb;
  --grey-2: #e2e3e0;
  --ink: #121412;
  --ink-2: #5b615c;
  --line: #d9dbd7;
  --green: #3f8034;          /* white text on it: 4.8:1 */
  --green-hover: #367029;
  --on-green: #ffffff;
  --on-dark: #f4f5f3;
  --accent-text: #3f8034;   /* accent used as text on light surfaces */
  --accent-on-dark: #8fd07f; /* accent used on black cards */

  --font: "Inter", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --r-card: 18px;
  --r-media: 12px;
  --r-badge: 8px;
  --gap: 16px;
  --pad: clamp(24px, 4vw, 56px);
  --sidebar-w: 300px;
  --ease: cubic-bezier(.16, 1, .3, 1);

  --z-bar: 100;
  --z-skip: 200;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 88px; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  background: var(--paper); color: var(--ink);
  font-family: var(--font); font-size: 1.0625rem; line-height: 1.55;
  font-feature-settings: "cv11", "ss01";
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
img, video, svg { display: block; max-width: 100%; }
img, video { height: auto; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 3px; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
a, button, summary { touch-action: manipulation; -webkit-tap-highlight-color: rgb(63 128 52 / .2); }
ul[role="list"], ol[role="list"] { list-style: none; padding: 0; }

h1, h2, h3 { font-weight: 500; text-wrap: balance; }
h1 { font-size: clamp(2.4rem, 1.4rem + 3.2vw, 4.3rem); line-height: 1.04; letter-spacing: -0.04em; }
h2 { font-size: clamp(1.8rem, 1.25rem + 1.8vw, 2.8rem); line-height: 1.08; letter-spacing: -0.035em; }
h3 { font-size: 1.25rem; line-height: 1.25; letter-spacing: -0.015em; font-weight: 600; }
p { max-width: 62ch; text-wrap: pretty; }
.lead { font-size: clamp(1.1rem, 1rem + .35vw, 1.3rem); line-height: 1.45; }
.muted { color: var(--ink-2); }
.hl { font-style: normal; color: var(--accent-text); }

:focus-visible { outline: 3px solid var(--accent-text); outline-offset: 3px; border-radius: 6px; }
.card--green :focus-visible { outline-color: var(--on-green); }
.card--black :focus-visible { outline-color: #ffffff; }

.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: 16px; top: -100px; z-index: var(--z-skip); background: var(--ink); color: var(--on-dark); padding: .6rem 1rem; border-radius: 999px; font-weight: 600; text-decoration: none; }
.skip-link:focus { top: 12px; }
.icon { width: 1.25em; height: 1.25em; flex: none; }

/* ---------- Shell: sidebar + content ---------- */
.shell { display: grid; grid-template-columns: var(--sidebar-w) minmax(0, 1fr); align-items: start; }
.content { padding: var(--gap) var(--gap) var(--gap) 0; display: grid; gap: var(--gap); min-width: 0; }
.content > main { display: grid; gap: var(--gap); min-width: 0; }

.sidebar {
  position: sticky; top: 0; height: 100dvh;
  display: grid; grid-template-rows: auto 1fr auto auto; grid-template-areas: "nav" "brand" "desc" "cta";
  justify-items: center; gap: 20px; padding: 22px 24px 28px;
}
.scroll-sentinel { position: absolute; top: 0; left: 0; width: 1px; height: 8px; pointer-events: none; }
.site-nav { grid-area: nav; justify-self: stretch; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 14px; }
.site-nav ul { display: flex; flex-wrap: wrap; gap: 6px 16px; list-style: none; padding: 0; }
.site-nav ul a { font-size: .9rem; font-weight: 500; text-decoration: none; color: var(--ink); padding-block: 4px; border-bottom: 2px solid transparent; transition: border-color .2s var(--ease), color .2s var(--ease); }
.site-nav ul a:hover { color: var(--accent-text); }
.site-nav ul a[aria-current="page"] { border-bottom-color: var(--accent-text); }
.lang { font-size: .8rem; font-weight: 600; letter-spacing: .02em; text-decoration: none; padding: .25rem .55rem; border: 1.5px solid var(--ink); border-radius: 999px; transition: background-color .2s, color .2s; }
.lang:hover { background: var(--ink); color: var(--on-dark); }

.brand { grid-area: brand; align-self: center; display: grid; justify-items: center; gap: 14px; text-decoration: none; text-align: center; }
.brand-word { font-size: 2.5rem; font-weight: 700; line-height: .95; letter-spacing: -0.055em; }
.brand-word span { display: block; }
.brand-mark { width: 30px; height: 30px; border-radius: var(--r-badge); background: var(--green); position: relative; }
.brand-mark::after { content: ""; position: absolute; inset: 9px; border-radius: 3px; background: var(--paper); }
.sidebar-desc { grid-area: desc; font-size: .88rem; line-height: 1.45; text-align: center; color: var(--ink-2); max-width: 24ch; }
.sidebar-cta { grid-area: cta; }
.menu-toggle { display: none; }

/* ---------- Buttons, tags, chips, badges ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  padding: .85rem 1.4rem; border-radius: 999px; border: 1.5px solid transparent;
  font-weight: 600; font-size: 1rem; line-height: 1.2; white-space: nowrap; text-decoration: none;
  transition: background-color .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease), transform .25s var(--ease);
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: scale(.98); }
.btn--dark { background: var(--ink); color: var(--on-dark); }
.btn--dark:hover { background: var(--green); }
.btn--green { background: var(--green); color: var(--on-green); }
.btn--green:hover { background: var(--green-hover); }
.btn--light { background: #ffffff; color: var(--ink); }
.btn--light:hover { background: var(--grey); }
.btn--line-light { border-color: rgb(255 255 255 / .75); color: #ffffff; }
.btn--line-light:hover { background: rgb(255 255 255 / .12); border-color: #ffffff; }
.btn--line { border-color: var(--ink); color: var(--ink); }
.btn--line:hover { background: var(--ink); color: var(--on-dark); }
.btn--sm { padding: .62rem 1.1rem; font-size: .95rem; }
.btn .icon { transition: transform .25s var(--ease); }
.btn:hover .icon--arrow-right { transform: translateX(3px); }
.btn:hover .icon--arrow-up-right { transform: translate(2px, -2px); }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }

.tag { display: inline-flex; align-items: center; gap: .35rem; width: fit-content; padding: .3rem .75rem; border-radius: 999px; font-size: .85rem; font-weight: 500; border: 1.5px solid currentColor; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; }

.chips { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; list-style: none; padding: 0; }
.chip { background: var(--paper); color: var(--ink); border-radius: 12px; padding: 14px 16px 16px; display: grid; gap: 2px; align-content: start; font-size: .92rem; line-height: 1.35; }
.chip strong { color: var(--accent-text); font-size: clamp(1.25rem, 1rem + .8vw, 1.6rem); font-weight: 600; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
@media (max-width: 759px) { .chips { grid-template-columns: 1fr 1fr; } }

.num { display: inline-grid; place-items: center; min-width: 32px; height: 32px; padding: 0 6px; border-radius: var(--r-badge); background: var(--green); color: var(--on-green); font-size: .85rem; font-weight: 600; font-variant-numeric: tabular-nums; }

/* ---------- Cards ---------- */
.card { border-radius: var(--r-card); padding: var(--pad); min-width: 0; }
.card--green { background: var(--green); color: var(--on-green); }
.card--black { background: var(--ink); color: var(--on-dark); }
.card--grey { background: var(--grey); }
.card--green .hl { color: var(--ink); }
.card--black .hl { color: var(--accent-on-dark); }
.card-head { display: grid; gap: 14px; margin-bottom: clamp(24px, 3.5vw, 44px); max-width: 760px; }
.card-head--center { margin-inline: auto; text-align: center; justify-items: center; }
.card--grey .card-head .lead { color: var(--ink-2); }
.media { border-radius: var(--r-media); overflow: hidden; background: var(--grey-2); }
.media img, .media video { width: 100%; height: 100%; object-fit: cover; }
figcaption { margin-top: 10px; font-size: .9rem; opacity: .85; }

.stack { display: grid; gap: var(--gap); }
.stack > .block { padding-bottom: clamp(16px, 3vw, 40px); }

/* statement block on white */
.block { padding: clamp(40px, 7vw, 96px) clamp(8px, 3vw, 40px); }
.statement { font-size: clamp(1.9rem, 1.2rem + 2.5vw, 3.4rem); line-height: 1.1; letter-spacing: -0.04em; font-weight: 500; text-align: center; max-width: 24ch; margin-inline: auto; }
.block > .lead { text-align: center; margin: 20px auto 0; color: var(--ink-2); }
.block > .products, .block > .gallery, .block > .pills { margin-top: clamp(32px, 5vw, 60px); }
.block > .pills { justify-content: center; }

/* ---------- Hero ---------- */
.hero { display: grid; gap: clamp(28px, 4vw, 48px); padding: clamp(14px, 1.6vw, 20px); }
.hero-body { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(24px, 4vw, 56px); align-items: center; padding: 0 clamp(12px, 3vw, 40px) clamp(12px, 3vw, 40px); }
.hero--plain .hero-body { padding-top: clamp(12px, 3vw, 40px); }
.hero-copy { display: grid; gap: 22px; align-content: center; justify-items: start; }
.hero-copy .lead { max-width: 36ch; }
.hero-media { border-radius: var(--r-media); overflow: hidden; background: rgb(0 0 0 / .15); }
.hero-media img { width: 100%; height: min(62dvh, 560px); object-fit: cover; }
.hero-media--landscape img { height: auto; aspect-ratio: 4 / 3; }
@media (max-width: 959px) {
  .hero-body { grid-template-columns: 1fr; }
  .hero-media img { height: auto; aspect-ratio: 4 / 3.6; }
}
@media (prefers-reduced-motion: no-preference) {
  .hero .chip, .hero-copy > *, .hero-media { animation: rise .8s var(--ease) both; }
  .hero .chip:nth-child(2) { animation-delay: .05s; }
  .hero .chip:nth-child(3) { animation-delay: .1s; }
  .hero .chip:nth-child(4) { animation-delay: .15s; }
  .hero-copy > :nth-child(2) { animation-delay: .08s; }
  .hero-copy > :nth-child(3) { animation-delay: .16s; }
  .hero-copy > :nth-child(4) { animation-delay: .22s; }
  .hero-media { animation-delay: .12s; }
}
@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: no-preference) {
  .js [data-reveal] { opacity: 0; transform: translateY(18px); transition: opacity .7s var(--ease), transform .7s var(--ease); transition-delay: calc(var(--i, 0) * 70ms); }
  .js [data-reveal].is-in { opacity: 1; transform: none; }
}

/* ---------- Products ---------- */
.products { display: grid; grid-template-columns: 1fr 1fr; gap: var(--gap); }
.product { display: grid; grid-template-rows: auto auto auto 1fr auto; gap: 16px; padding: clamp(22px, 3vw, 36px); }
.product-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 16px; }
.product-head h3 { font-size: clamp(1.5rem, 1.2rem + .9vw, 2rem); font-weight: 500; letter-spacing: -0.03em; }
.product .media { aspect-ratio: 16 / 10; align-self: end; }
.product--robot .media img { object-position: 50% 60%; }
.product--proport .media { background: #1c1f1e; }
@media (max-width: 959px) { .products { grid-template-columns: 1fr; } }

/* ---------- Issues (2x2) ---------- */
.issues { display: grid; grid-template-columns: 1fr 1fr; gap: var(--gap); list-style: none; padding: 0; }
.issue { background: var(--paper); border-radius: 14px; padding: 22px; display: grid; grid-template-rows: auto auto 1fr auto; gap: 12px; }
.issue-top { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.issue p { color: var(--ink-2); }
.issue .issue-answer { display: flex; gap: 10px; background: var(--green); color: var(--on-green); border-radius: var(--r-media); padding: 14px 16px; font-weight: 500; max-width: none; }
.issue-answer .icon { margin-top: .15em; }
@media (max-width: 759px) { .issues { grid-template-columns: 1fr; } }

/* ---------- Band ---------- */
.band { display: flex; align-items: center; gap: 18px; padding: clamp(22px, 3vw, 32px) var(--pad); }
.band .icon { width: 34px; height: 34px; color: var(--accent-on-dark); }
.band p { font-size: clamp(1.05rem, 1rem + .3vw, 1.2rem); font-weight: 500; max-width: 75ch; }

/* ---------- Split card (text | media) ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 4vw, 56px); align-items: start; }
.split-copy { display: grid; gap: 18px; align-content: start; }
.split--center { align-items: center; }
@media (max-width: 959px) { .split { grid-template-columns: 1fr; } }

.cap-list { display: grid; grid-template-columns: 1fr 1fr; gap: 26px 28px; list-style: none; padding: 0; }
.split-copy figure { margin-top: 10px; }
.cap { display: grid; gap: 6px; align-content: start; }
.cap .icon { width: 40px; height: 40px; padding: 9px; border-radius: var(--r-badge); background: var(--on-green); color: var(--green); margin-bottom: 6px; }
.cap p { font-size: .98rem; }
@media (max-width: 559px) { .cap-list { grid-template-columns: 1fr; } }

/* ---------- CTA ---------- */
.cta { text-align: center; display: grid; justify-items: center; gap: 18px; padding-block: clamp(48px, 7vw, 88px); }
.cta h2 { max-width: 22ch; }
.card--grey.cta p { color: var(--ink-2); }

/* ---------- Steps ---------- */
.steps { list-style: none; padding: 0; display: grid; gap: 12px; }
.step { display: grid; grid-template-columns: auto 1fr; gap: 4px 14px; background: rgb(255 255 255 / .12); border-radius: 14px; padding: 18px; }
.step .icon { grid-row: span 2; width: 40px; height: 40px; padding: 9px; border-radius: var(--r-badge); background: var(--on-green); color: var(--green); }

/* ---------- Numbered feature rows ---------- */
.feature-cols { display: grid; grid-template-columns: 1fr 1fr; gap: var(--gap); }
.feature-col h3 { margin-bottom: 14px; }
.rows { list-style: none; padding: 0; display: grid; gap: 10px; }
.row { display: flex; align-items: center; justify-content: space-between; gap: 16px; background: var(--paper); border-radius: 12px; padding: 14px 14px 14px 18px; font-weight: 500; }
@media (max-width: 759px) { .feature-cols { grid-template-columns: 1fr; } }

/* ---------- Modules bento ---------- */
.modules { display: grid; grid-template-columns: 1.2fr 1fr; grid-template-rows: auto auto; gap: var(--gap); }
.module { display: grid; gap: 14px; align-content: start; padding: clamp(18px, 2.4vw, 26px); }
.module--main { grid-row: span 2; }
.module--main .media img { aspect-ratio: 1 / 1; object-position: 50% 45%; }
.module--soil { align-content: space-between; }
.module--soil .icon { width: 44px; height: 44px; padding: 10px; border-radius: var(--r-badge); background: var(--on-green); color: var(--green); }
.module--frame { grid-template-columns: 180px 1fr; align-items: center; }
.module--frame .media img { aspect-ratio: 1 / 1; }
.card--grey.module p { color: var(--ink-2); }
@media (max-width: 959px) { .modules { grid-template-columns: 1fr; } .module--main { grid-row: auto; } .module--main .media img { aspect-ratio: 4 / 3.2; } }
@media (max-width: 519px) { .module--frame { grid-template-columns: 1fr; } }

/* ---------- Specs ---------- */
.spec-chips .chip strong { font-size: clamp(1.4rem, 1.1rem + 1vw, 2rem); }
.specs-more { margin-top: 22px; border-top: 1px solid rgb(255 255 255 / .4); }
.specs-more summary { display: inline-flex; align-items: center; gap: .55rem; cursor: pointer; list-style: none; font-weight: 600; padding: 20px 0 6px; }
.specs-more summary::-webkit-details-marker { display: none; }
.specs-more summary .icon { transition: transform .3s var(--ease); }
.specs-more[open] summary .icon { transform: rotate(45deg); }
.spec-groups { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; padding-top: 18px; }
.spec-group h3 { font-size: 1rem; margin-bottom: 12px; }
.spec-group dl { display: grid; gap: 14px; }
.spec-group dt { font-weight: 600; }
.spec-group dd { font-size: .97rem; }
@media (max-width: 959px) { .spec-groups { grid-template-columns: 1fr; } }

/* ---------- Pills ---------- */
.pills { display: flex; flex-wrap: wrap; gap: 10px; list-style: none; padding: 0; }
.pill { display: inline-flex; align-items: center; gap: .55rem; padding: .7rem 1.1rem; border-radius: 999px; background: var(--paper); font-weight: 500; }
.block .pill { background: var(--grey); }
.pill .icon { color: var(--accent-text); }

/* ---------- Gallery ---------- */
.gallery { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--gap); }
.gallery .media { aspect-ratio: 4 / 3; }
.gallery figcaption { color: var(--ink-2); opacity: 1; }
.gallery video { background: #101412; object-fit: contain; }
@media (max-width: 959px) { .gallery { grid-template-columns: 1fr 1fr; } }
@media (max-width: 519px) { .gallery { grid-template-columns: 1fr; } }

/* ---------- Facts ---------- */
.facts dl { display: grid; gap: 16px; background: var(--paper); color: var(--ink); border-radius: 14px; padding: clamp(20px, 3vw, 30px); }
.card--black .facts dl { background: rgb(255 255 255 / .07); color: var(--on-dark); }
.facts dt { font-size: .9rem; color: var(--ink-2); }
.card--black .facts dt { color: #b7bdb8; }
.facts dd { font-weight: 600; }

/* ---------- Proport flow ---------- */
.flow { display: grid; grid-template-columns: 1fr auto 1fr auto 1fr; gap: 18px; align-items: start; list-style: none; padding: 0; }
.flow-item { display: grid; gap: 10px; align-content: start; }
.flow-item .icon { width: 46px; height: 46px; padding: 11px; border-radius: var(--r-badge); background: var(--on-green); color: var(--green); }
.flow-arrow { padding-top: 12px; }
.flow-arrow .icon { width: 26px; height: 26px; }
@media (max-width: 959px) { .flow { grid-template-columns: 1fr; gap: 14px; } .flow-arrow { padding: 0 0 0 10px; } .flow-arrow .icon { transform: rotate(90deg); } }

.reliability { display: grid; gap: 10px; list-style: none; padding: 0; }
.reliability li { display: flex; gap: 14px; align-items: flex-start; background: var(--paper); border-radius: 12px; padding: 16px 18px; }
.reliability .icon { width: 26px; height: 26px; color: var(--accent-text); }

/* ---------- About ---------- */
.prose { display: grid; gap: 16px; max-width: 62ch; margin: 28px auto 0; text-align: center; }
.prose p { color: var(--ink-2); margin-inline: auto; }
.principles { list-style: none; padding: 0; display: grid; gap: 10px; }
.principle { display: grid; grid-template-columns: auto minmax(160px, .7fr) 2fr; gap: 10px 28px; align-items: start; background: var(--paper); border-radius: 14px; padding: 22px; }
.principle p { color: var(--ink-2); }
@media (max-width: 659px) { .principle { grid-template-columns: auto 1fr; } .principle p { grid-column: 1 / -1; } }

.timeline { list-style: none; padding: 0; position: relative; display: grid; gap: 26px; }
.timeline::before { content: ""; position: absolute; left: 7px; top: 8px; bottom: 8px; width: 2px; background: rgb(255 255 255 / .45); }
.timeline li { position: relative; padding-left: 40px; display: grid; gap: 4px; }
.timeline li::before { content: ""; position: absolute; left: 0; top: 5px; width: 16px; height: 16px; border-radius: 999px; background: var(--green); border: 3px solid var(--on-green); }
.timeline time { font-weight: 700; font-variant-numeric: tabular-nums; }

/* ---------- Contact ---------- */
.contact-main { display: grid; gap: 22px; justify-items: start; }
.split--contact { grid-template-columns: 1.4fr .6fr; }
@media (max-width: 959px) { .split--contact { grid-template-columns: 1fr; } }
.email-big { font-size: clamp(1.35rem, .8rem + 1.9vw, 2.4rem); font-weight: 600; letter-spacing: -0.035em; line-height: 1.1; color: inherit; text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 6px; overflow-wrap: anywhere; }
.email-big:hover { text-decoration-thickness: 3px; }
.copy-row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; }
.copy-status { font-size: .95rem; min-height: 1.5em; }
.contact-info dl { display: grid; gap: 16px; }
.contact-info dt { font-size: .9rem; color: var(--ink-2); }
.contact-info dd { font-weight: 500; }

/* ---------- Footer ---------- */
.site-footer { display: grid; gap: 36px; padding: clamp(28px, 4vw, 44px); }
.footer-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 28px; }
.footer-title { font-size: .85rem; font-weight: 600; letter-spacing: .02em; margin-bottom: 12px; }
.footer-mail { font-size: clamp(1.2rem, 1rem + .6vw, 1.5rem); font-weight: 600; letter-spacing: -0.02em; }
.footer-links { list-style: none; padding: 0; display: grid; gap: 8px; }
.footer-links a, .footer-mail a { text-decoration: none; }
.footer-links a:hover, .footer-mail a:hover { text-decoration: underline; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 24px; padding-top: 20px; border-top: 1px solid rgb(255 255 255 / .4); font-size: .88rem; }
@media (max-width: 759px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-grid > :first-child { grid-column: 1 / -1; } }

/* ---------- 404 ---------- */
.notfound { display: grid; gap: 20px; justify-items: start; padding-block: clamp(56px, 9vw, 120px); }

/* ---------- Mobile / tablet: sidebar becomes a top bar ---------- */
@media (max-width: 1099px) {
  .shell { grid-template-columns: 1fr; }
  .content { padding: 0 12px 12px; gap: 12px; }
  .content > main { gap: 12px; }
  .sidebar {
    z-index: var(--z-bar); height: auto;
    grid-template-columns: 1fr auto; grid-template-rows: auto; grid-template-areas: "brand toggle" "nav nav" "cta cta";
    justify-items: start; align-items: center; gap: 0 12px; padding: 10px 16px;
    background: color-mix(in srgb, var(--paper) 92%, transparent);
    -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
    border-bottom: 1px solid transparent; transition: border-color .3s var(--ease);
  }
  .sidebar.is-scrolled { border-bottom-color: var(--line); }
  .brand { grid-template-columns: auto auto; align-items: center; gap: 10px; justify-self: start; }
  .brand-mark { width: 24px; height: 24px; }
  .brand-mark::after { inset: 7px; }
  .brand-word { font-size: 1.15rem; line-height: 1; letter-spacing: -0.03em; }
  .brand-word span { display: inline; }
  .brand-word span + span::before { content: " "; }
  .sidebar-desc { display: none; }
  .menu-toggle { grid-area: toggle; display: inline-flex; width: 44px; height: 44px; align-items: center; justify-content: center; border-radius: 999px; margin-right: -8px; }
  .menu-toggle .icon { width: 26px; height: 26px; }
  .menu-toggle .icon--x { display: none; }
  .site-nav, .sidebar-cta { display: none; }
  .is-menu-open .menu-toggle .icon--list { display: none; }
  .is-menu-open .menu-toggle .icon--x { display: block; }
  .is-menu-open .site-nav { display: flex; flex-direction: column; align-items: stretch; padding: 14px 0 10px; }
  .is-menu-open .site-nav ul { flex-direction: column; gap: 0; }
  .is-menu-open .site-nav ul a { display: block; font-size: 1.25rem; padding: 12px 0; border-bottom: 1px solid var(--line); }
  .is-menu-open .site-nav ul a[aria-current="page"] { color: var(--accent-text); border-bottom-color: var(--line); }
  .is-menu-open .lang { align-self: flex-start; margin-top: 14px; font-size: .9rem; }
  .is-menu-open .sidebar-cta { display: inline-flex; justify-self: stretch; margin: 6px 0 14px; }
  .is-menu-open .sidebar { max-height: 100dvh; overflow-y: auto; overscroll-behavior: contain; }
}

/* ---------- Proport: use-case visuals, product family ---------- */
.usecases { display: grid; grid-template-columns: repeat(6, 1fr); gap: var(--gap); margin-top: clamp(32px, 5vw, 60px); }
.usecase { grid-column: span 2; }
.usecase:nth-child(-n+2) { grid-column: span 3; }
.usecase .media { aspect-ratio: 4 / 3; }
.usecase:nth-child(-n+2) .media { aspect-ratio: 16 / 10; }
.usecase figcaption { font-weight: 600; opacity: 1; }
.note { font-size: .88rem; color: var(--ink-2); text-align: center; margin: 16px auto 0; }
@media (max-width: 759px) {
  .usecases { grid-template-columns: 1fr 1fr; }
  .usecase, .usecase:nth-child(-n+2) { grid-column: span 1; }
  .usecase:first-child { grid-column: 1 / -1; }
}
.family { display: grid; grid-template-columns: 1fr 1fr; gap: var(--gap); }
.family-card { background: var(--paper); border-radius: 14px; padding: clamp(16px, 2vw, 22px); display: grid; gap: 14px; align-content: start; }
.family-card .media { aspect-ratio: 4 / 3; background: #f3f3f3; }
.family-card p { color: var(--ink-2); }
@media (max-width: 759px) { .family { grid-template-columns: 1fr; } }

/* ---------- Proport colour theme ----------
   Applied to the Proport page (on <body>) and to Proport cards elsewhere.
   Black and the champagne gold sampled from the Proport logo; dark text on gold (7.7:1),
   bronze for gold-tinted text on light surfaces (5.8:1). */
.theme-proport {
  --green: #c4a26a;
  --green-hover: #b08f58;
  --on-green: #121412;
  --accent-text: #7a5f34;
  --accent-on-dark: #c4a26a;
}
.theme-proport .tag { color: var(--accent-on-dark); }
.theme-proport .card--green .tag, .theme-proport .card--grey .tag, .theme-proport .family-card .tag { color: var(--accent-text); }
.theme-proport .card--green .tag { color: var(--on-green); }
.theme-proport .card--green .btn--line-light { border-color: rgb(18 20 18 / .55); color: var(--on-green); }
.theme-proport .card--green .btn--line-light:hover { background: rgb(18 20 18 / .08); border-color: var(--on-green); }
.theme-proport .card--green .btn--light { background: var(--ink); color: var(--on-dark); }
.theme-proport .card--green .btn--light:hover { background: #2a2d2a; }
.theme-proport .btn--dark:hover { background: var(--accent-text); }
.theme-proport .num { background: var(--ink); color: var(--green); }
.theme-proport .footer-bottom { border-top-color: rgb(18 20 18 / .25); }
.theme-proport .card--green :focus-visible { outline-color: var(--ink); }

/* Wide visual between sections (robot page) */
.wide-figure .media { aspect-ratio: 16 / 8; }
.wide-figure .media img { object-position: 50% 55%; }
.wide-figure figcaption { color: var(--ink-2); opacity: 1; }
@media (max-width: 759px) { .wide-figure .media { aspect-ratio: 4 / 3; } }
.card--grey figure figcaption { color: var(--ink-2); opacity: 1; }
