/* Gulf Meridian Refining & Chemicals — demo, fictional company. */
:root { --navy: #0b1626; --ink: #0f1a24; --paper: #f4f5f3; --amber: #f2b33d; --teal: #2f6f8f; --muted: #5b6672; }
* { box-sizing: border-box; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 17px/1.6 "IBM Plex Sans", system-ui, sans-serif; }
.wrap { width: min(1180px, 100% - 40px); margin: 0 auto; }
h1, h2, h3 { font-weight: 300; letter-spacing: -0.015em; line-height: 1.05; margin: 0 0 20px; }
h2 { font-size: clamp(34px, 4.4vw, 62px); } h3 { font-weight: 600; font-size: 20px; letter-spacing: 0; }
.mono { font-family: "IBM Plex Mono", monospace; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; }
.eyebrow { color: var(--teal); margin: 0 0 14px; } .small { font-size: 12px; } .fine { color: var(--muted); font-size: 13px; }
.site-header { position: fixed; top: 30px; left: 0; right: 0; z-index: 40; display: flex; justify-content: space-between; align-items: center; padding: 14px 28px; color: #fff; }
.brand { color: #fff; text-decoration: none; font-weight: 600; letter-spacing: .14em; font-size: 15px; display: flex; align-items: center; gap: 10px; }
.brand i { width: 22px; height: 22px; border-radius: 50%; background: conic-gradient(var(--amber) 0 25%, transparent 0 50%, var(--amber) 0 75%, transparent 0); border: 2px solid var(--amber); }
.brand span { font-weight: 300; letter-spacing: .06em; opacity: .8; font-size: 13px; }
nav { display: flex; gap: 24px; align-items: center; } nav a { color: #fff; text-decoration: none; font-size: 14px; }
.nav-cta { border: 1px solid rgba(255,255,255,.6); padding: 8px 16px; }
.menu-toggle { display: none; background: none; border: 0; color: #fff; font-size: 24px; }
.shade { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(6,12,22,.55), transparent 55%); pointer-events: none; }
.copy { position: absolute; left: 5vw; top: 50%; transform: translateY(-50%); width: min(640px, 90vw); color: #fff; pointer-events: none; height: 1px; }
.copy > div { position: absolute; left: 0; top: 0; transform: translateY(-50%); }
.copy > .chapter { transform: translateY(calc(-50% + 18px)); } .copy > .chapter.on { transform: translateY(-50%); }
.copy h1 { font-size: clamp(42px, 6vw, 88px); } .copy h2 { font-size: clamp(32px, 4vw, 56px); }
.copy .mono { color: var(--amber); }
.ticker { position: absolute; right: 28px; bottom: 28px; display: flex; gap: 12px; align-items: center; color: rgba(255,255,255,.7); font-family: "IBM Plex Mono", monospace; font-size: 11px; letter-spacing: .14em; }
.ticker i { width: 140px; height: 2px; background: rgba(255,255,255,.2); position: relative; } .ticker i::after { content: ""; position: absolute; inset: 0; width: calc(var(--m, 0) * 100%); background: var(--amber); }
section:not(.scrolly) { padding: clamp(80px, 10vw, 140px) 0; }
.grid4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: #d6dbdf; border: 1px solid #d6dbdf; margin-top: 40px; }
.grid4 article { background: var(--paper); padding: 30px 24px; } .grid4 b { font-family: "IBM Plex Mono", monospace; color: var(--amber); font-weight: 400; } .grid4 p { color: var(--muted); font-size: 15px; margin: 0; }
.safety { background: var(--navy); color: #e8edf2; } .safety .fine { color: #8b98a8; }
.split { display: grid; grid-template-columns: 1.3fr 1fr; gap: 60px; align-items: center; }
.split figure { margin: 0; } .split img { width: 100%; height: auto; display: block; border-radius: 6px; }
.kpis { margin: 30px 0; display: grid; gap: 18px; } .kpis div { border-top: 1px solid rgba(255,255,255,.15); padding-top: 14px; } .kpis dt { font-size: 44px; font-weight: 300; color: var(--amber); } .kpis dd { margin: 0; color: #b6c2cf; }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: start; }
.community { background: #e7ebe9; }
.jobs { list-style: none; padding: 0; margin: 30px 0 0; } .jobs li { display: flex; justify-content: space-between; gap: 20px; padding: 22px 0; border-top: 1px solid #d3d8dc; font-size: 20px; } .jobs .mono { color: var(--muted); }
.form { display: grid; gap: 14px; } .form label { display: grid; gap: 6px; font-size: 13px; color: var(--muted); }
.form input, .form select, .form textarea { font: inherit; padding: 13px; border: 1px solid #c9d0d6; background: #fff; }
.form button { justify-self: start; font: 500 15px "IBM Plex Sans", sans-serif; background: var(--navy); color: #fff; border: 0; padding: 14px 26px; cursor: pointer; }
.form-note { background: #fff4d6; padding: 10px 12px; }
.site-footer { padding: 30px; text-align: center; color: var(--muted); font-size: 13px; border-top: 1px solid #dde1e4; }
@media (max-width: 860px) {
  nav { display: none; } nav.open { display: flex; flex-direction: column; position: absolute; top: 100%; right: 20px; background: var(--navy); padding: 18px; }
  .menu-toggle { display: block; } .brand span { display: none; }
  .grid4 { grid-template-columns: 1fr 1fr; } .split, .two { grid-template-columns: 1fr; }
  .copy { top: auto; bottom: 18vh; transform: none; } .shade { background: linear-gradient(0deg, rgba(6,12,22,.7), transparent 60%); }
}

/* ---- Real-photo pass (15 Nov 2026) ---- */
.scrolly-sticky { background: #0b1626; }
.stage { --stage-shade: linear-gradient(180deg, rgba(6,12,22,.55) 0%, rgba(6,12,22,.05) 30%, rgba(6,12,22,.15) 65%, rgba(6,12,22,.75) 100%); }
.shade, .copy, .ticker { z-index: 3; }
.site-header { background: rgba(6,12,22,.74); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.copy h1, .copy h2 { text-shadow: 0 2px 30px rgba(0,0,0,.5); }
.grid4 article { position: relative; overflow: hidden; isolation: isolate; color: #fff; min-height: 300px; display: flex; flex-direction: column; justify-content: flex-end; }
.grid4 article::before { content: ""; position: absolute; inset: 0; z-index: -2; background: var(--img) center/cover; transition: transform 1.2s cubic-bezier(.2,.7,.2,1); }
.grid4 article::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(6,12,22,.1), rgba(6,12,22,.9) 75%); }
.grid4 article:hover::before { transform: scale(1.07); }
.grid4 article:nth-child(1) { --img: url(img/photo/columns-760.webp); } .grid4 article:nth-child(2) { --img: url(img/photo/night-units-760.webp); }
.grid4 article:nth-child(3) { --img: url(img/photo/plant-dusk-760.webp); } .grid4 article:nth-child(4) { --img: url(img/photo/night-tanks-760.webp); }
.grid4 article b { color: var(--amber); } .grid4 article p { color: rgba(255,255,255,.82); }
.safety-vid { aspect-ratio: 16 / 10; border-radius: 6px; }
.safety-vid video { position: absolute; inset: 0; }
.people { background: #f4f5f3; }
.people-grid { width: min(1320px, 100% - 40px); margin: 30px auto 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.people-grid .ph { height: 420px; border-radius: 6px; }
.community { position: relative; overflow: hidden; color: #fff; isolation: isolate; }
.community-bg { position: absolute !important; inset: 0; z-index: -2; }
.community::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(6,12,22,.85), rgba(6,12,22,.45)); }
.community .mono { color: var(--amber); }
@media (max-width: 860px) {
  .people-grid { grid-template-columns: 1fr; } .people-grid .ph { height: 260px; }
  .grid4 article { min-height: 220px; }
}
/* keep the demo ribbon pinned and the fixed header just below it (ribbon wraps to 3 lines on phones) */
.demo-ribbon { position: sticky; top: 0; }
.site-header { top: var(--rib-h, 30px); }
@media (max-width: 860px) { .stage .layer:first-child > video { object-position: 88% 70%; } }
