/* Kando Ressources SA — corporate site stylesheet
   Institutional, photo-led, single light theme. Serif headlines (Newsreader), Public Sans body, Plex Mono data. */

:root {
  --paper: #F4F2ED;
  --white: #FFFFFF;
  --ink: #17191C;
  --ink-2: #474B52;
  --ink-3: #767B84;
  --line: #DAD6CD;
  --line-2: #ECE9E2;
  --copper: #9A4B1E;
  --copper-soft: #F3E6DB;
  --malachite: #2E5E4E;
  --malachite-soft: #E2ECE7;
  --slate: #23272D;
  --ok: #1E7F48;
  --warn: #8F6210;
  --bad: #B3261E;
  --font-display: "Newsreader", Georgia, "Times New Roman", serif;
  --font-body: "Public Sans", "Segoe UI", Helvetica, Arial, sans-serif;
  --font-mono: "IBM Plex Mono", Consolas, monospace;
  --wrap: 1200px;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; animation: none !important; } }

body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--font-body); font-size: 16px; line-height: 1.6; }
img { max-width: 100%; display: block; }
a { color: var(--copper); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
:focus-visible { outline: 2px solid var(--copper); outline-offset: 3px; }

h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 500; line-height: 1.12; margin: 0; letter-spacing: -0.005em; text-wrap: balance; }
h1 { font-size: clamp(2.2rem, 4.5vw, 3.6rem); }
h2 { font-size: clamp(1.7rem, 2.8vw, 2.4rem); }
h3 { font-size: 1.3rem; }
h4 { font-size: 1.05rem; font-family: var(--font-body); font-weight: 700; }
p { margin: 0; }
p + p { margin-top: .9em; }
.lead { font-size: 1.15rem; color: var(--ink-2); max-width: 62ch; }
.measure { max-width: 66ch; }
.eyebrow { font-family: var(--font-mono); font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: var(--copper); margin: 0 0 .9rem; }
.mono { font-family: var(--font-mono); font-variant-numeric: tabular-nums; }
.wrap { max-width: var(--wrap); margin-inline: auto; padding-inline: clamp(16px, 4vw, 40px); }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: var(--white); padding: .5rem .8rem; z-index: 200; }
.skip:focus { left: 16px; }

/* demonstrator bar */
.ikbar { background: #F7E7DE; color: #17191C; border-bottom: 1px solid var(--line); padding: .45rem clamp(16px, 4vw, 40px); font-size: .8rem; display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.ikbar strong { color: #A84E27; }
.ikbar a { color: var(--ink-2); text-decoration: underline; }

/* utility bar + header */
.util { background: var(--slate); color: #C9CDD3; font-size: .78rem; }
.util .wrap { display: flex; justify-content: space-between; align-items: center; min-height: 34px; gap: 1rem; flex-wrap: wrap; }
.util a { color: #E6E8EB; }
.util .lang a { font-family: var(--font-mono); letter-spacing: .08em; padding: .2rem .4rem; }
.util .lang a[aria-current="true"] { background: var(--white); color: var(--ink); }
.site-header { background: var(--white); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 50; }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 2rem; min-height: 76px; }
.brand { display: flex; align-items: center; gap: .8rem; color: var(--ink); text-decoration: none; }
.brand:hover { text-decoration: none; }
.brand .mark { width: 40px; height: 40px; background: var(--copper); position: relative; flex: none; }
.brand .mark::after { content: ""; position: absolute; left: 8px; top: 8px; width: 24px; height: 24px; border: 3px solid var(--paper); border-right-color: transparent; border-bottom-color: transparent; transform: rotate(45deg); }
.brand b { font-family: var(--font-display); font-weight: 500; font-size: 1.35rem; display: block; line-height: 1; }
.brand small { font-family: var(--font-mono); font-size: .62rem; letter-spacing: .18em; text-transform: uppercase; color: var(--ink-3); display: block; margin-top: .3rem; }
.nav { display: flex; gap: 1.6rem; align-items: center; }
.nav a { color: var(--ink-2); font-weight: 500; font-size: .95rem; padding: .4rem 0; border-bottom: 2px solid transparent; white-space: nowrap; }
.nav a:hover { color: var(--ink); text-decoration: none; }
.nav a[aria-current="page"] { color: var(--ink); border-bottom-color: var(--copper); }
.navtoggle { display: none; font: inherit; background: none; border: 1px solid var(--line); padding: .5rem .8rem; cursor: pointer; color: var(--ink); }
@media (max-width: 960px) {
  .navtoggle { display: inline-flex; align-items: center; gap: .5rem; }
  .nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: var(--white); border-bottom: 1px solid var(--line); flex-direction: column; align-items: stretch; gap: 0; padding: .5rem clamp(16px, 4vw, 40px) 1rem; }
  .nav.open { display: flex; }
  .nav a { padding: .8rem 0; border-bottom: 1px solid var(--line-2); }
  .nav a[aria-current="page"] { border-bottom-color: var(--copper); }
}

/* buttons */
.btn { display: inline-flex; align-items: center; gap: .5rem; font: inherit; font-weight: 600; font-size: .92rem; padding: .8rem 1.3rem; border: 1px solid transparent; cursor: pointer; text-decoration: none; line-height: 1.2; }
.btn:hover { text-decoration: none; }
.btn-primary { background: var(--copper); color: var(--white); border-color: var(--copper); }
.btn-primary:hover { background: #7E3C16; }
.btn-dark { background: var(--ink); color: var(--white); }
.btn-outline { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn-outline.light { color: var(--white); border-color: rgba(255,255,255,.7); }
.btn-outline.light:hover { background: rgba(255,255,255,.12); }
.btn-ghost { background: transparent; color: var(--copper); border-color: var(--line); }
.btn-small { padding: .5rem .9rem; font-size: .82rem; }

/* hero */
.hero { position: relative; color: var(--white); min-height: 560px; display: grid; align-items: end; isolation: isolate; }
.hero img.bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.hero::before { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(20,22,26,.25) 0%, rgba(20,22,26,.55) 55%, rgba(20,22,26,.85) 100%); z-index: -1; }
.hero .wrap { padding-block: 3.5rem 2.5rem; display: grid; gap: 1.2rem; }
.hero h1 { max-width: 16ch; color: var(--white); }
.hero .lead { color: rgba(255,255,255,.85); }
.hero .cta { display: flex; gap: .8rem; flex-wrap: wrap; margin-top: .4rem; }
.hero .credit { position: absolute; right: 12px; bottom: 8px; font-size: .68rem; color: rgba(255,255,255,.6); }
.hero .credit a { color: inherit; }
.hero.short { min-height: 340px; }

/* key facts strip */
.facts { background: var(--slate); color: var(--white); }
.facts .wrap { display: grid; grid-template-columns: repeat(4, 1fr); }
.facts div { padding: 1.4rem 1.2rem 1.4rem 0; border-right: 1px solid rgba(255,255,255,.12); }
.facts div + div { padding-left: 1.4rem; }
.facts div:last-child { border-right: 0; }
.facts b { display: block; font-family: var(--font-mono); font-weight: 500; font-size: 1.8rem; font-variant-numeric: tabular-nums; letter-spacing: -.01em; }
.facts span { font-size: .82rem; color: #C9CDD3; }
.facts small { display: block; font-size: .7rem; color: #8B9199; margin-top: .2rem; }
@media (max-width: 860px) { .facts .wrap { grid-template-columns: 1fr 1fr; } .facts div:nth-child(2) { border-right: 0; } .facts div:nth-child(3) { padding-left: 0; } }
@media (max-width: 480px) { .facts .wrap { grid-template-columns: 1fr; } .facts div { border-right: 0; border-bottom: 1px solid rgba(255,255,255,.12); padding-left: 0; } }

/* sections */
section { padding-block: clamp(56px, 8vw, 96px); }
section.alt { background: var(--white); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
section.dark { background: var(--slate); color: var(--white); }
section.dark h2, section.dark h3 { color: var(--white); }
section.dark .lead, section.dark p { color: #C9CDD3; }
section.dark .eyebrow { color: #D9A27B; }
.section-head { display: grid; gap: .8rem; margin-bottom: 2.4rem; max-width: 70ch; }
.section-head.row { grid-template-columns: 1fr auto; align-items: end; max-width: none; }
@media (max-width: 640px) { .section-head.row { grid-template-columns: 1fr; } }

.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 2.5rem; align-items: start; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.6rem; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.6rem; }
@media (max-width: 960px) { .grid-3, .grid-4 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }

/* cards */
.card { background: var(--white); border: 1px solid var(--line); display: flex; flex-direction: column; }
.card .pic { aspect-ratio: 16 / 10; overflow: hidden; background: var(--line-2); }
.card .pic img { width: 100%; height: 100%; object-fit: cover; }
.card .body { padding: 1.3rem 1.4rem 1.5rem; display: grid; gap: .6rem; align-content: start; }
.card .body p { color: var(--ink-2); font-size: .95rem; }
.card .meta { font-family: var(--font-mono); font-size: .72rem; color: var(--ink-3); letter-spacing: .06em; text-transform: uppercase; }
.card .more { margin-top: auto; padding-top: .6rem; font-weight: 600; font-size: .9rem; }
.card.plain { background: transparent; border: 0; border-top: 2px solid var(--copper); }
.card.plain .body { padding: 1rem 0 0; }

/* commodity blocks */
.commodity { display: grid; grid-template-columns: 1fr 1fr; gap: 2.5rem; align-items: center; padding-block: 2.2rem; border-top: 1px solid var(--line); }
.commodity:first-of-type { border-top: 0; }
.commodity .pic { aspect-ratio: 4 / 3; overflow: hidden; background: var(--line-2); }
.commodity .pic img { width: 100%; height: 100%; object-fit: cover; }
.commodity dl { display: grid; grid-template-columns: 1fr 1fr; gap: .8rem 1.6rem; margin: 1.2rem 0 0; }
.commodity dt { font-family: var(--font-mono); font-size: .7rem; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); }
.commodity dd { margin: .15rem 0 0; font-weight: 600; font-variant-numeric: tabular-nums; }
@media (max-width: 860px) { .commodity { grid-template-columns: 1fr; } }

/* data tables */
.table-wrap { overflow-x: auto; background: var(--white); border: 1px solid var(--line); }
table { border-collapse: collapse; width: 100%; min-width: 640px; font-size: .95rem; }
th, td { text-align: left; padding: .8rem 1rem; border-bottom: 1px solid var(--line-2); vertical-align: top; }
th { font-family: var(--font-mono); font-size: .7rem; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); font-weight: 500; background: var(--paper); }
td.num, th.num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
td.num { font-family: var(--font-mono); }
tr:last-child td { border-bottom: 0; }
.note { font-size: .82rem; color: var(--ink-3); margin-top: .8rem; }

/* documents list */
.docs { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; border-top: 1px solid var(--line); }
.docs li { display: grid; grid-template-columns: 1fr auto; gap: 1rem; align-items: center; padding: .9rem 0; border-bottom: 1px solid var(--line); }
.docs li small { display: block; color: var(--ink-3); font-size: .82rem; font-family: var(--font-mono); }
.docs .btn { white-space: nowrap; }

/* timeline */
.timeline { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; }
.timeline li { display: grid; grid-template-columns: 96px 1fr; gap: 1.4rem; padding: 1.1rem 0; border-bottom: 1px solid var(--line); }
.timeline .y { font-family: var(--font-mono); font-size: .9rem; color: var(--copper); font-weight: 500; }
.timeline p { color: var(--ink-2); font-size: .95rem; }

/* people */
.people { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.6rem; }
.person { background: var(--white); border: 1px solid var(--line); padding: 1.4rem; display: grid; gap: .4rem; }
.person .init { width: 56px; height: 56px; background: var(--malachite-soft); color: var(--malachite); display: grid; place-items: center; font-family: var(--font-display); font-size: 1.3rem; margin-bottom: .4rem; }
.person b { font-size: 1.05rem; }
.person span { font-size: .85rem; color: var(--ink-3); }
.person p { font-size: .9rem; color: var(--ink-2); margin-top: .4rem; }
@media (max-width: 960px) { .people { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) { .people { grid-template-columns: 1fr; } }

/* news */
.filters { display: flex; gap: .8rem; flex-wrap: wrap; align-items: center; margin-bottom: 1.6rem; }
.filters input, .filters select { font: inherit; padding: .6rem .8rem; border: 1px solid var(--line); background: var(--white); color: var(--ink); min-width: 0; }
.filters input { flex: 1 1 240px; }
.news { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.news li { border-bottom: 1px solid var(--line); }
.news li[hidden] { display: none; }
.news details summary { list-style: none; cursor: pointer; display: grid; grid-template-columns: 110px 1fr auto; gap: 1.4rem; align-items: baseline; padding: 1.1rem 0; }
.news details summary::-webkit-details-marker { display: none; }
.news .d { font-family: var(--font-mono); font-size: .82rem; color: var(--ink-3); white-space: nowrap; }
.news .t { font-family: var(--font-display); font-size: 1.25rem; }
.news .c { font-family: var(--font-mono); font-size: .68rem; letter-spacing: .1em; text-transform: uppercase; color: var(--copper); border: 1px solid var(--copper-soft); background: var(--copper-soft); padding: .2rem .5rem; white-space: nowrap; }
.news .body { padding: 0 0 1.4rem 134px; color: var(--ink-2); max-width: 78ch; }
.news .body p + p { margin-top: .7em; }
@media (max-width: 720px) { .news details summary { grid-template-columns: 1fr; gap: .3rem; } .news .body { padding-left: 0; } }
.empty { color: var(--ink-3); padding: 2rem 0; }

/* jobs */
.jobs { list-style: none; margin: 0; padding: 0; display: grid; gap: .8rem; }
.jobs li { background: var(--white); border: 1px solid var(--line); padding: 1.1rem 1.3rem; display: grid; grid-template-columns: 1fr auto; gap: 1rem; align-items: center; }
.jobs li[hidden] { display: none; }
.jobs b { font-size: 1.05rem; display: block; }
.jobs small { color: var(--ink-3); font-family: var(--font-mono); font-size: .76rem; }
@media (max-width: 640px) { .jobs li { grid-template-columns: 1fr; } }

/* forms */
form.f { display: grid; gap: 1rem; background: var(--white); border: 1px solid var(--line); padding: 1.6rem; }
.field { display: grid; gap: .3rem; font-size: .88rem; font-weight: 600; }
.field small { font-weight: 400; color: var(--ink-3); }
.field input, .field select, .field textarea { font: inherit; padding: .7rem .8rem; border: 1px solid var(--line); background: var(--white); color: var(--ink); width: 100%; }
.field textarea { min-height: 120px; resize: vertical; }
.frow { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
@media (max-width: 640px) { .frow { grid-template-columns: 1fr; } }
.check { display: grid; grid-template-columns: auto 1fr; gap: .6rem; align-items: start; font-weight: 400; font-size: .88rem; }
.check input { width: auto; margin-top: .35rem; }
.ack { background: var(--malachite-soft); border-left: 3px solid var(--malachite); padding: .9rem 1rem; font-size: .92rem; }
.ack b { font-family: var(--font-mono); }

/* callouts */
.callout { background: var(--white); border: 1px solid var(--line); border-left: 4px solid var(--copper); padding: 1.3rem 1.5rem; display: grid; gap: .5rem; }
.callout.green { border-left-color: var(--malachite); }
.kpi-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.2rem; }
.kpi { background: var(--white); border: 1px solid var(--line); padding: 1.1rem 1.2rem; display: grid; gap: .2rem; }
.kpi b { font-family: var(--font-mono); font-weight: 500; font-size: 1.6rem; font-variant-numeric: tabular-nums; }
.kpi span { font-size: .82rem; color: var(--ink-2); }
.kpi small { font-size: .72rem; color: var(--ink-3); }
@media (max-width: 960px) { .kpi-row { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .kpi-row { grid-template-columns: 1fr; } }
.contacts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.6rem; }
.contacts div { background: var(--white); border: 1px solid var(--line); padding: 1.3rem; display: grid; gap: .3rem; font-size: .95rem; }
.contacts b { font-family: var(--font-display); font-size: 1.15rem; font-weight: 500; }
.contacts span { color: var(--ink-2); }
@media (max-width: 860px) { .contacts { grid-template-columns: 1fr; } }
.photo-band { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 1rem; }
.photo-band figure { margin: 0; position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: var(--line-2); }
.photo-band img { width: 100%; height: 100%; object-fit: cover; }
.photo-band figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: 1.4rem 1rem .8rem; background: linear-gradient(transparent, rgba(20,22,26,.85)); color: var(--white); font-size: .85rem; }
@media (max-width: 860px) { .photo-band { grid-template-columns: 1fr 1fr; } .photo-band figure:first-child { grid-column: 1 / -1; aspect-ratio: 16 / 9; } }
@media (max-width: 480px) { .photo-band { grid-template-columns: 1fr; } }
.map { position: relative; background: var(--malachite-soft); aspect-ratio: 4 / 3; border: 1px solid var(--line); overflow: hidden; }
.map svg { width: 100%; height: 100%; display: block; }
.legend { font-size: .82rem; color: var(--ink-2); display: flex; gap: 1.2rem; flex-wrap: wrap; margin-top: .6rem; }
.legend i { display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin-right: .35rem; vertical-align: middle; }

/* footer */
footer { background: var(--slate); color: #C9CDD3; padding-block: 3.5rem 1.6rem; font-size: .9rem; }
footer a { color: #E6E8EB; }
.fgrid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 2.4rem; margin-bottom: 2.4rem; }
.fgrid h4 { color: var(--white); font-family: var(--font-body); font-size: .8rem; letter-spacing: .1em; text-transform: uppercase; margin-bottom: .9rem; }
.fgrid ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .4rem; }
.fgrid p { color: #A9AEB6; }
.fbottom { border-top: 1px solid rgba(255,255,255,.12); padding-top: 1.2rem; display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; font-size: .8rem; color: #8B9199; }
.credits { font-size: .72rem; color: #8B9199; margin-top: 1rem; line-height: 1.6; }
.credits a { color: #A9AEB6; }
@media (max-width: 960px) { .fgrid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .fgrid { grid-template-columns: 1fr; } }

/* modal + toast */
.overlay { position: fixed; inset: 0; background: rgba(23,25,28,.6); display: grid; place-items: center; padding: 16px; z-index: 300; }
.dialog { background: var(--white); max-width: 480px; width: 100%; padding: 1.6rem; display: grid; gap: .8rem; }
.dialog h3 { font-size: 1.3rem; }
.dialog p { color: var(--ink-2); font-size: .92rem; }
.dialog .actions { display: flex; justify-content: flex-end; gap: .6rem; }
.toast { position: fixed; left: 50%; bottom: 20px; transform: translateX(-50%); background: var(--ink); color: var(--white); padding: .7rem 1.1rem; font-size: .9rem; z-index: 310; max-width: 90vw; text-align: center; }
