/* POWER website v2 — page sections */

/* ---------- Dark rounded band ---------- */
.site-header { padding-inline: 16px; }
.band { position: relative; isolation: isolate; margin: 0 10px; overflow: hidden; border-radius: var(--radius-lg); }
.band::before { content: ""; position: absolute; left: 15%; right: 15%; top: -25%; height: 60%; z-index: -1; background: radial-gradient(50% 50% at 50% 50%, rgba(29, 91, 216, .38), transparent 70%); filter: blur(30px); pointer-events: none; }
.band + .band { margin-top: 10px; }

/* ---------- Split layout ---------- */
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(2.25rem, 6vw, 5.5rem); align-items: center; }
.split.reverse > :first-child { order: 2; }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; } .split.reverse > :first-child { order: 0; } }

/* ---------- Credentials strip ---------- */
.cred-strip { display: flex; flex-wrap: wrap; gap: 10px; margin: 0; padding: 0; list-style: none; }
.cred-strip li { flex: 1 1 210px; display: flex; align-items: center; gap: .8rem; padding: 1rem 1.15rem; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); }
.cred-strip .seal { flex: none; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; font-family: var(--mono); font-size: .62rem; font-weight: 600; color: var(--white); background: conic-gradient(from 200deg, var(--blue-deep), var(--cyan), var(--blue-deep)); }
.cred-strip .seal-img { width: 52px; height: 52px; border-radius: 0; background: none; }
.cred-strip .seal-img img { max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; }
.cred-strip strong { display: block; color: var(--ink); font-size: .92rem; font-weight: 600; line-height: 1.25; }
.cred-strip span { display: block; font-size: .82rem; color: var(--muted); line-height: 1.35; }

/* ---------- Certifications grid (home) ---------- */
.cert-cards { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 14px; margin: 0; padding: 0; list-style: none; }
.cert-cards.two { grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: 660px; }
@media (max-width: 1100px) { .cert-cards { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 700px) { .cert-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.cert-card { display: flex; flex-direction: column; gap: .55rem; padding: 1.5rem 1.4rem; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); }
.cert-card .cert-logo { display: flex; align-items: center; justify-content: flex-start; height: 74px; margin-bottom: .3rem; }
.cert-card .cert-logo img { max-height: 72px; max-width: 84%; width: auto; height: auto; object-fit: contain; }

.cert-card h3 { margin: 0; font-size: 1.02rem; line-height: 1.25; color: var(--ink); }
.cert-card p { margin: 0; font-size: .86rem; line-height: 1.45; color: var(--muted); }
.cert-card .chips { margin-top: auto; padding-top: .55rem; }
@media (max-width: 600px) { .cert-card .cert-logo { height: 62px; } }

/* ---------- Certificates ---------- */
.cert-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr)); gap: 14px; margin: 0; padding: 0; list-style: none; }
.cert { position: relative; overflow: hidden; padding: 1.9rem 1.75rem; background: var(--night-2); border: 1px solid var(--glass-line); border-radius: var(--radius); color: var(--on-night); }
.cert::before { content: ""; position: absolute; right: -40px; top: -40px; width: 140px; height: 140px; border-radius: 50%; background: radial-gradient(circle, rgba(82, 214, 255, .35), transparent 65%); }
.cert .std { display: block; font-size: clamp(1.7rem, 2.8vw, 2.2rem); font-weight: 600; letter-spacing: -.04em; line-height: 1; color: var(--white); }
.cert .yr { color: var(--cyan); }
.cert h3 { margin: 1rem 0 .4rem; font-size: 1.02rem; color: var(--white); }
.cert p { margin: 0; font-size: .94rem; color: var(--on-night-muted); }

/* ---------- Name walls ---------- */
.name-cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2.5rem 4rem; }
@media (max-width: 860px) { .name-cols { grid-template-columns: 1fr; } }
.name-cols h3 { margin-bottom: 1rem; font-family: var(--mono); font-size: .74rem; font-weight: 500; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.name-list { margin: 0; padding: 0; list-style: none; columns: 2 220px; column-gap: 2rem; }
.name-list li { break-inside: avoid; padding: .65rem 0; border-bottom: 1px solid var(--line); font-weight: 500; font-size: .98rem; color: var(--ink); }

/* ---------- Spec table ---------- */
.table-wrap { overflow-x: auto; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); }
.spec-table { width: 100%; min-width: 640px; border-collapse: collapse; font-size: .96rem; }
.spec-table th, .spec-table td { padding: 1.05rem 1.3rem; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
.spec-table thead th { font-family: var(--mono); font-size: .72rem; font-weight: 500; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); background: var(--card); }
.spec-table tbody th { color: var(--ink); font-weight: 600; }
.spec-table tbody tr:last-child > * { border-bottom: 0; }
.spec-table tbody tr { transition: background-color .2s; }
.spec-table tbody tr:hover { background: var(--paper); }

/* ---------- Downloads ---------- */
.download-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 12px; margin: 0; padding: 0; list-style: none; }
.download { display: flex; align-items: center; gap: 1rem; padding: 1.1rem 1.25rem; color: var(--ink); text-decoration: none; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); transition: transform .3s var(--ease), box-shadow .3s, border-color .3s; }
.download:hover { color: var(--ink); transform: translateY(-3px); border-color: var(--ink); box-shadow: 0 18px 44px rgba(9, 17, 30, .1); }
.download .file { flex: none; display: grid; place-items: center; width: 44px; height: 54px; font-family: var(--mono); font-size: .66rem; font-weight: 600; color: var(--white); background: var(--ink); border-radius: 6px; clip-path: polygon(0 0, 70% 0, 100% 22%, 100% 100%, 0 100%); }
.download strong { display: block; font-weight: 600; }
.download span { font-size: .86rem; color: var(--muted); }
.download .go { margin-left: auto; font-size: 1.1rem; transition: transform .3s var(--ease); }
.download:hover .go { transform: translateY(3px); }
.dark .download { background: var(--glass); border-color: var(--glass-line); color: var(--white); }
.dark .download:hover { border-color: var(--cyan); color: var(--white); }
.dark .download span { color: var(--on-night-muted); }
.dark .download .file { background: var(--white); color: var(--ink); }

/* ---------- Quote ---------- */
.quote { margin: 0; }
.quote p { font-size: clamp(1.35rem, 2.6vw, 2.1rem); line-height: 1.35; letter-spacing: -.02em; font-weight: 500; color: var(--ink); }
.quote footer { display: flex; align-items: center; gap: .8rem; font-size: .92rem; color: var(--muted); }
.quote footer::before { content: ""; width: 32px; height: 1px; background: var(--muted); }

/* ---------- Services: discipline rows ---------- */
.discipline-list { display: grid; gap: 14px; }
.discipline-row { display: grid; grid-template-columns: 90px minmax(0, 1.1fr) minmax(0, 1fr) minmax(0, .9fr); gap: 1.5rem 2rem; align-items: center; padding: 1.25rem; background: var(--card); border-radius: var(--radius); transition: background-color .3s, box-shadow .3s; }
.discipline-row:hover { background: var(--white); box-shadow: 0 20px 50px rgba(9, 17, 30, .07); }
.discipline-row .num { font-family: var(--mono); font-size: .8rem; color: var(--muted); padding-left: .5rem; }
.discipline-row h2 { margin: 0; font-size: clamp(1.4rem, 2.4vw, 1.9rem); }
.discipline-row p { margin: .5rem 0 0; color: var(--muted); font-size: .98rem; }
.discipline-row .chips { margin: 0; }
.discipline-row figure { margin: 0; overflow: hidden; border-radius: calc(var(--radius) - 6px); }
.discipline-row img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; transition: transform .8s var(--ease); }
.discipline-row:hover img { transform: scale(1.05); }
@media (max-width: 1000px) { .discipline-row { grid-template-columns: 60px minmax(0, 1fr); } .discipline-row .chips, .discipline-row figure { grid-column: 2; } }
@media (max-width: 560px) { .discipline-row { grid-template-columns: 1fr; } .discipline-row .chips, .discipline-row figure { grid-column: auto; } .discipline-row .num { padding: 0; } }

/* ---------- Timeline steps ---------- */
.steps { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 12px; margin: 0; padding: 0; list-style: none; counter-reset: step; }
.step { position: relative; padding: 1.4rem 1.2rem 1.5rem; background: var(--glass); border: 1px solid var(--glass-line); border-radius: var(--radius); counter-increment: step; }
/* The number sits on the heading because .spot already uses ::before for the cursor glow. */
.step h3::before { content: counter(step, decimal-leading-zero); display: block; margin-bottom: 2.2rem; font-family: var(--mono); font-size: .75rem; font-weight: 400; letter-spacing: .04em; color: var(--cyan); }
.step h3 { margin-bottom: .4rem; font-size: 1.05rem; color: var(--white); }
.step p { margin: 0; font-size: .9rem; color: var(--on-night-muted); }
.steps.five { grid-template-columns: repeat(5, minmax(0, 1fr)); }
@media (max-width: 1000px) { .steps, .steps.five { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 600px) { .steps, .steps.five { grid-template-columns: 1fr; } .step h3::before { margin-bottom: .8rem; } }

/* ---------- Projects ---------- */
.filters { display: flex; flex-wrap: wrap; align-items: center; gap: .45rem; margin-bottom: 1rem; padding: .35rem; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); }
.filters .divider { width: 1px; height: 26px; margin-inline: .3rem; background: var(--line); }
.chip { min-height: 40px; padding: .45rem 1rem; font: 500 .9rem/1 var(--font); color: var(--text); background: transparent; border: 1px solid transparent; border-radius: var(--pill); cursor: pointer; transition: background-color .2s, color .2s, border-color .2s; }
.chip:hover { color: var(--ink); background: var(--card); }
.chip[aria-pressed="true"] { color: var(--white); background: var(--ink); }
.chip .count { margin-left: .35rem; font-family: var(--mono); font-size: .72rem; opacity: .6; }
.filter-status { margin: 0 0 2rem; font-family: var(--mono); font-size: .78rem; letter-spacing: .04em; color: var(--muted); }
.project-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin: 0; padding: 0; list-style: none; }
@media (max-width: 1000px) { .project-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 620px) { .project-grid { grid-template-columns: 1fr; } }
.project-card { display: flex; flex-direction: column; padding: 10px; background: var(--card); border-radius: var(--radius); transition: transform .4s var(--ease), box-shadow .4s var(--ease), background-color .3s; }
.project-card:hover { transform: translateY(-4px); background: var(--white); box-shadow: 0 24px 60px rgba(9, 17, 30, .09); }
.project-card figure { position: relative; margin: 0; aspect-ratio: 4 / 3; overflow: hidden; border-radius: calc(var(--radius) - 6px); background: var(--night-2); }
.project-card img { width: 100%; height: 100%; object-fit: cover; transition: transform .9s var(--ease); }
.project-card:hover img { transform: scale(1.06); }
.project-card .flag { position: absolute; top: .7rem; left: .7rem; padding: .28rem .65rem; font-family: var(--mono); font-size: .68rem; letter-spacing: .06em; text-transform: uppercase; color: var(--ink); background: rgba(255, 255, 255, .85); border-radius: var(--pill); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.project-card .year { position: absolute; top: .7rem; right: .7rem; padding: .28rem .65rem; font-family: var(--mono); font-size: .68rem; color: var(--white); background: rgba(4, 7, 13, .6); border-radius: var(--pill); }
.project-body { display: flex; flex-direction: column; gap: .35rem; padding: 1rem .6rem .7rem; }
.project-body .kicker { font-family: var(--mono); font-size: .7rem; letter-spacing: .08em; text-transform: uppercase; color: var(--blue-ink); }
.project-card h3 { margin: 0; font-size: 1.08rem; line-height: 1.3; }
.project-card p { margin: 0; font-size: .92rem; color: var(--muted); }
.project-card p strong { color: var(--ink); font-weight: 500; }
.project-card .placeholder { display: grid; place-items: center; height: 100%; color: var(--cyan); background: radial-gradient(60% 60% at 50% 45%, rgba(29, 91, 216, .45), transparent 70%), var(--night-2); }
.project-card .placeholder svg { width: 58px; height: 58px; }

/* ---------- Forms ---------- */
.form { display: grid; gap: 1.1rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; }
@media (max-width: 600px) { .form-row { grid-template-columns: 1fr; } }
.field label, .field legend { display: block; margin-bottom: .4rem; font-size: .9rem; font-weight: 500; color: var(--ink); }
.field .optional { font-weight: 400; color: var(--muted); }
.field input, .field textarea, .field select { width: 100%; padding: .85rem 1rem; font: inherit; font-size: 1rem; color: var(--ink); background: var(--paper); border: 1px solid var(--line); border-radius: 12px; transition: border-color .2s, box-shadow .2s, background-color .2s; }
.field input[type="file"] { padding: .65rem; }
.field input:focus, .field textarea:focus, .field select:focus { outline: none; background: var(--white); border-color: var(--blue); box-shadow: 0 0 0 4px rgba(25, 163, 224, .18); }
.field textarea { min-height: 150px; resize: vertical; }
.field .hint { margin: .35rem 0 0; font-size: .84rem; color: var(--muted); }
fieldset.field { margin: 0; padding: 0; border: 0; min-width: 0; }
.check-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .5rem; }
@media (max-width: 560px) { .check-grid { grid-template-columns: 1fr; } }
.check-grid label { display: flex; align-items: center; gap: .6rem; margin: 0; padding: .6rem .8rem; font-size: .92rem; font-weight: 500; color: var(--ink); background: var(--paper); border: 1px solid var(--line); border-radius: 12px; cursor: pointer; transition: border-color .2s, background-color .2s; }
.check-grid label:has(input:checked) { background: var(--white); border-color: var(--ink); }
.check-grid input { width: 18px; height: 18px; flex: none; accent-color: var(--ink); }
.consent { display: flex; gap: .7rem; align-items: flex-start; font-size: .9rem; color: var(--text); }
.consent input { width: 19px; height: 19px; margin-top: .15rem; flex: none; accent-color: var(--ink); }
.form-status { padding: .9rem 1rem; font-size: .94rem; color: var(--ink); background: var(--card); border-radius: 12px; }
.form-panel { padding: clamp(1.5rem, 4vw, 2.5rem); background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: 0 30px 80px rgba(9, 17, 30, .06); }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(2rem, 5vw, 4rem); align-items: start; }
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } }
.contact-cards { display: grid; gap: 12px; margin: 0 0 12px; padding: 0; list-style: none; }
.contact-card { display: grid; grid-template-columns: 44px 1fr; gap: 1rem; padding: 1.1rem 1.2rem; background: var(--card); border-radius: var(--radius); }
.contact-card .ico { display: grid; place-items: center; width: 44px; height: 44px; color: var(--white); background: var(--ink); border-radius: 12px; }
.contact-card .ico svg { width: 20px; height: 20px; }
.contact-card .label { display: block; font-family: var(--mono); font-size: .7rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.contact-card a { color: var(--ink); font-weight: 500; text-decoration: none; }
.contact-card a:hover { color: var(--blue-ink); }
.map { display: block; width: 100%; aspect-ratio: 4 / 3; border: 0; border-radius: var(--radius); background: var(--card); }

/* ---------- Trading: cutaway ---------- */
.cutaway { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 14px; align-items: stretch; }
@media (max-width: 980px) { .cutaway { grid-template-columns: 1fr; } }
.cutaway-figure { margin: 0; padding: clamp(.75rem, 2vw, 1.5rem); background: var(--night-2); border: 1px solid var(--glass-line); border-radius: var(--radius-lg); }
.cutaway-stage { position: relative; }
.cutaway-stage svg { display: block; width: 100%; height: auto; }
.hotspot { position: absolute; z-index: 1; transform: translate(-50%, -50%); display: grid; place-items: center; width: 34px; height: 34px; padding: 0; font: 600 .78rem/1 var(--mono); color: var(--white); background: rgba(4, 7, 13, .8); border: 1.5px solid var(--cyan); border-radius: 50%; cursor: pointer; transition: background-color .2s, color .2s, transform .3s var(--ease), box-shadow .3s; }
.hotspot::after { content: ""; position: absolute; inset: -8px; border: 1.5px solid rgba(82, 214, 255, .5); border-radius: 50%; animation: hotspot-pulse 2.4s ease-out infinite; pointer-events: none; }
.hotspot:hover, .hotspot[aria-pressed="true"] { color: var(--ink); background: var(--cyan); transform: translate(-50%, -50%) scale(1.12); box-shadow: 0 0 24px rgba(82, 214, 255, .7); }
.hotspot[aria-pressed="true"]::after { animation: none; opacity: 0; }
@keyframes hotspot-pulse { 0% { transform: scale(.75); opacity: 1; } 100% { transform: scale(1.6); opacity: 0; } }
@media (max-width: 600px) { .hotspot { width: 26px; height: 26px; font-size: .64rem; } .hotspot::after { inset: -5px; } }
.cutaway-caption { margin: .9rem .25rem 0; font-size: .86rem; color: var(--on-night-muted); }
.product-tabs { display: flex; flex-wrap: wrap; gap: .4rem; margin-top: 1rem; }
.dark .chip { color: var(--on-night); border-color: var(--glass-line); }
.dark .chip:hover { color: var(--white); background: var(--glass); }
.dark .chip[aria-pressed="true"] { color: var(--ink); background: var(--cyan); border-color: var(--cyan); }
.product-panel { display: flex; flex-direction: column; padding: clamp(1.5rem, 3vw, 2.25rem); background: linear-gradient(160deg, var(--night-3), var(--night-2)); border: 1px solid var(--glass-line); border-radius: var(--radius-lg); }
.product-panel + .product-panel { margin-top: 12px; }
.product-panel .num { font-family: var(--mono); font-size: .76rem; letter-spacing: .08em; color: var(--cyan); }
.product-panel h3 { margin: .9rem 0 .6rem; font-size: clamp(1.5rem, 2.4vw, 2rem); }
.product-panel p { color: var(--on-night); }
.product-panel .label { display: block; margin: 1.1rem 0 .6rem; font-family: var(--mono); font-size: .7rem; letter-spacing: .08em; text-transform: uppercase; color: var(--on-night-muted); }
.product-panel .chips { margin-bottom: 1.6rem; }
.product-panel .btn { align-self: flex-start; margin-top: auto; }

/* ---------- Trading: principal logos ---------- */
.principal .principal-logo {
  display: flex; align-items: center; justify-content: center;
  height: 96px; margin: -.2rem -.2rem .4rem; padding: 1rem 1.25rem;
  background: var(--white); border-radius: calc(var(--radius) - 6px);
}
.principal .principal-logo img { max-height: 56px; max-width: 100%; width: auto; height: auto; object-fit: contain; }
/* Balance optical size: compact emblem marks read small, long wordmarks read large. */
.principal .principal-logo img[src$="/asis.png"], .principal .principal-logo img[src$="/arid.png"] { max-height: 74px; }
.principal .principal-logo img[src$="/petrotec.png"] { max-height: 44px; }

/* ---------- 404 ---------- */
.not-found { min-height: 80svh; }
