/* ==========================================================================
   Tank Manco B.V. — Design system
   "Harbour" palette: deep teal primary (--red holds the primary colour for
   legacy reasons), amber / sea green / harbour blue accents, deep navy ink.
   ========================================================================== */

:root {
  --red: #01695F;
  --red-dark: #014F47;
  --orange: #C9821A;
  --yellow: #F2C14E;
  --green: #23866A;
  --blue: #2B6CB0;
  --violet: #3E4C9B;

  --navy: #0b1f33;
  --navy-2: #13304d;
  --ink: #14212e;
  --text: #374649;
  --muted: #5f6b73;
  --line: #e3e8ec;
  --bg: #ffffff;
  --bg-alt: #f4f6f8;
  --bg-warm: #E9F5F3;

  --energy: linear-gradient(90deg, var(--red) 0%, var(--green) 30%, var(--blue) 65%, var(--orange) 100%);

  --font: "Nunito Sans", "Segoe UI", system-ui, -apple-system, sans-serif;
  --radius: 4px;
  --radius-lg: 12px;
  --shadow: 0 1px 2px rgba(11, 31, 51, .06), 0 8px 24px rgba(11, 31, 51, .06);
  --shadow-lg: 0 20px 48px rgba(11, 31, 51, .12);
  --container: 1240px;
  --gutter: clamp(16px, 4vw, 40px);
  --header-h: 118px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 72px); }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
p { margin: 0 0 1em; }
ul, ol { margin: 0; padding: 0; }
h1, h2, h3, h4 { color: var(--ink); margin: 0 0 .5em; line-height: 1.15; font-weight: 800; letter-spacing: -.01em; }
h1 { font-size: clamp(2.3rem, 5.2vw, 4rem); letter-spacing: -.025em; }
h2 { font-size: clamp(1.8rem, 3.4vw, 2.75rem); letter-spacing: -.02em; }
h3 { font-size: 1.3rem; }
h4 { font-size: 1.05rem; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); }
.skip-link { position: absolute; left: -999px; top: 8px; background: var(--ink); color: #fff; padding: 10px 16px; z-index: 999; }
.skip-link:focus { left: 8px; }

/* ---------- Utilities ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: .8rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase;
  color: var(--red); margin-bottom: 18px;
}

.eyebrow.light { color: #fff; }
.eyebrow.light::before { background: var(--energy); }
.lead { font-size: clamp(1.1rem, 1.6vw, 1.3rem); line-height: 1.6; color: var(--text); }
.muted { color: var(--muted); }
.energy-bar { height: 4px; background: var(--energy); }
.section { padding: clamp(64px, 9vw, 120px) 0; }
.section.alt { background: var(--bg-alt); }
.section.tight { padding: clamp(48px, 6vw, 80px) 0; }
.section-head { max-width: 760px; margin-bottom: clamp(36px, 5vw, 60px); }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head.center .eyebrow { justify-content: center; }
.section-head-row { display: flex; justify-content: space-between; align-items: end; gap: 24px; flex-wrap: wrap; margin-bottom: clamp(36px, 5vw, 60px); }
.section-head-row .section-head { margin-bottom: 0; }

/* ---------- Buttons & links ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 15px 26px; border-radius: var(--radius); border: 2px solid transparent;
  font: inherit; font-weight: 800; font-size: .95rem; cursor: pointer;
  transition: background .2s, color .2s, border-color .2s, transform .2s;
}
.btn svg { width: 18px; height: 18px; transition: transform .2s; }
.btn:hover svg { transform: translateX(4px); }
.btn-primary { background: var(--red); color: #fff; }
.btn-primary:hover { background: var(--red-dark); }
.btn-outline { border-color: var(--ink); color: var(--ink); }
.btn-outline:hover { background: var(--ink); color: #fff; }
.btn-light { background: #fff; color: var(--ink); }
.btn-light:hover { background: var(--bg-alt); }
.btn-ghost-light { border-color: rgba(255,255,255,.6); color: #fff; }
.btn-ghost-light:hover { background: #fff; color: var(--ink); }
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; }

.link-arrow { display: inline-flex; align-items: center; gap: 8px; font-weight: 800; color: var(--red); }
.link-arrow svg { width: 18px; height: 18px; transition: transform .2s; }
.link-arrow:hover svg { transform: translateX(4px); }

/* ---------- Page hero (inner pages) ---------- */
.page-hero { position: relative; background: var(--navy); color: #fff; overflow: hidden; }
.page-hero::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(800px 400px at 90% 0%, rgba(40,90,255,.35), transparent 60%),
              radial-gradient(600px 400px at 0% 100%, rgba(1,105,95,.25), transparent 60%);
}
.page-hero .container { position: relative; padding-top: clamp(56px, 8vw, 104px); padding-bottom: clamp(56px, 8vw, 104px); }
.page-hero h1 { color: #fff; max-width: 18ch; font-size: clamp(2.2rem, 4.6vw, 3.5rem); }
.page-hero .lead { color: rgba(255,255,255,.82); max-width: 62ch; margin: 0; }
.breadcrumb { display: flex; gap: 8px; font-size: .85rem; color: rgba(255,255,255,.65); margin-bottom: 22px; list-style: none; flex-wrap: wrap; }
.breadcrumb li + li::before { content: "/"; margin-right: 8px; opacity: .5; }
.breadcrumb a:hover { color: #fff; }

/* ---------- Grids & cards ---------- */
.grid { display: grid; gap: 24px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 1000px) { .grid-4 { grid-template-columns: repeat(2, 1fr); } .grid-3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 680px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }

.card {
  position: relative; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 32px; display: flex; flex-direction: column; transition: box-shadow .25s, transform .25s, border-color .25s;
}
.card h3 { margin-bottom: 10px; }
.card p { color: var(--muted); font-size: .98rem; }
.card .link-arrow { margin-top: auto; padding-top: 8px; }
a.card:hover, .card.hoverable:hover { box-shadow: var(--shadow-lg); transform: translateY(-4px); border-color: transparent; }
.card-top-bar::before { content: ""; position: absolute; top: -1px; left: 24px; right: 24px; height: 4px; background: var(--energy); border-radius: 0 0 4px 4px; opacity: 0; transition: opacity .25s; }
a.card-top-bar:hover::before { opacity: 1; }

.icon {
  width: 56px; height: 56px; border-radius: 12px; display: grid; place-items: center;
  background: var(--bg-warm); color: var(--red); margin-bottom: 24px; flex-shrink: 0;
}
.icon svg { width: 28px; height: 28px; }
.icon.blue { background: #EBF2FA; color: var(--blue); }
.icon.green { background: #E8F4EF; color: var(--green); }
.icon.orange { background: #FBF2E4; color: var(--orange); }
.icon.violet { background: #EDEFF8; color: var(--violet); }

.feature { display: flex; gap: 20px; }
.feature .icon { margin-bottom: 0; width: 48px; height: 48px; }
.feature .icon svg { width: 24px; height: 24px; }
.feature h4 { margin-bottom: 6px; }
.feature p { color: var(--muted); font-size: .96rem; margin: 0; }

/* ---------- Split layouts ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 6vw, 96px); align-items: center; }
.split.top { align-items: start; }
.split-60 { grid-template-columns: 1.2fr 1fr; }
@media (max-width: 900px) { .split, .split-60 { grid-template-columns: 1fr; } }

.check-list { list-style: none; display: grid; gap: 14px; margin: 24px 0; }
.check-list li { position: relative; padding-left: 34px; }
.check-list li::before {
  content: ""; position: absolute; left: 0; top: 4px; width: 20px; height: 20px; border-radius: 50%;
  background: var(--red) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5L20 7'/%3E%3C/svg%3E") center/12px no-repeat;
}
.check-list.two-col { grid-template-columns: 1fr 1fr; gap: 14px 32px; }
@media (max-width: 600px) { .check-list.two-col { grid-template-columns: 1fr; } }

/* ---------- Visual panels (image replacements) ---------- */
.visual {
  position: relative; border-radius: var(--radius-lg); overflow: hidden; min-height: 420px;
  background: linear-gradient(145deg, #0e2a47, #0b1f33); color: #fff; padding: 40px;
  display: flex; flex-direction: column; justify-content: flex-end;
}
.visual svg.bg { position: absolute; inset: 0; width: 100%; height: 100%; }
.visual > *:not(.bg) { position: relative; }
.visual .tag { display: inline-block; font-size: .75rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; background: rgba(255,255,255,.12); padding: 6px 12px; border-radius: 100px; margin-bottom: 14px; align-self: flex-start; }
.visual h3 { color: #fff; font-size: 1.6rem; max-width: 20ch; }
.visual p { color: rgba(255,255,255,.75); margin: 0; max-width: 42ch; }
.visual .energy-bar { position: absolute; left: 0; right: 0; bottom: 0; }

/* ---------- Stats ---------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); }
.stat { padding: 32px 24px 0 0; }
.stat + .stat { padding-left: 24px; border-left: 1px solid var(--line); }
.stat-value { font-size: clamp(2rem, 3.6vw, 3rem); font-weight: 900; color: var(--ink); line-height: 1; letter-spacing: -.02em; }
.stat-value .unit { color: var(--red); }
.stat-label { margin-top: 10px; color: var(--muted); font-size: .95rem; }
@media (max-width: 800px) {
  .stats { grid-template-columns: 1fr 1fr; }
  .stat:nth-child(3) { padding-left: 0; border-left: 0; }
}

/* ---------- Dark band ---------- */
.band-dark { background: var(--navy); color: rgba(255,255,255,.8); position: relative; overflow: hidden; }
.band-dark h2, .band-dark h3, .band-dark h4 { color: #fff; }
.band-dark .lead { color: rgba(255,255,255,.8); }
.band-dark .card { background: rgba(255,255,255,.04); border-color: rgba(255,255,255,.12); }
.band-dark .card p { color: rgba(255,255,255,.7); }
.band-dark .muted { color: rgba(255,255,255,.65); }

/* ---------- Process steps ---------- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; counter-reset: step; list-style: none; }
.steps li { counter-increment: step; padding-top: 28px; border-top: 3px solid var(--line); position: relative; }
.steps li::before {
  content: counter(step, decimal-leading-zero); display: block; font-weight: 900; font-size: .85rem;
  color: var(--red); letter-spacing: .1em; margin-bottom: 12px;
}
.steps li::after { content: ""; position: absolute; top: -3px; left: 0; width: 48px; height: 3px; background: var(--red); }
.steps h4 { margin-bottom: 8px; }
.steps p { color: var(--muted); font-size: .95rem; margin: 0; }
.band-dark .steps li { border-color: rgba(255,255,255,.15); }
.band-dark .steps p { color: rgba(255,255,255,.7); }
@media (max-width: 900px) { .steps { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .steps { grid-template-columns: 1fr; } }

/* ---------- Service detail blocks ---------- */
.service-block { display: grid; grid-template-columns: 340px 1fr; gap: clamp(32px, 5vw, 80px); padding: clamp(48px, 7vw, 88px) 0; border-top: 1px solid var(--line); }
.service-block:first-child { border-top: 0; padding-top: 0; }
.service-block .aside { position: sticky; top: calc(var(--header-h) + 88px); align-self: start; }
.service-block .aside .index { font-weight: 900; font-size: .85rem; letter-spacing: .14em; color: var(--red); display: block; margin-bottom: 12px; }
.service-block h2 { font-size: clamp(1.7rem, 3vw, 2.3rem); }
.sub-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 28px 40px; margin-top: 32px; }
.sub-grid h4 { display: flex; align-items: center; gap: 10px; }
.sub-grid h4::before { content: ""; width: 10px; height: 10px; background: var(--red); border-radius: 2px; flex-shrink: 0; }
.sub-grid p { color: var(--muted); font-size: .96rem; margin: 0; }
@media (max-width: 900px) {
  .service-block { grid-template-columns: 1fr; }
  .service-block .aside { position: static; }
}
@media (max-width: 600px) { .sub-grid { grid-template-columns: 1fr; } }

.sticky-subnav { position: sticky; top: var(--header-h); z-index: 50; background: #fff; border-bottom: 1px solid var(--line); }
.sticky-subnav ul { display: flex; gap: 8px; list-style: none; overflow-x: auto; scrollbar-width: none; }
.sticky-subnav a { display: block; padding: 18px 14px; font-weight: 700; font-size: .92rem; white-space: nowrap; color: var(--muted); border-bottom: 3px solid transparent; }
.sticky-subnav a:hover, .sticky-subnav a.active { color: var(--ink); border-color: var(--red); }

/* ---------- Quote / CTA ---------- */
.cta-band { position: relative; background: var(--red); color: #fff; overflow: hidden; }
.cta-band::after { content: ""; position: absolute; right: -10%; top: -60%; width: 60%; height: 220%; background: radial-gradient(circle, rgba(255,127,0,.55), transparent 60%); }
.cta-band .container { position: relative; z-index: 1; display: flex; justify-content: space-between; align-items: center; gap: 32px; flex-wrap: wrap; padding-top: clamp(48px, 7vw, 88px); padding-bottom: clamp(48px, 7vw, 88px); }
.cta-band h2 { color: #fff; margin-bottom: 10px; max-width: 22ch; }
.cta-band p { margin: 0; color: rgba(255,255,255,.88); max-width: 56ch; }

.quote { border-left: 4px solid var(--red); padding: 8px 0 8px 28px; margin: 0; }
.quote p { font-size: clamp(1.25rem, 2.2vw, 1.6rem); font-weight: 700; color: var(--ink); line-height: 1.45; }
.quote cite { font-style: normal; font-weight: 700; color: var(--muted); font-size: .92rem; }

/* ---------- Values / pillars ---------- */
.pillar { padding: 32px 0; border-top: 1px solid var(--line); display: grid; grid-template-columns: 80px 1fr 1.4fr; gap: 24px; align-items: start; }
.pillar:last-child { border-bottom: 1px solid var(--line); }
.pillar .letter { font-size: 2.6rem; font-weight: 900; line-height: 1; background: var(--energy); -webkit-background-clip: text; background-clip: text; color: transparent; }
.pillar h3 { margin: 6px 0 0; }
.pillar p { margin: 0; color: var(--muted); }
@media (max-width: 760px) { .pillar { grid-template-columns: 56px 1fr; } .pillar p { grid-column: 2; } }

/* ---------- Tag list ---------- */
.tags { display: flex; flex-wrap: wrap; gap: 10px; list-style: none; }
.tags li { border: 1px solid var(--line); border-radius: 100px; padding: 8px 16px; font-size: .9rem; font-weight: 700; color: var(--ink); background: #fff; }

/* ---------- DG class table ---------- */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius-lg); background: #fff; }
table { width: 100%; border-collapse: collapse; font-size: .95rem; min-width: 560px; }
th, td { text-align: left; padding: 16px 20px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { background: var(--bg-alt); color: var(--ink); font-weight: 800; font-size: .82rem; letter-spacing: .08em; text-transform: uppercase; }
tr:last-child td { border-bottom: 0; }
td strong { color: var(--ink); }
.pill { display: inline-block; padding: 3px 10px; border-radius: 100px; font-size: .78rem; font-weight: 800; }
.pill.yes { background: #E8F4EF; color: #1D6F57; }
.pill.ask { background: #FBF2E4; color: #9A6212; }

/* ---------- Accordion ---------- */
.accordion { border-top: 1px solid var(--line); }
.accordion details { border-bottom: 1px solid var(--line); }
.accordion summary {
  list-style: none; cursor: pointer; padding: 24px 48px 24px 0; position: relative;
  font-weight: 800; font-size: 1.1rem; color: var(--ink);
}
.accordion summary::-webkit-details-marker { display: none; }
.accordion summary::after {
  content: ""; position: absolute; right: 8px; top: 50%; width: 14px; height: 14px; margin-top: -7px;
  background: linear-gradient(var(--red), var(--red)) center/14px 2px no-repeat, linear-gradient(var(--red), var(--red)) center/2px 14px no-repeat;
  transition: transform .25s;
}
.accordion details[open] summary::after { transform: rotate(45deg); }
.accordion .content { padding: 0 0 24px; color: var(--muted); max-width: 72ch; }

/* ---------- Articles ---------- */
.article-card { overflow: hidden; padding: 0; }
.article-card .thumb { height: 180px; position: relative; overflow: hidden; }
.article-card .thumb svg { width: 100%; height: 100%; }
.article-card .thumb img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .6s ease; }
.article-card:hover .thumb img { transform: scale(1.04); }
.article-card .body { padding: 28px; display: flex; flex-direction: column; flex: 1; }
.meta { display: flex; gap: 12px; font-size: .8rem; font-weight: 700; color: var(--muted); letter-spacing: .04em; text-transform: uppercase; margin-bottom: 12px; }
.meta .cat { color: var(--red); }
.article { max-width: 760px; }
.article h2 { font-size: clamp(1.6rem, 2.8vw, 2.1rem); }
.article h3 { margin-top: 1.6em; }
.article ul { padding-left: 1.2em; margin-bottom: 1em; }
.article li { margin-bottom: .4em; }
.article-block { padding: clamp(48px, 7vw, 88px) 0; border-top: 1px solid var(--line); }
.article-block:first-of-type { border-top: 0; }

/* ---------- Forms ---------- */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.form-grid .full { grid-column: 1 / -1; }
@media (max-width: 600px) { .form-grid { grid-template-columns: 1fr; } }
label { display: block; font-weight: 700; font-size: .9rem; color: var(--ink); margin-bottom: 8px; }
label .req { color: var(--red); }
input, select, textarea {
  width: 100%; font: inherit; font-size: 1rem; color: var(--ink);
  padding: 14px 16px; border: 1px solid #cdd5dc; border-radius: var(--radius); background: #fff;
  transition: border-color .2s, box-shadow .2s;
}
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(40,90,255,.18); }
textarea { min-height: 140px; resize: vertical; }
.checkbox { display: flex; gap: 12px; align-items: flex-start; font-weight: 400; color: var(--muted); font-size: .9rem; }
.checkbox input { width: 18px; height: 18px; margin-top: 3px; flex-shrink: 0; accent-color: var(--red); }
.form-note { font-size: .85rem; color: var(--muted); }
.form-success { display: none; padding: 20px 24px; border-radius: var(--radius); background: #E8F4EF; color: #1e6b1b; font-weight: 700; margin-top: 20px; }
.form-success.show { display: block; }

.contact-card { background: var(--bg-alt); border-radius: var(--radius-lg); padding: 32px; }
.contact-item { display: flex; gap: 16px; padding: 20px 0; border-top: 1px solid var(--line); }
.contact-item:first-of-type { border-top: 0; padding-top: 0; }
.contact-item .icon { width: 44px; height: 44px; margin: 0; }
.contact-item .icon svg { width: 22px; height: 22px; }
.contact-item h4 { margin-bottom: 4px; font-size: .85rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.contact-item p, .contact-item a { margin: 0; color: var(--ink); font-weight: 700; }
.contact-item a:hover { color: var(--red); }
.emergency-card { background: var(--red); color: #fff; border-radius: var(--radius-lg); padding: 28px 32px; margin-top: 24px; }
.emergency-card h3 { color: #fff; font-size: 1.1rem; margin-bottom: 6px; }
.emergency-card p { margin: 0; color: rgba(255,255,255,.9); font-size: .95rem; }
.emergency-card a { font-size: 1.5rem; font-weight: 900; display: inline-block; margin-top: 8px; }

/* ---------- Jobs ---------- */
.job { display: grid; grid-template-columns: 1fr auto; gap: 16px 32px; align-items: center; padding: 28px 0; border-top: 1px solid var(--line); }
.job:last-child { border-bottom: 1px solid var(--line); }
.job h3 { margin: 0 0 6px; font-size: 1.2rem; }
.job .meta { margin: 0; }
@media (max-width: 600px) { .job { grid-template-columns: 1fr; } }

/* ---------- Prose (legal) ---------- */
.prose { max-width: 780px; }
.prose h2 { font-size: 1.5rem; margin-top: 2em; }
.prose ul { padding-left: 1.2em; margin-bottom: 1em; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy); color: rgba(255,255,255,.7); font-size: .95rem; }
.footer-top { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 40px; padding: clamp(56px, 7vw, 88px) 0 48px; }
.site-footer .brand-name { color: #fff; }
.site-footer .brand-sub { color: rgba(255,255,255,.55); }
.footer-about { margin-top: 20px; max-width: 36ch; }
.site-footer h4 { color: #fff; font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; margin-bottom: 18px; }
.site-footer ul { list-style: none; display: grid; gap: 10px; }
.site-footer a:hover { color: #fff; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); padding: 24px 0; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: .85rem; }
.footer-bottom ul { display: flex; gap: 24px; }
@media (max-width: 900px) { .footer-top { grid-template-columns: 1fr 1fr; } .footer-brand { grid-column: 1 / -1; } }
@media (max-width: 520px) { .footer-top { grid-template-columns: 1fr; } }

/* ---------- Reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  * { transition-duration: 0s !important; }
}

/* ==========================================================================
   Image placeholders
   Replace the inner <span> with <img src="..." alt="..."> — it will fill
   the frame automatically (object-fit: cover).
   ========================================================================== */
.media { position: relative; overflow: hidden; aspect-ratio: var(--ratio, 16 / 9); background: #dfe5ea; }
.media img, .media video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.media.ph {
  display: grid; place-items: center; color: #6b7a86;
  background:
    repeating-linear-gradient(135deg, rgba(255,255,255,.35) 0 12px, transparent 12px 24px),
    linear-gradient(135deg, #d9e0e6, #c9d2da);
}
.media.ph > span {
  display: inline-flex; flex-direction: column; align-items: center; gap: 8px; text-align: center;
  font-size: .78rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; padding: 12px;
}
.media.ph > span::before {
  content: ""; width: 40px; height: 40px; opacity: .7;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236b7a86' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='4' width='18' height='16' rx='2'/%3E%3Ccircle cx='9' cy='10' r='2'/%3E%3Cpath d='M21 16l-5-5-9 9'/%3E%3C/svg%3E") center/contain no-repeat;
}
.media.ph.dark { background: repeating-linear-gradient(135deg, rgba(255,255,255,.03) 0 12px, transparent 12px 24px), linear-gradient(135deg, #1a3350, #0b1f33); color: rgba(255,255,255,.55); }
.media.ph.dark > span::before { filter: invert(1) brightness(1.4); }

/* ==========================================================================
   Homepage (TotalEnergies-style layout)
   ========================================================================== */

/* ---- Section headers (TE style) ---- */
.te-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap; margin-bottom: 40px; }
.te-head h2 { margin: 0; max-width: 22ch; }
.te-head p { margin: 12px 0 0; color: var(--muted); max-width: 60ch; }

/* ---- Story cards ---- */
.story { display: flex; flex-direction: column; color: inherit; }
.story .media { --ratio: 4 / 3; border-radius: 0; }
.story:hover .media img { transform: scale(1.05); }
.story .cat { display: block; margin: 20px 0 8px; font-size: .75rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--red); }
.story h3 { font-size: 1.25rem; margin-bottom: 10px; transition: color .2s; }
.story:hover h3 { color: var(--red); }
.story p { color: var(--muted); font-size: .96rem; margin-bottom: 14px; }
.story .link-arrow { margin-top: auto; font-size: .95rem; }
.story-lead { display: grid; grid-template-columns: 1.3fr 1fr; gap: 0; background: var(--bg-alt); margin-bottom: 48px; }
.story-lead .media { --ratio: 16 / 10; }
.story-lead .body { padding: clamp(28px, 4vw, 56px); display: flex; flex-direction: column; justify-content: center; }
.story-lead .cat { margin-top: 0; }
.story-lead h3 { font-size: clamp(1.5rem, 2.6vw, 2.1rem); }
@media (max-width: 860px) { .story-lead { grid-template-columns: 1fr; } }

/* ---- Key figures ---- */
.figures { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; }
.figure { padding: 8px 40px; border-left: 1px solid var(--line); }
.figure:first-child { border-left: 0; padding-left: 0; }
.figure .icon { margin-bottom: 20px; }
.figure .val { font-size: clamp(2.6rem, 5vw, 4rem); font-weight: 900; color: var(--ink); line-height: 1; letter-spacing: -.03em; }
.figure .val .unit { color: var(--red); }
.figure p { margin: 12px 0 0; color: var(--muted); max-width: 30ch; }
@media (max-width: 800px) { .figures { grid-template-columns: 1fr; gap: 32px; } .figure { padding: 0 0 32px; border-left: 0; border-bottom: 1px solid var(--line); } .figure:last-child { border-bottom: 0; padding-bottom: 0; } }

/* ---- Showcase ---- */
.showcase-banner { position: relative; color: #fff; }
.showcase-banner .media { aspect-ratio: auto; height: clamp(420px, 47.6vw, 640px); }
.showcase-banner::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(11,31,51,.78), rgba(11,31,51,.05) 65%); pointer-events: none; }
.showcase-banner .overlay { position: absolute; inset: 0; z-index: 1; display: flex; align-items: center; }
.showcase-banner h2 { color: #fff; max-width: 18ch; }
.showcase-banner p { color: rgba(255,255,255,.85); max-width: 50ch; font-size: 1.1rem; }
.showcase-cards { position: relative; z-index: 2; margin-top: -96px; }
.showcase-cards .story { background: #fff; box-shadow: var(--shadow); }
.showcase-cards .story .body { padding: 4px 28px 28px; display: flex; flex-direction: column; flex: 1; }
@media (max-width: 680px) { .showcase-cards { margin-top: 24px; } }

/* ---- Tile cards (text on image) ---- */
.tile { position: relative; display: block; overflow: hidden; color: #fff; }
.tile .media { --ratio: 3 / 4; }
.tile::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(11,31,51,.85) 0%, rgba(11,31,51,.1) 45%, transparent 65%); transition: background .3s; pointer-events: none; }
.tile:hover .media img { transform: scale(1.06); }
.tile .body { position: absolute; left: 0; right: 0; bottom: 0; z-index: 1; padding: 28px; }
.tile .num { display: block; font-size: .8rem; font-weight: 900; letter-spacing: .12em; color: var(--orange); margin-bottom: 8px; }
.tile h3 { color: #fff; font-size: 1.3rem; margin-bottom: 8px; }
.tile p { color: rgba(255,255,255,.8); font-size: .92rem; margin: 0; max-height: 0; opacity: 0; overflow: hidden; transition: max-height .4s, opacity .4s; }
.tile:hover p, .tile:focus-visible p { max-height: 120px; opacity: 1; }
.tile .bar { position: absolute; left: 0; right: 0; bottom: 0; height: 4px; background: var(--energy); z-index: 2; transform: scaleX(0); transform-origin: left; transition: transform .4s; }
.tile:hover .bar { transform: scaleX(1); }
@media (hover: none) { .tile p { max-height: none; opacity: 1; } }

/* ---- Careers banner ---- */
.careers-banner { display: grid; grid-template-columns: 1fr 1fr; background: var(--red); color: #fff; }
.careers-banner .media { --ratio: auto; min-height: 420px; height: 100%; aspect-ratio: auto; }
.careers-banner .body { padding: clamp(40px, 6vw, 88px); display: flex; flex-direction: column; justify-content: center; }
.careers-banner h2 { color: #fff; }
.careers-banner p { color: rgba(255,255,255,.9); font-size: 1.1rem; max-width: 46ch; margin-bottom: 28px; }
@media (max-width: 860px) { .careers-banner { grid-template-columns: 1fr; } .careers-banner .media { min-height: 260px; } }

/* ---- News & resources ---- */
.news-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: clamp(32px, 5vw, 72px); }
@media (max-width: 900px) { .news-grid { grid-template-columns: 1fr; } }
.col-title { font-size: .85rem; font-weight: 900; letter-spacing: .14em; text-transform: uppercase; color: var(--ink); padding-bottom: 16px; border-bottom: 3px solid var(--ink); margin-bottom: 0; display: flex; justify-content: space-between; align-items: center; }
.col-title a { font-size: .85rem; letter-spacing: 0; text-transform: none; color: var(--red); }
.news-list { list-style: none; }
.news-list li { border-bottom: 1px solid var(--line); }
.news-list a { display: grid; grid-template-columns: 120px 1fr; gap: 20px; padding: 22px 0; align-items: center; }
.news-list .media { --ratio: 4 / 3; }
.news-list .media.ph > span::before { width: 24px; height: 24px; }
.news-list .media.ph > span { font-size: 0; }
.news-list .cat { font-size: .72rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--red); }
.news-list h3 { font-size: 1.05rem; margin: 6px 0 0; transition: color .2s; }
.news-list a:hover h3 { color: var(--red); }

.doc-list { list-style: none; }
.doc-list li { border-bottom: 1px solid var(--line); }
.doc-list a { display: flex; gap: 16px; align-items: center; padding: 20px 0; }
.doc-list .icon { width: 44px; height: 44px; margin: 0; }
.doc-list .icon svg { width: 22px; height: 22px; }
.doc-list strong { display: block; color: var(--ink); }
.doc-list small { color: var(--muted); font-size: .85rem; }
.doc-list a:hover strong { color: var(--red); }
.doc-list .dl { margin-left: auto; color: var(--red); }
.doc-list .dl svg { width: 20px; height: 20px; }

.newsletter { background: var(--bg-alt); padding: 32px; margin-top: 32px; }
.newsletter h3 { font-size: 1.2rem; margin-bottom: 6px; }
.newsletter p { color: var(--muted); font-size: .95rem; }
.newsletter form { display: flex; gap: 8px; flex-wrap: wrap; }
.newsletter input { flex: 1; min-width: 200px; }


/* ==========================================================================
   Header & mega menu (TotalEnergies-style: utility row above main nav)
   ========================================================================== */
.site-header { position: sticky; top: 0; z-index: 100; background: #fff; transition: box-shadow .2s; }
.site-header.scrolled, .site-header.mega-open { box-shadow: 0 6px 24px rgba(11,31,51,.08); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 32px; height: var(--header-h); }

.brand { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.brand-mark { width: 52px; height: 52px; }
.brand-text { display: flex; flex-direction: column; line-height: 1; }
.brand-name { font-weight: 900; font-size: 1.35rem; color: var(--ink); letter-spacing: -.01em; }
.brand-sub { font-size: .66rem; font-weight: 800; letter-spacing: .24em; color: var(--red); margin-top: 6px; }

.header-right { display: flex; flex-direction: column; align-items: flex-end; gap: 10px; }
.utility { display: flex; align-items: center; font-size: .85rem; }
.utility > * { display: inline-flex; align-items: center; gap: 8px; padding: 0 16px; border-left: 1px solid var(--line); line-height: 1; color: var(--ink); }
.utility > *:first-child { border-left: 0; padding-left: 0; }
.utility > *:last-child { padding-right: 0; }
.utility svg { width: 18px; height: 18px; }
.utility .util-red { color: var(--red); font-weight: 700; }
.utility a:hover { color: var(--red); }
.utility .util-icon { color: var(--red); }
.utility .util-emergency { font-weight: 800; font-size: .8rem; }
.utility .util-emergency small { display: block; font-weight: 600; color: var(--muted); font-size: .72rem; margin-bottom: 3px; }
.utility .util-emergency .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--red); box-shadow: 0 0 0 4px rgba(1,105,95,.18); }

.nav-list { display: flex; list-style: none; align-items: center; gap: 4px; }
.nav-item > a, .nav-btn {
  display: flex; align-items: center; gap: 6px; padding: 12px 14px; background: none; border: 0; cursor: pointer;
  font: inherit; font-size: 1.02rem; font-weight: 600; color: var(--ink); white-space: nowrap; position: relative;
}
.nav-btn svg { width: 14px; height: 14px; transition: transform .25s; }
.nav-item > a::after, .nav-btn::after { content: ""; position: absolute; left: 14px; right: 14px; bottom: -14px; height: 3px; background: var(--red); transform: scaleX(0); transition: transform .25s; transform-origin: left; }
.nav-item > a:hover, .nav-btn:hover, .nav-item.open > .nav-btn, .nav-item.current > .nav-btn, .nav-item.current > a { color: var(--red); }
.nav-item.open > .nav-btn::after, .nav-item.current > .nav-btn::after, .nav-item.current > a::after { transform: scaleX(1); }
.nav-item.open > .nav-btn svg { transform: rotate(180deg); }

/* Mega panel */
.mega {
  position: absolute; left: 0; right: 0; top: 100%; background: #fff; border-top: 1px solid var(--line);
  box-shadow: 0 24px 48px rgba(11,31,51,.12); opacity: 0; visibility: hidden; transform: translateY(-8px);
  transition: opacity .2s, transform .2s, visibility .2s;
}
.nav-item.open > .mega { opacity: 1; visibility: visible; transform: none; }
.mega-inner { display: grid; grid-template-columns: 1.1fr 2fr 1fr; gap: 48px; padding: 44px var(--gutter) 52px; }
.mega-intro h3 { font-size: 1.8rem; margin-bottom: 12px; }
.mega-intro p { color: var(--muted); font-size: .98rem; }
.mega-cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 32px; }
.mega-col h4 { font-size: .75rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-bottom: 14px; }
.mega-col ul { list-style: none; display: grid; gap: 4px; }
.mega-col a { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 8px 0; font-weight: 700; color: var(--ink); border-bottom: 1px solid transparent; }
.mega-col a svg { width: 16px; height: 16px; color: var(--red); opacity: 0; transform: translateX(-6px); transition: .2s; }
.mega-col a:hover, .mega-col a[aria-current="page"] { color: var(--red); }
.mega-col a:hover svg { opacity: 1; transform: none; }
.mega-feature { display: block; background: var(--bg-alt); }
.mega-feature .media { --ratio: 16 / 10; }
.mega-feature .body { padding: 20px 22px 24px; }
.mega-feature .cat { font-size: .72rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--red); }
.mega-feature strong { display: block; color: var(--ink); font-size: 1.05rem; margin-top: 6px; }
.mega-feature:hover strong { color: var(--red); }

.nav-toggle { display: none; background: none; border: 0; padding: 8px; cursor: pointer; color: var(--ink); }
.nav-toggle svg { width: 30px; height: 30px; }
.main-nav .mobile-extra { display: none; }

@media (max-width: 1240px) {
  .nav-item > a, .nav-btn { padding: 12px 9px; font-size: .95rem; }
  .utility .util-hide-md { display: none; }
  .mega-inner { grid-template-columns: 1fr 2fr; }
  .mega-feature { display: none; }
}
@media (max-width: 980px) {
  :root { --header-h: 76px; }
  .brand-mark { width: 44px; height: 44px; }
  .utility { display: none; }
  .nav-toggle { display: block; }
  .main-nav {
    position: fixed; left: 0; right: 0; bottom: 0; top: var(--header-h); background: #fff;
    padding: 8px var(--gutter) 40px; overflow-y: auto; visibility: hidden; transform: translateX(100%); transition: transform .3s, visibility .3s;
  }
  .main-nav.open { transform: none; visibility: visible; }
  .nav-list { flex-direction: column; align-items: stretch; gap: 0; }
  .nav-item { border-bottom: 1px solid var(--line); }
  .nav-item > a, .nav-btn { width: 100%; justify-content: space-between; padding: 18px 0; font-size: 1.15rem; font-weight: 700; }
  .nav-item > a::after, .nav-btn::after { display: none; }
  .mega { position: static; box-shadow: none; border: 0; transform: none; opacity: 1; visibility: visible; display: none; }
  .nav-item.open > .mega { display: block; }
  .mega-inner { display: block; padding: 0 0 20px; }
  .mega-intro { display: none; }
  .mega-cols { grid-template-columns: 1fr; gap: 16px; }
  .mega-col h4 { margin-bottom: 4px; }
  .main-nav .mobile-extra { display: grid; gap: 12px; margin-top: 28px; }
  .main-nav .mobile-extra .btn { justify-content: center; }
  body.nav-open { overflow: hidden; }
}

/* ==========================================================================
   Home hero — split layout: image left, text right, tabs below
   ========================================================================== */
.hx { --text-col: 34%; background: #fff; }
.hx-track { display: grid; grid-template-columns: minmax(0, 1fr); position: relative; }
.hx-slide {
  grid-area: 1 / 1; display: grid; grid-template-columns: calc(100% - var(--text-col)) var(--text-col);
  opacity: 0; visibility: hidden; transition: opacity .7s ease, visibility .7s;
}
.hx-slide.is-active { opacity: 1; visibility: visible; }
.hx-slide .media { aspect-ratio: auto; min-height: clamp(420px, 36vw, 560px); height: 100%; }
.hx-slide.is-active .media img { animation: hxZoom 9s ease-out forwards; }
@keyframes hxZoom { from { transform: scale(1.06); } to { transform: none; } }
.hx-text {
  display: flex; flex-direction: column; justify-content: center;
  padding: 48px max(var(--gutter), calc((100vw - var(--container)) / 2 + var(--gutter))) 120px 52px;
}
.hx-title {
  font-size: clamp(1.9rem, 2.6vw, 2.6rem); font-weight: 600; line-height: 1.3; letter-spacing: -.01em; margin-bottom: 16px;
  background: var(--hx-grad, linear-gradient(90deg, #1B8FB5, #23866A)); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hx-text p { font-size: 1.08rem; color: var(--text); margin-bottom: 28px; }
.hx-text > * { transition: opacity .6s ease .15s, transform .6s ease .15s; }
.hx-slide:not(.is-active) .hx-text > * { opacity: 0; transform: translateY(12px); }

.btn-pill { border: 1.5px solid var(--red); color: var(--red); background: #fff; border-radius: 100px; padding: 12px 26px; align-self: flex-start; }
.btn-pill:hover { background: var(--red); color: #fff; }

.hx-controls {
  grid-area: 1 / 1; align-self: end; margin-left: calc(100% - var(--text-col)); z-index: 2;
  display: flex; gap: 12px; padding: 0 0 48px 52px;
}
.hx-ctrl {
  width: 44px; height: 44px; border-radius: 50%; border: 1.5px solid var(--red); background: #fff; color: var(--red);
  display: grid; place-items: center; cursor: pointer; transition: background .2s, color .2s;
}
.hx-ctrl:hover { background: var(--red); color: #fff; }
.hx-ctrl svg { width: 18px; height: 18px; }
.hx-ctrl.prev svg { transform: rotate(180deg); }

.hx-tabs { display: grid; grid-template-columns: repeat(4, 1fr); border-bottom: 1px solid var(--line); }
.hx-tab { background: none; border: 0; padding: 0 var(--gutter) 22px; text-align: left; cursor: pointer; font: inherit; color: var(--muted); }
.hx-tab .bar { display: block; height: 6px; margin: 0 calc(-1 * var(--gutter)) 16px; background: transparent; overflow: hidden; }
.hx-tab .bar i { display: block; height: 100%; width: 0; background: var(--tab-grad, var(--energy)); }
.hx-tab.is-active .bar i { animation: hsProgress var(--hs-duration, 7s) linear forwards; }
.hx.paused .hx-tab.is-active .bar i { animation-play-state: paused; }
.hx-tab .cat { display: block; font-weight: 700; color: var(--ink); font-size: .95rem; }
.hx-tab .t { display: block; font-size: .85rem; margin-top: 4px; line-height: 1.4; }
.hx-tab:hover .cat, .hx-tab.is-active .cat { color: var(--red); }
@keyframes hsProgress { to { width: 100%; } }
@media (prefers-reduced-motion: reduce) { .hx-tab.is-active .bar i { animation: none; width: 100%; } .hx-slide.is-active .media img { animation: none; } }

@media (max-width: 1100px) { .hx { --text-col: 42%; } .hx-text { padding-left: 36px; } .hx-controls { padding-left: 36px; } }
@media (max-width: 800px) {
  .hx-slide { grid-template-columns: minmax(0, 1fr); }
  .hx-slide .media { min-height: 0; height: auto; width: 100%; aspect-ratio: 16 / 10; }
  .hx-text { padding: 28px var(--gutter) 100px; justify-content: flex-start; }
  .hx-controls { margin-left: 0; padding: 0 var(--gutter) 32px; }
  .hx-tab { padding-bottom: 16px; }
  .hx-tab .t { display: none; }
  .hx-tab .cat { font-size: .78rem; }
}
.hx-tab { display: flex; flex-direction: column; justify-content: flex-start; }

/* ==========================================================================
   Inner-page banner (TotalEnergies "Our Company" style)
   ========================================================================== */
.banner-hero { position: relative; color: #fff; background: var(--navy); }
.banner-hero .media { aspect-ratio: auto; height: clamp(340px, 44vw, 540px); }
.banner-hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(11,31,51,.62) 0%, rgba(11,31,51,.1) 40%, transparent 60%); pointer-events: none; }
.banner-hero .overlay { position: absolute; inset: 0; z-index: 1; display: flex; align-items: flex-end; }
.banner-hero .overlay .container { padding-bottom: clamp(32px, 5vw, 64px); }
.banner-hero h1 { color: #fff; margin: 0; font-size: clamp(2.4rem, 5.5vw, 4.2rem); }
.banner-hero .breadcrumb { color: rgba(255,255,255,.8); margin-bottom: 14px; }

.anchor-links { border-bottom: 1px solid var(--line); background: #fff; }
.anchor-links ul { list-style: none; display: flex; flex-wrap: wrap; gap: 8px 40px; padding: 22px 0; }
.anchor-links a { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; color: var(--red); }
.anchor-links a svg { width: 18px; height: 18px; transform: rotate(90deg); transition: transform .2s; }
.anchor-links a:hover svg { transform: rotate(90deg) translateX(3px); }

.chapeau { font-size: clamp(1.2rem, 2vw, 1.55rem); line-height: 1.55; color: var(--ink); font-weight: 600; max-width: 62ch; margin: 0; }

.facts { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 3px solid var(--ink); }
.fact { padding: 28px 24px 0 0; }
.fact + .fact { padding-left: 24px; border-left: 1px solid var(--line); }
.fact .val { font-size: clamp(1.8rem, 3.2vw, 2.6rem); font-weight: 900; color: var(--ink); line-height: 1.05; letter-spacing: -.02em; }
.fact .val .unit { color: var(--red); }
.fact p { margin: 10px 0 0; color: var(--muted); font-size: .95rem; }
@media (max-width: 800px) { .facts { grid-template-columns: 1fr 1fr; row-gap: 28px; } .fact:nth-child(3) { padding-left: 0; border-left: 0; } }

.split-media .media { --ratio: 4 / 3; }

/* ==========================================================================
   Facilities: full-screen map, terminal, timeline, storage network
   ========================================================================== */
.map-hero { position: relative; height: calc(100vh - var(--header-h)); min-height: 540px; max-height: 1000px; background: #d9e0e6; }
.map-hero iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.map-hero .container { position: relative; height: 100%; pointer-events: none; }
.map-card {
  pointer-events: auto; position: absolute; left: var(--gutter); bottom: clamp(24px, 5vh, 56px); width: min(440px, calc(100% - 2 * var(--gutter)));
  background: #fff; box-shadow: var(--shadow-lg); padding: 32px 32px 28px;
}
.map-card::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 4px; background: var(--energy); }
.map-card .breadcrumb { color: var(--muted); margin-bottom: 10px; }
.map-card h1 { font-size: clamp(1.8rem, 3vw, 2.4rem); margin-bottom: 8px; }
.map-card p { color: var(--muted); margin-bottom: 18px; }
.map-card .rows { display: grid; gap: 10px; margin-bottom: 22px; font-size: .95rem; }
.map-card .rows div { display: flex; gap: 12px; align-items: flex-start; color: var(--ink); font-weight: 700; }
.map-card .rows svg { width: 20px; height: 20px; color: var(--red); flex-shrink: 0; margin-top: 2px; }
.map-card .btn { padding: 12px 20px; }
@media (max-width: 700px) {
  .map-hero { height: auto; min-height: 0; }
  .map-hero iframe { position: relative; height: 62vh; display: block; }
  .map-hero .container { height: auto; }
  .map-card { position: relative; left: auto; bottom: auto; width: auto; margin: -40px 0 0; }
}

.tbc { display: inline-block; font-size: .72rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: #9A6212; background: #FBF2E4; border: 1px dashed #f0a35b; padding: 3px 8px; border-radius: 4px; vertical-align: middle; }
.fact .val .tbc { font-size: .8rem; }

.cap-table td:first-child { width: 42%; color: var(--muted); font-weight: 700; }
.cap-table td:last-child { color: var(--ink); font-weight: 800; }

.timeline { list-style: none; position: relative; margin-left: 8px; }
.timeline::before { content: ""; position: absolute; left: 0; top: 6px; bottom: 6px; width: 3px; background: linear-gradient(180deg, var(--red), var(--orange), var(--green), var(--blue)); }
.timeline li { position: relative; padding: 0 0 36px 36px; }
.timeline li:last-child { padding-bottom: 0; }
.timeline li::before { content: ""; position: absolute; left: -6px; top: 4px; width: 15px; height: 15px; border-radius: 50%; background: #fff; border: 3px solid var(--red); }
.timeline .when { display: block; font-size: .8rem; font-weight: 900; letter-spacing: .12em; text-transform: uppercase; color: var(--red); margin-bottom: 6px; }
.timeline h4 { margin-bottom: 6px; font-size: 1.15rem; }
.timeline p { color: var(--muted); margin: 0; }

.network-map { height: clamp(380px, 48vw, 540px); background: #e8edf1; border: 1px solid var(--line); z-index: 0; }
.leaflet-container { font-family: var(--font); }
.net-pin { width: 18px; height: 18px; border-radius: 50%; background: var(--red); border: 3px solid #fff; box-shadow: 0 0 0 4px rgba(1,105,95,.25), 0 2px 6px rgba(0,0,0,.3); }
.net-pin.hq { background: var(--navy); box-shadow: 0 0 0 4px rgba(11,31,51,.25), 0 2px 6px rgba(0,0,0,.3); }
.leaflet-popup-content { margin: 14px 16px; font-size: .9rem; line-height: 1.5; }
.leaflet-popup-content strong { display: block; font-size: 1rem; color: var(--ink); }

.loc-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 0; border: 1px solid var(--line); border-top: 0; }
.loc { background: #fff; border: 0; border-left: 1px solid var(--line); padding: 24px 22px; text-align: left; font: inherit; cursor: pointer; display: flex; flex-direction: column; gap: 6px; transition: background .2s; position: relative; }
.loc:first-child { border-left: 0; }
.loc::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 3px; background: var(--red); transform: scaleX(0); transition: transform .25s; transform-origin: left; }
.loc:hover, .loc.active { background: var(--bg-alt); }
.loc.active::before { transform: scaleX(1); }
.loc .region { font-size: .72rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--red); }
.loc .region.hq { color: var(--navy); }
.loc strong { font-size: 1.15rem; color: var(--ink); }
.loc span.desc { font-size: .88rem; color: var(--muted); line-height: 1.5; }
@media (max-width: 1000px) { .loc-grid { grid-template-columns: 1fr 1fr; } .loc { border-top: 1px solid var(--line); } .loc:nth-child(odd) { border-left: 0; } }
@media (max-width: 560px) { .loc-grid { grid-template-columns: 1fr; } .loc { border-left: 0; } }

/* ==========================================================================
   Red cards (#01695F) with white content
   ========================================================================== */
.card, .band-dark .card { background: #01695F; border-color: #01695F; color: #fff; }
.card h2, .card h3, .card h4, .band-dark .card h3, .band-dark .card h4 { color: #fff; }
.card p, .band-dark .card p { color: rgba(255,255,255,.92); }
.card .icon, .card .icon.blue, .card .icon.green, .card .icon.orange, .card .icon.violet { background: rgba(255,255,255,.16); color: #fff; }
.card .link-arrow, .card .meta, .card .meta .cat { color: #fff; }
.card .eyebrow { color: #fff; }
.card .eyebrow::before { background: #fff; }
a.card:hover, .card.hoverable:hover { background: #d40000; border-color: #d40000; }
.card .tags li { background: rgba(255,255,255,.14); border-color: rgba(255,255,255,.35); color: #fff; }

.showcase-cards .story { background: #01695F; color: #fff; }
.showcase-cards .story .cat, .showcase-cards .story h3, .showcase-cards .story .link-arrow { color: #fff; }
.showcase-cards .story p { color: rgba(255,255,255,.92); }
.showcase-cards .story:hover h3 { color: #fff; text-decoration: underline; text-underline-offset: 4px; }

/* Taller image beside long text (facilities: Jurong Terminal) */
.split-media .media.media-tall { --ratio: 3 / 4; max-height: 720px; }
@media (max-width: 900px) { .split-media .media.media-tall { --ratio: 4 / 3; } }

/* ==========================================================================
   HSE page (TotalEnergies "Climate and sustainable energy" style)
   ========================================================================== */
.chapeau-block { display: grid; grid-template-columns: 1.3fr 1fr; gap: clamp(32px, 6vw, 96px); align-items: start; }
.chapeau-block p:not(.chapeau) { color: var(--text); font-size: 1.05rem; }
@media (max-width: 900px) { .chapeau-block { grid-template-columns: 1fr; } }

.keyfig { display: flex; align-items: center; gap: clamp(20px, 4vw, 48px); padding: clamp(32px, 5vw, 56px) 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.keyfig .num { font-size: clamp(4rem, 10vw, 8rem); font-weight: 900; line-height: .9; letter-spacing: -.04em; background: linear-gradient(90deg, var(--red), var(--orange)); -webkit-background-clip: text; background-clip: text; color: transparent; flex-shrink: 0; }
.keyfig p { font-size: clamp(1.2rem, 2.2vw, 1.7rem); font-weight: 700; color: var(--ink); line-height: 1.35; margin: 0; max-width: 30ch; }
@media (max-width: 560px) { .keyfig { flex-direction: column; align-items: flex-start; } }

.alt-block { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 96px); align-items: center; padding-top: clamp(40px, 6vw, 72px); padding-bottom: clamp(40px, 6vw, 72px); }
.alt-block .media { --ratio: 720 / 795; }
.alt-block.reverse .media { order: -1; }
.alt-block h2 { font-size: clamp(1.7rem, 3vw, 2.4rem); }
.alt-block .cta { margin-top: 12px; }
@media (max-width: 900px) {
  .alt-block { grid-template-columns: 1fr; }
  .alt-block .media, .alt-block.reverse .media { order: -1; --ratio: 16 / 10; }
}

.doc-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 48px; }
@media (max-width: 760px) { .doc-grid { grid-template-columns: 1fr; } }
.report-card { display: grid; grid-template-columns: 140px 1fr; gap: 24px; align-items: center; background: #fff; border: 1px solid var(--line); padding: 20px; transition: box-shadow .2s; }
.report-card:hover { box-shadow: var(--shadow-lg); }
.report-card .media { --ratio: 3 / 4; }
.report-card .cat { font-size: .72rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--red); }
.report-card strong { display: block; font-size: 1.15rem; color: var(--ink); margin: 6px 0; }
.report-card small { color: var(--muted); }

/* ---- Photo behind inner-page banners ---- */
.page-hero .media.bg { position: absolute; inset: 0; aspect-ratio: auto; height: 100%; z-index: 0; }
.page-hero.has-photo::before {
  z-index: 1;
  background: linear-gradient(90deg, rgba(11,31,51,.82) 0%, rgba(11,31,51,.55) 45%, rgba(11,31,51,.08) 100%),
              linear-gradient(0deg, rgba(11,31,51,.3), transparent 50%);
}
.page-hero.has-photo .container { z-index: 2; padding-top: clamp(80px, 10vw, 140px); padding-bottom: clamp(80px, 10vw, 140px); }
.page-hero.has-photo > .energy-bar { position: relative; z-index: 2; }
@media (max-width: 700px) { .page-hero.has-photo::before { background: linear-gradient(0deg, rgba(11,31,51,.85), rgba(11,31,51,.5)); } }

/* Crisper photos: slight contrast/saturation lift, sharp downscaling */
.media img { filter: contrast(1.05) saturate(1.08); image-rendering: -webkit-optimize-contrast; }

/* ---- Logo ---- */
.brand-logo { display: block; height: 84px; width: auto; }
.site-footer .brand-logo { height: 76px; }
@media (max-width: 980px) { .brand-logo { height: 56px; } }

/* ==========================================================================
   Cookie consent
   ========================================================================== */
.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; }
[hidden] { display: none !important; }

.cookie-banner {
  position: fixed; z-index: 1000; left: 16px; right: 16px; bottom: 16px; max-width: 1180px; margin: 0 auto;
  background: #fff; box-shadow: 0 20px 60px rgba(11,31,51,.25); padding: 28px 32px;
  display: grid; grid-template-columns: 1fr auto; gap: 24px 40px; align-items: center;
}
.cookie-banner::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 4px; background: var(--energy); }
.cookie-banner h2 { font-size: 1.15rem; margin-bottom: 6px; }
.cookie-banner p { margin: 0; color: var(--muted); font-size: .93rem; max-width: 70ch; }
.cookie-banner a { color: var(--red); font-weight: 700; text-decoration: underline; }
.cb-actions { display: flex; gap: 10px; flex-wrap: wrap; justify-content: flex-end; }
.cb-actions .btn, .cm-foot .btn { padding: 12px 20px; font-size: .9rem; }
@media (max-width: 860px) {
  .cookie-banner { grid-template-columns: 1fr; padding: 24px 20px; left: 8px; right: 8px; bottom: 8px; }
  .cb-actions { justify-content: stretch; }
  .cb-actions .btn { flex: 1 1 auto; justify-content: center; }
}

.cookie-modal { position: fixed; inset: 0; z-index: 1100; background: rgba(11,31,51,.55); display: grid; place-items: center; padding: 16px; }
body.cm-open { overflow: hidden; }
.cm-box { background: #fff; width: min(560px, 100%); max-height: calc(100vh - 32px); overflow-y: auto; padding: 32px; position: relative; box-shadow: var(--shadow-lg); }
.cm-box::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 4px; background: var(--energy); }
.cm-head { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-bottom: 8px; }
.cm-head h2 { font-size: 1.4rem; margin: 0; }
.cm-close { background: none; border: 0; cursor: pointer; color: var(--ink); padding: 6px; }
.cm-close svg { width: 22px; height: 22px; }
.cm-intro { color: var(--muted); font-size: .93rem; }
.cm-intro a { color: var(--red); font-weight: 700; text-decoration: underline; }
.cm-row { display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 18px 0; border-top: 1px solid var(--line); }
.cm-row strong { color: var(--ink); }
.cm-row p { margin: 4px 0 0; color: var(--muted); font-size: .88rem; }
.cm-always { font-size: .78rem; font-weight: 800; color: #1D6F57; background: #E8F4EF; padding: 4px 10px; border-radius: 100px; white-space: nowrap; }
.cm-foot { display: flex; gap: 10px; justify-content: flex-end; flex-wrap: wrap; padding-top: 20px; border-top: 1px solid var(--line); }

.switch { position: relative; display: inline-block; width: 50px; height: 28px; flex-shrink: 0; margin: 0; }
.switch input { position: absolute; opacity: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; z-index: 1; }
.switch .slider { position: absolute; inset: 0; background: #c9d2da; border-radius: 100px; transition: background .2s; }
.switch .slider::before { content: ""; position: absolute; width: 22px; height: 22px; left: 3px; top: 3px; background: #fff; border-radius: 50%; transition: transform .2s; box-shadow: 0 1px 3px rgba(0,0,0,.25); }
.switch input:checked + .slider { background: var(--red); }
.switch input:checked + .slider::before { transform: translateX(22px); }
.switch input:focus-visible + .slider { outline: 3px solid var(--blue); outline-offset: 2px; }

/* TotalEnergies-style red "Cookies" button */
.cookie-fab {
  position: fixed; z-index: 900; right: 16px; bottom: 16px; display: inline-flex; align-items: center; gap: 8px;
  background: var(--red); color: #fff; border: 0; padding: 12px 18px; font: inherit; font-weight: 800; font-size: .95rem;
  cursor: pointer; box-shadow: 0 6px 18px rgba(1,105,95,.35); transition: background .2s;
}
.cookie-fab:hover { background: var(--red-dark); }
.cookie-fab svg { width: 16px; height: 16px; fill: currentColor; }
.footer-link { background: none; border: 0; padding: 0; font: inherit; color: inherit; cursor: pointer; }
.footer-link:hover { color: #fff; }

/* Google Map placeholder until functional cookies are accepted */
.map-hero iframe:not([src]) { display: none; }
.map-consent {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: flex-end;
  padding: 0 max(var(--gutter), calc((100vw - var(--container)) / 2 + var(--gutter)));
  background: linear-gradient(90deg, rgba(11,31,51,.2), rgba(11,31,51,.75)), url("../../images/europoort-aerial.jpg") center/cover;
}
.map-consent-box { background: #fff; padding: 28px; max-width: 380px; box-shadow: var(--shadow-lg); }
.map-consent-box h2 { font-size: 1.2rem; margin-bottom: 8px; }
.map-consent-box p { color: var(--muted); font-size: .93rem; }
@media (max-width: 1000px) { .map-consent { justify-content: center; align-items: flex-start; padding-top: 40px; } }
@media (max-width: 700px) { .map-consent { position: relative; height: 62vh; align-items: center; padding-top: 0; } }
button.btn-outline { background: transparent; }
button.btn-outline:hover { background: var(--ink); color: #fff; }

/* ==========================================================================
   Responsive hardening (all screen sizes, down to 320px)
   ========================================================================== */
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
img, svg, video, iframe { max-width: 100%; }
h1, h2, h3, h4, p, li, td, th, a { overflow-wrap: break-word; }
/* Grid children may shrink below their content width instead of pushing the page wider */
.split > *, .grid > *, .form-grid > *, .sub-grid > *, .footer-top > *, .news-grid > * { min-width: 0; }
input, select, textarea { max-width: 100%; min-width: 0; }
@media (max-width: 900px) { .split, .split-60 { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 600px) { .form-grid { grid-template-columns: minmax(0, 1fr); } }
/* Hero slider tabs: 2 x 2 on narrow phones */
@media (max-width: 480px) {
  .hx-tabs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hx-tab { padding-left: 16px; padding-right: 16px; }
  .hx-tab .bar { margin-left: -16px; margin-right: -16px; }
}
/* 3-up rows: stay 3 across on tablets (avoids a lone orphan card), 1 across on phones */
@media (max-width: 1000px) { .grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; } }
@media (max-width: 760px) { .grid-3 { grid-template-columns: minmax(0, 1fr); } }

/* Single-slide hero (no arrows or tabs) */
.hx-single { border-bottom: 1px solid var(--line); }
.hx-single .hx-text { padding-bottom: 48px; }
@media (max-width: 800px) { .hx-single .hx-text { padding-bottom: 40px; } }

/* Embedded Google Map with consent placeholder (Rotterdam page) */
.embed-map { position: relative; margin-top: 28px; aspect-ratio: 4 / 3; background: #d9e0e6; border: 1px solid var(--line); overflow: hidden; }
.embed-map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.embed-consent { position: absolute; inset: 0; display: grid; place-items: center; padding: 20px;
  background: linear-gradient(rgba(11,31,51,.45), rgba(11,31,51,.65)), url("../../images/europoort-aerial.jpg") center/cover; }
.embed-consent[hidden] { display: none; }
.leaflet-control-layers { font-family: var(--font); font-size: .85rem; border-radius: var(--radius) !important; }
@media (max-width: 600px) { .embed-map { aspect-ratio: 1 / 1; } }

/* Language switch (NL | EN) */
.lang-switch { display: inline-flex; align-items: center; gap: 0; font-size: .8rem; font-weight: 800; letter-spacing: .06em; }
.lang-switch > * { padding: 4px 8px; line-height: 1; border-radius: var(--radius); }
.lang-switch strong { background: var(--red); color: #fff; }
.lang-switch a { color: var(--muted); }
.lang-switch a:hover { color: var(--red); background: var(--bg-alt); }
.mobile-extra .lang-switch { align-self: flex-start; margin-bottom: 8px; font-size: .9rem; }
.mobile-extra .lang-switch > * { padding: 8px 14px; }

/* Longer (Dutch) labels: let the footer link row wrap and keep big fact values inside narrow columns */
.footer-bottom ul { flex-wrap: wrap; row-gap: 10px; }
.fact { min-width: 0; }
@media (max-width: 480px) { .fact .val { font-size: 1.6rem; overflow-wrap: anywhere; } .fact + .fact { padding-left: 16px; } }
.report-card > *, .doc-list a > div { min-width: 0; }
.report-card strong, .report-card small, .doc-list strong { overflow-wrap: anywhere; }

/* ---------- Floating hero image ---------- */
.hx-single { background: linear-gradient(180deg, var(--bg-warm) 0%, #fff 85%); }
.hx-single .hx-slide .media {
  margin: clamp(20px, 3vw, 44px) 0 clamp(28px, 3.5vw, 52px) clamp(16px, 3vw, 44px);
  min-height: clamp(380px, 32vw, 500px); height: auto;
  border-radius: 22px; overflow: hidden; position: relative;
  box-shadow: 0 30px 60px -22px rgba(1, 79, 71, .45), 0 12px 24px -12px rgba(0, 0, 0, .18);
  animation: hxFloat 6s ease-in-out infinite; will-change: transform;
}
.hx-single .hx-slide .media img { width: 100%; height: 100%; object-fit: cover; }
@keyframes hxFloat { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }
@media (max-width: 800px) {
  .hx-single .hx-slide .media { margin: 18px var(--gutter) 6px; min-height: 0; aspect-ratio: 16 / 10; border-radius: 16px; }
  @keyframes hxFloat { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-7px); } }
}
@media (prefers-reduced-motion: reduce) { .hx-single .hx-slide .media { animation: none; } }
