/* Arabian Pipes – website styles (V1 "Clean")
   Layout: white and light-indigo bands, 1200px container, brand indigo for type and buttons, brand blue for accents.
   Single light theme by design (corporate brand site). */

:root {
  /* Colour (sampled from the Arabian Pipes logo) */
  --brand: #35308F;        /* logo indigo – headings, buttons */
  --brand-dark: #26226B;   /* hover */
  --accent: #3173B8;       /* logo blue – labels, sizes, pins */
  --ink: #15173A;          /* body text */
  --muted: #4A4D6A;        /* secondary text */
  --subtle: #5C5F7A;       /* captions */
  --line: #E6E6F0;         /* borders */
  --tint: #F3F3FA;         /* alternate section background */
  --paper: #FFFFFF;
  --footer: #16143F;
  --on-dark: #C9C8EA;
  --on-footer: #B9B8D9;
  --placeholder: #E9E9F3;

  /* Type */
  --font: "Plus Jakarta Sans", "Segoe UI", system-ui, -apple-system, Roboto, Arial, sans-serif;
  --fs-h1: clamp(2.25rem, 1.4rem + 3.2vw, 3.75rem);
  --fs-h2: clamp(1.75rem, 1.3rem + 1.6vw, 2.625rem);
  --fs-h3: 1.375rem;
  --fs-lead: clamp(1.0625rem, 1rem + 0.3vw, 1.1875rem);
  --fs-body: 1rem;
  --fs-small: 0.875rem;

  /* Space */
  --gutter: clamp(16px, 4vw, 80px);
  --section: clamp(64px, 8vw, 112px);
  --radius: 14px;
  --radius-sm: 8px;
  --header-h: 92px;

  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font);
  font-size: var(--fs-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }

h1, h2, h3 { margin: 0; color: var(--brand); line-height: 1.15; text-wrap: balance; letter-spacing: -0.02em; }
h1 { font-size: var(--fs-h1); line-height: 1.06; letter-spacing: -0.025em; font-weight: 700; }
h2 { font-size: var(--fs-h2); font-weight: 700; }
h3 { font-size: var(--fs-h3); font-weight: 700; letter-spacing: -0.01em; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }

a { color: var(--brand); text-decoration: none; }
a:hover { color: var(--brand-dark); }
a:focus-visible, button:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

.container { width: 100%; max-width: 1280px; margin-inline: auto; padding-inline: var(--gutter); }

.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: 16px; top: -60px; z-index: 100; background: var(--brand); color: #fff; padding: 10px 16px; border-radius: var(--radius-sm); }
.skip-link:focus { top: 12px; color: #fff; }

.todo { color: var(--subtle); font-style: italic; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 26px;
  border-radius: var(--radius-sm); border: 1.5px solid transparent;
  font-weight: 600; font-size: 1rem; line-height: 1;
  transition: background-color .15s ease, color .15s ease, border-color .15s ease;
}
.btn-sm { min-height: 46px; padding: 0 22px; font-size: 0.9375rem; }
.btn-primary { background: var(--brand); color: #fff; }
.btn-primary:hover { background: var(--brand-dark); color: #fff; }
.btn-outline { border-color: var(--brand); color: var(--brand); }
.btn-outline:hover { background: var(--brand); color: #fff; }
.btn-light { background: #fff; color: var(--brand); font-weight: 700; }
.btn-light:hover { background: var(--tint); color: var(--brand-dark); }
.btn-outline-light { border-color: #fff; color: #fff; }
.btn-outline-light:hover { background: #fff; color: var(--brand); }
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; }
.btn-stack { display: flex; flex-direction: column; gap: 10px; }

.text-link { font-weight: 600; color: var(--brand); white-space: nowrap; }
.text-link:hover { text-decoration: underline; }

/* Header */
.site-header {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 50;
  background: var(--paper); border-bottom: 1px solid var(--line);
}
.header-inner { min-height: var(--header-h); display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand img { width: 188px; height: auto; }

.site-nav { display: flex; align-items: center; gap: 32px; }
.nav-links { display: flex; gap: 30px; }
.nav-links a { color: var(--ink); font-weight: 500; font-size: 0.9375rem; padding-block: 8px; }
.nav-links a:hover { color: var(--brand); }
.nav-actions { display: flex; align-items: center; gap: 20px; }
.lang-link { color: var(--ink); font-weight: 500; }

.menu-toggle {
  display: none; width: 48px; height: 48px; border: 1px solid var(--line); border-radius: var(--radius-sm);
  background: var(--paper); cursor: pointer; align-items: center; justify-content: center;
}
.menu-toggle-bars, .menu-toggle-bars::before, .menu-toggle-bars::after {
  display: block; width: 22px; height: 2px; background: var(--ink); border-radius: 2px; position: relative; transition: transform .2s ease, opacity .2s ease;
}
.menu-toggle-bars::before, .menu-toggle-bars::after { content: ""; position: absolute; left: 0; }
.menu-toggle-bars::before { top: -7px; }
.menu-toggle-bars::after { top: 7px; }
.menu-toggle[aria-expanded="true"] .menu-toggle-bars { background: transparent; }
.menu-toggle[aria-expanded="true"] .menu-toggle-bars::before { transform: translateY(7px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] .menu-toggle-bars::after { transform: translateY(-7px) rotate(-45deg); }

/* Hero */
.hero { padding-block: clamp(40px, 6vw, 72px) clamp(56px, 7vw, 88px); }
.hero-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(32px, 4vw, 56px); align-items: center; }
.hero-copy { display: flex; flex-direction: column; gap: 24px; min-width: 0; }
.eyebrow {
  display: flex; align-items: center; gap: 12px;
  font-size: 0.875rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent);
}
.eyebrow-rule { width: 32px; height: 3px; background: var(--accent); }
.lead { font-size: var(--fs-lead); color: var(--muted); max-width: 36rem; }
.hero-proof {
  display: flex; flex-wrap: wrap; gap: 8px 28px; margin-top: 8px; padding-top: 20px;
  border-top: 1px solid var(--line); font-size: var(--fs-small); color: var(--subtle);
}
.hero-media { position: relative; min-width: 0; }
.hero-media > img,
.hero-video { width: 100%; aspect-ratio: 5 / 4; object-fit: cover; border-radius: 16px; display: block; background: var(--placeholder); }
.hero-video img { width: 100%; height: 100%; object-fit: cover; }

/* Pause / play control (required for moving content longer than 5 s – WCAG 2.2.2) */
.video-toggle {
  position: absolute; right: 16px; top: 16px;
  display: inline-flex; align-items: center; gap: 8px;
  min-height: 40px; padding: 0 14px;
  border: 0; border-radius: 999px;
  background: rgba(21, 23, 58, 0.72); color: #fff;
  font: 600 0.8125rem/1 var(--font); cursor: pointer;
}
.video-toggle:hover { background: rgba(21, 23, 58, 0.9); }
.video-toggle[hidden] { display: none; }
.video-toggle-icon { width: 10px; height: 12px; border-left: 3px solid #fff; border-right: 3px solid #fff; box-sizing: border-box; }
.video-toggle[aria-pressed="true"] .video-toggle-icon {
  width: 0; height: 0; border-right: 0;
  border-top: 6px solid transparent; border-bottom: 6px solid transparent; border-left: 10px solid #fff;
}
.hero-card {
  position: absolute; left: -32px; bottom: 32px;
  display: flex; gap: 24px; align-items: stretch;
  background: var(--paper); border-radius: 12px; padding: 18px 22px;
  box-shadow: 0 12px 32px rgba(21, 23, 58, 0.14);
}
.hero-card div:not(.hero-card-divider) { display: flex; flex-direction: column; }
.hero-card strong { font-size: 1.625rem; color: var(--brand); line-height: 1.2; font-variant-numeric: tabular-nums; }
.hero-card span { font-size: 0.8125rem; color: var(--subtle); }
.hero-card-divider { width: 1px; background: var(--line); }

/* Figures band */
.figures { background: var(--brand); color: #fff; padding-block: 48px; }
.figures-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px; }
.figure { display: flex; flex-direction: column; gap: 4px; }
.figure strong { font-size: clamp(2rem, 1.5rem + 1.6vw, 3rem); font-weight: 700; letter-spacing: -0.02em; line-height: 1.1; font-variant-numeric: tabular-nums; }
.figure span { color: var(--on-dark); font-size: 0.9375rem; }

/* Sections */
.section { padding-block: var(--section); }
.section-tint { background: var(--tint); }
.section-head { display: flex; flex-direction: column; gap: 14px; max-width: 44rem; margin-bottom: 44px; }
.section-head-split { max-width: none; flex-direction: row; justify-content: space-between; align-items: flex-end; gap: 24px; }
.section-head-split > div { display: flex; flex-direction: column; gap: 14px; max-width: 44rem; }
.kicker { font-size: 0.875rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent); }

/* Products */
.product-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.product-card {
  display: flex; flex-direction: column; background: var(--paper);
  border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; color: var(--ink);
  transition: border-color .15s ease, box-shadow .2s ease, transform .2s ease;
}
.product-card:hover { color: var(--ink); border-color: #CFCFE3; box-shadow: 0 10px 28px rgba(21, 23, 58, 0.08); transform: translateY(-2px); }
.product-card > img, .photo-slot { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.photo-slot { display: flex; align-items: center; justify-content: center; background: var(--placeholder); color: var(--subtle); font-size: var(--fs-small); }
.product-body { padding: 22px 24px 26px; display: flex; flex-direction: column; gap: 8px; }
.product-title { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.product-title h3 { font-size: 1.25rem; }
.size { font-size: var(--fs-small); font-weight: 700; color: var(--accent); white-space: nowrap; font-variant-numeric: tabular-nums; }
.product-body p { color: var(--muted); font-size: 0.9375rem; }
.product-cta {
  background: var(--tint); border-radius: var(--radius); padding: 32px 28px;
  display: flex; flex-direction: column; justify-content: space-between; gap: 24px;
}
.product-cta h3 { font-size: 1.5rem; line-height: 1.25; }
.product-cta p { color: var(--muted); margin-top: 10px; font-size: 0.9375rem; }

/* Sectors */
.sector-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 16px; }
.sector { background: var(--paper); border-radius: 12px; padding: 26px 22px; display: flex; flex-direction: column; gap: 10px; }
.sector h3 { font-size: 1.1875rem; }
.sector p { font-size: var(--fs-small); color: var(--muted); }

/* Presence */
.presence-grid { display: grid; grid-template-columns: 5fr 6fr; gap: clamp(32px, 5vw, 80px); align-items: center; }
.presence-copy { display: flex; flex-direction: column; gap: 20px; min-width: 0; }
.presence-copy > p:not(.kicker) { color: var(--muted); font-size: 1.0625rem; }
.presence-copy img { width: 100%; aspect-ratio: 10 / 3; object-fit: cover; border-radius: 12px; margin-top: 4px; }
.locations { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.location {
  border: 1px solid var(--line); border-radius: 12px; padding: 24px 26px;
  display: grid; grid-template-columns: 1fr 1.4fr auto; gap: 8px 20px; align-items: center;
}
.location-name { display: flex; align-items: center; gap: 14px; }
.location-name h3 { font-size: 1.25rem; }
.pin { width: 12px; height: 12px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 6px #DCE8F5; flex-shrink: 0; }
.location p { color: var(--muted); font-size: 0.9375rem; }
.location-phone { font-weight: 600; color: var(--ink); white-space: nowrap; font-variant-numeric: tabular-nums; }

/* News */
.news-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.news-card { background: var(--paper); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; color: var(--ink); }
.news-card:hover { color: var(--ink); }
.news-card:hover h3 { text-decoration: underline; }
.news-card img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.news-body { padding: 22px 24px 26px; display: flex; flex-direction: column; gap: 8px; }
.meta { font-size: 0.8125rem; font-weight: 600; color: var(--accent); }
.news-body h3 { font-size: 1.1875rem; line-height: 1.35; }
.events { background: var(--paper); border-radius: var(--radius); padding: 26px; }
.events-title { font-size: 0.8125rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--subtle); margin-bottom: 8px; }
.events li + li { border-top: 1px solid var(--line); }
.events a { display: flex; align-items: center; gap: 16px; padding-block: 12px; color: var(--ink); }
.events a:hover strong { text-decoration: underline; }
.events img { width: 88px; height: 66px; object-fit: cover; border-radius: var(--radius-sm); flex-shrink: 0; }
.events a > span { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.events strong { color: var(--brand); font-size: 1rem; line-height: 1.35; }
.events .todo { font-size: 0.8125rem; }

/* CTA */
.cta {
  background: var(--brand); color: #fff; border-radius: 20px;
  padding: clamp(36px, 5vw, 64px) clamp(24px, 5vw, 72px);
  display: flex; justify-content: space-between; align-items: center; gap: 32px; flex-wrap: wrap;
}
.cta-copy { display: flex; flex-direction: column; gap: 12px; max-width: 44rem; min-width: 0; }
.cta h2 { color: #fff; font-size: clamp(1.625rem, 1.2rem + 1.4vw, 2.5rem); }
.cta p { color: var(--on-dark); font-size: 1.0625rem; overflow-wrap: anywhere; }

/* Footer */
.site-footer { background: var(--footer); color: var(--on-footer); padding-block: 64px 32px; font-size: 0.9375rem; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1.3fr; gap: 32px; }
.footer-about { display: flex; flex-direction: column; gap: 18px; padding-right: 32px; }
.footer-logo { background: #fff; border-radius: 10px; padding: 10px 14px; align-self: flex-start; }
.footer-logo img { width: 170px; }
.footer-title { color: #fff; font-size: 1rem; letter-spacing: 0; margin-bottom: 12px; }
.site-footer ul { display: flex; flex-direction: column; gap: 10px; }
.site-footer a { color: var(--on-footer); overflow-wrap: anywhere; }
.site-footer a:hover { color: #fff; }
.social { color: #fff !important; font-weight: 600; }
.footer-bottom {
  margin-top: 48px; padding-top: 22px; border-top: 1px solid #2E2B66;
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: 0.8125rem; color: #8E8CB8;
}
.footer-bottom ul { flex-direction: row; gap: 24px; }
.footer-bottom a { color: #8E8CB8; }

/* ---------- Responsive ---------- */
@media (max-width: 1180px) {
  .nav-links { gap: 20px; }
  .site-nav { gap: 22px; }
  .sector-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

/* Tablet & mobile: collapse the menu */
@media (max-width: 1024px) {
  :root { --header-h: 76px; }
  .brand img { width: 150px; }
  .menu-toggle { display: inline-flex; }
  .site-nav {
    position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--paper); border-bottom: 1px solid var(--line);
    padding: 8px var(--gutter) 24px;
    box-shadow: 0 16px 32px rgba(21, 23, 58, 0.08);
    display: none;
  }
  .site-nav.is-open { display: flex; }
  .nav-links { flex-direction: column; gap: 0; }
  .nav-links a { display: block; padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 1.0625rem; }
  .nav-actions { justify-content: space-between; padding-top: 18px; }

  .hero-grid { grid-template-columns: 1fr; }
  .hero-card { left: 16px; bottom: 16px; }
  .product-grid, .news-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .events { grid-column: 1 / -1; }
  .presence-grid { grid-template-columns: 1fr; }
  .figures-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-about { grid-column: 1 / -1; padding-right: 0; }
}

@media (max-width: 640px) {
  .section-head-split { flex-direction: column; align-items: flex-start; }
  .product-grid, .news-grid, .sector-grid { grid-template-columns: 1fr; }
  .hero-card { position: static; margin-top: 12px; box-shadow: none; border: 1px solid var(--line); justify-content: space-around; }
  .btn-row .btn { flex: 1 1 100%; }
  .location { grid-template-columns: 1fr; }
  .figures-grid { gap: 24px 16px; }
  .footer-grid { grid-template-columns: 1fr; }
}

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


/* =========================================================
   Inner pages (About, Products, Product detail, Contact)
   ========================================================= */

/* Current page in the menu */
.nav-links a[aria-current="page"] { color: var(--brand); box-shadow: inset 0 -2px 0 var(--brand); }

/* Page header */
.page-hero { background: var(--tint); padding-block: clamp(32px, 4vw, 48px) clamp(48px, 6vw, 80px); }
.breadcrumb { display: flex; flex-wrap: wrap; gap: 8px; font-size: var(--fs-small); color: var(--subtle); margin-bottom: clamp(28px, 4vw, 44px); }
.breadcrumb a { color: var(--subtle); }
.breadcrumb a:hover { color: var(--brand); text-decoration: underline; }
.breadcrumb li + li::before { content: "/"; margin-right: 8px; color: #A9ABC2; }
.breadcrumb [aria-current="page"] { color: var(--ink); }
.page-hero-grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(32px, 5vw, 64px); align-items: center; }
.page-hero-copy { display: flex; flex-direction: column; gap: 20px; min-width: 0; }
.page-hero h1 { font-size: clamp(2.125rem, 1.5rem + 2.4vw, 3.25rem); }
.page-hero-media img, .page-hero-media .photo-slot { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 16px; }
.page-hero-simple .page-hero-copy { max-width: 46rem; }

/* Key spec tiles */
.spec-tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin-top: -40px; position: relative; }
.spec-tile { background: var(--paper); border: 1px solid var(--line); border-radius: 12px; padding: 20px 22px; display: flex; flex-direction: column; gap: 4px; box-shadow: 0 8px 24px rgba(21, 23, 58, 0.06); }
.spec-tile span { font-size: 0.8125rem; color: var(--subtle); }
.spec-tile strong { font-size: clamp(1.25rem, 1rem + 0.8vw, 1.625rem); color: var(--brand); line-height: 1.2; font-variant-numeric: tabular-nums; }
.spec-tile small { font-size: 0.8125rem; color: var(--subtle); font-variant-numeric: tabular-nums; }

/* Content + sidebar */
.content-grid { display: grid; grid-template-columns: minmax(0, 8fr) minmax(0, 4fr); gap: clamp(32px, 5vw, 64px); align-items: start; }
.content-main { display: flex; flex-direction: column; gap: clamp(48px, 6vw, 72px); min-width: 0; }
.content-block { display: flex; flex-direction: column; gap: 18px; }
.content-block h2 { font-size: clamp(1.5rem, 1.2rem + 1vw, 2rem); }
.content-block > p { color: var(--muted); max-width: 42rem; }
.prose { display: flex; flex-direction: column; gap: 16px; color: var(--muted); font-size: 1.0625rem; max-width: 42rem; }

/* Spec table */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 12px; }
.spec-table { width: 100%; border-collapse: collapse; font-size: 0.9375rem; min-width: 520px; }
.spec-table th, .spec-table td { text-align: left; padding: 14px 18px; vertical-align: top; border-bottom: 1px solid var(--line); }
.spec-table tr:last-child th, .spec-table tr:last-child td { border-bottom: 0; }
.spec-table thead th { background: var(--tint); color: var(--brand); font-weight: 700; font-size: 0.875rem; }
.spec-table tbody th { width: 34%; font-weight: 600; color: var(--ink); }
.spec-table td { color: var(--muted); font-variant-numeric: tabular-nums; }
.spec-table td a { font-weight: 600; }
.table-note { font-size: var(--fs-small); color: var(--subtle); }

/* Steps (a real sequence) */
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 16px; counter-reset: step; }
.steps li { counter-increment: step; border-top: 3px solid var(--accent); padding-top: 14px; display: flex; flex-direction: column; gap: 6px; }
.steps li::before { content: counter(step, decimal-leading-zero); font-size: 0.8125rem; font-weight: 700; color: var(--accent); }
.steps strong { color: var(--brand); font-size: 1.0625rem; }
.steps span { color: var(--muted); font-size: 0.9375rem; }

/* Chips */
.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chips li { padding: 8px 14px; border: 1px solid var(--line); border-radius: 999px; background: var(--paper); font-size: 0.9375rem; color: var(--ink); }

/* Sidebar cards */
.sidebar { display: flex; flex-direction: column; gap: 20px; position: sticky; top: calc(var(--header-h) + 24px); }
.side-card { border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; display: flex; flex-direction: column; gap: 12px; background: var(--paper); }
.side-card h2 { font-size: 1.125rem; letter-spacing: -0.01em; }
.side-card-dark { background: var(--brand); border-color: var(--brand); color: #fff; }
.side-card-dark h2 { color: #fff; }
.side-card-dark p { color: var(--on-dark); font-size: 0.9375rem; }
.side-card-dark .btn { width: 100%; }
.contact-lines { display: flex; flex-direction: column; gap: 6px; font-size: 0.875rem; color: var(--on-dark); border-top: 1px solid rgba(255,255,255,0.18); padding-top: 12px; font-variant-numeric: tabular-nums; }
.link-list li + li { border-top: 1px solid var(--line); }
.link-list a { display: flex; justify-content: space-between; gap: 12px; padding-block: 11px; color: var(--ink); font-size: 0.9375rem; }
.link-list a:hover { color: var(--brand); }
.link-list a span:last-child { color: var(--subtle); font-size: 0.8125rem; white-space: nowrap; }
.link-list a[aria-current="page"] { color: var(--brand); font-weight: 700; }
.note-card { background: var(--tint); border-radius: var(--radius); padding: 22px 24px; display: flex; flex-direction: column; gap: 8px; }
.note-card h3 { font-size: 1.0625rem; }
.note-card p { color: var(--muted); font-size: 0.9375rem; }

/* Timeline (About) */
.timeline { display: flex; flex-direction: column; border-left: 2px solid var(--line); margin-left: 6px; }
.timeline li { position: relative; padding: 0 0 28px 28px; display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 4px 20px; }
.timeline li:last-child { padding-bottom: 0; }
.timeline li::before { content: ""; position: absolute; left: -8px; top: 6px; width: 14px; height: 14px; border-radius: 50%; background: var(--paper); border: 3px solid var(--accent); }
.timeline .year { font-weight: 700; color: var(--accent); font-variant-numeric: tabular-nums; }
.timeline h3 { font-size: 1.125rem; }
.timeline p { grid-column: 2; color: var(--muted); font-size: 0.9375rem; }

/* Facility cards (About) */
.facility-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.facility { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; background: var(--paper); }
.facility img, .facility .photo-slot { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.facility-body { padding: 22px 24px 26px; display: flex; flex-direction: column; gap: 10px; }
.facility-body h3 { font-size: 1.25rem; }
.facility-body p { color: var(--muted); font-size: 0.9375rem; }
.facility-body ul { display: flex; flex-direction: column; gap: 6px; font-size: 0.9375rem; color: var(--ink); }
.facility-body li::before { content: ""; display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); margin-right: 10px; vertical-align: middle; }

/* Certificates (About) */
.cert-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.cert { background: var(--paper); border: 1px solid var(--line); border-radius: 12px; padding: 22px; display: flex; flex-direction: column; gap: 6px; }
.cert strong { color: var(--brand); font-size: 1.125rem; }
.cert span { color: var(--muted); font-size: 0.9375rem; }
.award-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.award { margin: 0; background: var(--paper); border-radius: var(--radius); overflow: hidden; }
.award img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.award figcaption { padding: 18px 22px; color: var(--muted); font-size: 0.9375rem; }
.award figcaption strong { display: block; color: var(--brand); font-size: 1.0625rem; margin-bottom: 4px; }

/* Link cards (About → governance) */
.link-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.link-card { border: 1px solid var(--line); border-radius: 12px; padding: 22px 24px; display: flex; justify-content: space-between; align-items: center; gap: 16px; color: var(--ink); font-weight: 600; }
.link-card:hover { border-color: #CFCFE3; color: var(--brand); }
.link-card span:last-child { color: var(--accent); }

/* Process chain (Products overview) */
.chain { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--paper); }
.chain li { padding: 24px; display: flex; flex-direction: column; gap: 6px; position: relative; }
.chain li + li { border-left: 1px solid var(--line); }
.chain li + li::before { content: "→"; position: absolute; left: -11px; top: 22px; width: 20px; height: 20px; background: var(--paper); color: var(--accent); font-weight: 700; display: flex; align-items: center; justify-content: center; }
.chain strong { color: var(--brand); font-size: 1.0625rem; }
.chain span { color: var(--muted); font-size: 0.9375rem; }

/* Contact page */
.contact-grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(32px, 5vw, 64px); align-items: start; }
.form-card { border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(24px, 3vw, 40px); display: flex; flex-direction: column; gap: 22px; background: var(--paper); }
.form-card h2 { font-size: 1.5rem; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 20px; }
.form-grid .full { grid-column: 1 / -1; }
.field { display: flex; flex-direction: column; gap: 7px; min-width: 0; }
.field label, .field legend { font-size: 0.875rem; font-weight: 600; color: var(--ink); }
.field .optional { font-weight: 400; color: var(--subtle); }
.field input, .field select, .field textarea {
  width: 100%; min-height: 48px; padding: 10px 14px;
  border: 1px solid #C5C7D8; border-radius: var(--radius-sm);
  font: 400 1rem/1.4 var(--font); color: var(--ink); background: var(--paper);
}
.field textarea { min-height: 140px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 3px solid rgba(49, 115, 184, 0.35); outline-offset: 0; border-color: var(--accent); }
.field [aria-invalid="true"] { border-color: #B42318; }
.field-error { font-size: 0.8125rem; color: #B42318; }
.field-error:empty { display: none; }
fieldset.field { border: 0; padding: 0; margin: 0; }
.radio-row { display: flex; flex-wrap: wrap; gap: 10px 22px; }
.radio-row label { display: flex; align-items: center; gap: 8px; font-weight: 500; min-height: 32px; }
.radio-row input { width: 18px; height: 18px; min-height: 0; accent-color: var(--brand); }
.consent { display: flex; gap: 12px; align-items: flex-start; font-size: 0.875rem; color: var(--muted); }
.consent input { width: 20px; height: 20px; margin-top: 2px; flex-shrink: 0; accent-color: var(--brand); }
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; }
.form-status { font-size: 0.9375rem; border-radius: var(--radius-sm); padding: 12px 16px; }
.form-status:empty { display: none; }
.form-status.is-ok { background: #E8F5EE; color: #11623A; }
.form-status.is-error { background: #FDECEA; color: #8A1C12; }
.contact-side { display: flex; flex-direction: column; gap: 20px; }
.direct-list li { display: flex; flex-direction: column; gap: 2px; padding-block: 12px; border-top: 1px solid var(--line); }
.direct-list li:first-child { border-top: 0; padding-top: 0; }
.direct-list span { font-size: 0.8125rem; color: var(--subtle); }
.direct-list strong, .direct-list a { color: var(--ink); font-weight: 600; overflow-wrap: anywhere; font-variant-numeric: tabular-nums; }
.office-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.office { border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; display: flex; flex-direction: column; gap: 10px; background: var(--paper); }
.office h3 { font-size: 1.25rem; display: flex; align-items: center; gap: 12px; }
.office p, .office li { color: var(--muted); font-size: 0.9375rem; font-variant-numeric: tabular-nums; }
.office .text-link { margin-top: 6px; }

@media (max-width: 1024px) {
  .page-hero-grid, .content-grid, .contact-grid { grid-template-columns: 1fr; }
  .sidebar { position: static; }
  .spec-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: -32px; }
  .facility-grid, .office-grid { grid-template-columns: 1fr 1fr; }
  .cert-grid, .link-cards { grid-template-columns: 1fr 1fr; }
  .chain { grid-template-columns: 1fr 1fr; }
  .chain li:nth-child(3) { border-left: 0; }
  .chain li:nth-child(n+3) { border-top: 1px solid var(--line); }
  .chain li:nth-child(3)::before { display: none; }
}
@media (max-width: 640px) {
  .spec-tiles { grid-template-columns: 1fr 1fr; gap: 12px; }
  .facility-grid, .office-grid, .cert-grid, .link-cards, .award-grid, .form-grid { grid-template-columns: 1fr; }
  .chain { grid-template-columns: 1fr; }
  .chain li + li { border-left: 0; border-top: 1px solid var(--line); }
  .chain li + li::before { display: none; }
  .timeline li { grid-template-columns: 1fr; }
  .timeline p { grid-column: 1; }
}

/* Section tabs (About and Investors groups) */
.subnav { margin-top: clamp(28px, 4vw, 40px); overflow-x: auto; }
.subnav ul { display: flex; gap: 8px; min-width: max-content; }
.subnav a { display: inline-flex; align-items: center; min-height: 40px; padding: 0 16px; border-radius: 999px; border: 1px solid #D5D6E6; background: var(--paper); color: var(--ink); font-size: 0.9375rem; font-weight: 500; white-space: nowrap; }
.subnav a:hover { border-color: var(--brand); color: var(--brand); }
.subnav a[aria-current="page"] { background: var(--brand); border-color: var(--brand); color: #fff; }

/* Board */
.board-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.member { border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; display: grid; grid-template-columns: 72px minmax(0, 1fr); gap: 4px 20px; background: var(--paper); }
.member-initials { grid-row: span 3; width: 72px; height: 72px; border-radius: 50%; background: var(--tint); color: var(--brand); display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 1.25rem; }
.member h3 { font-size: 1.1875rem; }
.member .role { font-size: 0.875rem; font-weight: 700; color: var(--accent); }
.member ul { grid-column: 2; display: flex; flex-direction: column; gap: 6px; margin-top: 8px; color: var(--muted); font-size: 0.9375rem; }
.member li { padding-left: 16px; position: relative; }
.member li::before { content: ""; position: absolute; left: 0; top: 0.65em; width: 6px; height: 6px; border-radius: 50%; background: #B9BCD6; }

/* Policy lists */
.policy-list { counter-reset: pol; display: flex; flex-direction: column; gap: 14px; }
.policy-list li { counter-increment: pol; display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: 4px 16px; padding: 20px 22px; border: 1px solid var(--line); border-radius: 12px; background: var(--paper); }
.policy-list li::before { content: counter(pol); grid-row: span 2; width: 32px; height: 32px; border-radius: 50%; background: var(--tint); color: var(--brand); font-weight: 700; display: flex; align-items: center; justify-content: center; font-size: 0.875rem; }
.policy-list strong { color: var(--brand); font-size: 1.0625rem; }
.policy-list span { color: var(--muted); font-size: 0.9375rem; }
.pillar-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.pillar { border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; background: var(--paper); display: flex; flex-direction: column; gap: 14px; }
.pillar h3 { font-size: 1.25rem; }
.pillar ul { display: flex; flex-direction: column; gap: 10px; color: var(--muted); font-size: 0.9375rem; }
.pillar li { padding-left: 18px; position: relative; }
.pillar li::before { content: ""; position: absolute; left: 0; top: 0.6em; width: 8px; height: 8px; border-radius: 2px; background: var(--accent); }
.pillar-tag { font-size: 0.8125rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--accent); }

/* Document lists */
.doc-list li + li { border-top: 1px solid var(--line); }
.doc-list a, .doc-list .doc-missing { display: grid; grid-template-columns: 40px minmax(0, 1fr) auto; gap: 16px; align-items: center; padding: 16px 4px; color: var(--ink); }
.doc-list a:hover .doc-title { color: var(--brand); text-decoration: underline; }
.doc-icon { width: 40px; height: 48px; border-radius: 6px; background: var(--tint); color: var(--brand); font-size: 0.6875rem; font-weight: 700; display: flex; align-items: flex-end; justify-content: center; padding-bottom: 8px; }
.doc-title { font-weight: 600; }
.doc-meta { font-size: 0.8125rem; color: var(--subtle); display: block; font-weight: 400; }
.doc-action { font-size: 0.875rem; font-weight: 600; color: var(--brand); white-space: nowrap; }
.doc-group + .doc-group { margin-top: 40px; }
.doc-group h3 { font-size: 1.25rem; margin-bottom: 8px; }

/* Filters (projects) */
.filter-bar { display: flex; flex-wrap: wrap; gap: 12px 20px; align-items: center; margin-bottom: 20px; }
.chip-row { display: flex; flex-wrap: wrap; gap: 8px; }
.chip-btn { min-height: 40px; padding: 0 16px; border-radius: 999px; border: 1px solid #D5D6E6; background: var(--paper); color: var(--ink); font: 500 0.9375rem var(--font); cursor: pointer; }
.chip-btn:hover { border-color: var(--brand); }
.chip-btn[aria-pressed="true"] { background: var(--brand); border-color: var(--brand); color: #fff; }
.filter-bar select { min-height: 40px; padding: 0 12px; border: 1px solid #C5C7D8; border-radius: var(--radius-sm); font: 400 0.9375rem var(--font); background: var(--paper); color: var(--ink); }
.result-count { font-size: var(--fs-small); color: var(--subtle); margin-left: auto; }
.project-table { min-width: 860px; }
.project-table td:nth-child(6) { text-align: right; white-space: nowrap; }
.project-table th { white-space: nowrap; }
.client-chips li { font-weight: 600; }

/* Chart */
.chart-card { border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; background: var(--paper); }
.chart-head { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; align-items: baseline; margin-bottom: 12px; }
.chart-head h3 { font-size: 1.125rem; }
.legend { display: flex; gap: 18px; font-size: 0.875rem; color: var(--muted); }
.legend span { display: inline-flex; align-items: center; gap: 8px; }
.legend i { width: 12px; height: 12px; border-radius: 3px; display: inline-block; }
.chart-wrap { overflow-x: auto; }
.chart-wrap svg { display: block; width: 100%; min-width: 560px; height: auto; }
.chart-wrap .bar:hover, .chart-wrap .bar:focus { opacity: 0.8; outline: none; }
.chart-tip { position: fixed; pointer-events: none; background: var(--ink); color: #fff; font-size: 0.8125rem; padding: 8px 10px; border-radius: 6px; z-index: 60; font-variant-numeric: tabular-nums; }
.kv-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.kv { border: 1px solid var(--line); border-radius: 12px; padding: 18px 20px; display: flex; flex-direction: column; gap: 4px; background: var(--paper); }
.kv span { font-size: 0.8125rem; color: var(--subtle); }
.kv strong { font-size: 1.25rem; color: var(--brand); font-variant-numeric: tabular-nums; }
.num { text-align: right; font-variant-numeric: tabular-nums; }
.neg { color: #8A1C12; }

/* Legal text */
.legal { max-width: 46rem; display: flex; flex-direction: column; gap: 14px; color: var(--muted); }
.legal h2 { font-size: 1.375rem; margin-top: 24px; }
.legal ul { list-style: disc; padding-left: 22px; display: flex; flex-direction: column; gap: 6px; }
.draft-banner { background: #FFF4E5; color: #7A4A00; border-radius: var(--radius-sm); padding: 12px 16px; font-size: 0.9375rem; }

/* File input */
.field input[type=file] { padding: 10px; min-height: 0; }

@media (max-width: 1024px) {
  .board-grid, .pillar-grid { grid-template-columns: 1fr; }
  .kv-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .member { grid-template-columns: 1fr; }
  .member-initials { grid-row: auto; width: 56px; height: 56px; }
  .member ul { grid-column: 1; }
  .kv-grid { grid-template-columns: 1fr; }
  .result-count { margin-left: 0; width: 100%; }
}

/* News list */
.news-list { display: flex; flex-direction: column; }
.news-row { display: grid; grid-template-columns: 110px 110px minmax(0, 1fr); gap: 6px 20px; padding: 20px 0; border-top: 1px solid var(--line); align-items: baseline; }
.news-row:last-child { border-bottom: 1px solid var(--line); }
.news-date { font-weight: 700; color: var(--brand); font-variant-numeric: tabular-nums; }
.news-cat { font-size: 0.75rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent); }
.news-row h3 { font-size: 1.125rem; line-height: 1.35; }
.news-row p { color: var(--muted); font-size: 0.9375rem; margin-top: 4px; }
@media (max-width: 640px) {
  .news-row { grid-template-columns: auto 1fr; }
  .news-row > div { grid-column: 1 / -1; }
}
