/* Rosem Energy Limited — site styles
   Palette from the Rosem brand: field green, crude gold, petrol navy. */

@font-face {
  font-family: "Archivo";
  src: url("/assets/fonts/archivo-wdth.woff2") format("woff2-variations"), url("/assets/fonts/archivo-wdth.woff2") format("woff2");
  font-weight: 100 900; font-stretch: 62% 125%; font-style: normal; font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Archivo";
  src: url("/assets/fonts/archivo-wdth-ext.woff2") format("woff2-variations"), url("/assets/fonts/archivo-wdth-ext.woff2") format("woff2");
  font-weight: 100 900; font-stretch: 62% 125%; font-style: normal; font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  --navy-900: #0f1d26;
  --navy-800: #142630;
  --navy-700: #1a2332;
  --green-800: #123d27;
  --green-700: #1a5336;
  --green-500: #2d8a56;
  --green-300: #6cc08f;
  --gold-600: #a97f0d;
  --gold-500: #d4a017;
  --gold-300: #f0cb5a;
  --stone-50: #f3f6f2;
  --stone-100: #e7ede8;
  --stone-200: #d3ddd6;
  --ink: #14231d;

  --bg: var(--stone-50);
  --bg-alt: #ffffff;
  --surface: #ffffff;
  --text: var(--ink);
  --muted: #53635d;
  --line: var(--stone-200);
  --accent: var(--green-700);
  --kicker: #226b43;
  --focus: var(--gold-500);

  --sc-line: rgba(220, 234, 226, 0.82);
  --sc-faint: rgba(220, 234, 226, 0.32);
  --sc-en: #e9b938;
  --sc-gn: #5cc28a;

  --gutter: clamp(20px, 5vw, 48px);
  --maxw: 1240px;
  --r-sm: 4px;
  --r-md: 8px;
  --r-lg: 14px;
  --header-h: 76px;
  --topbar-h: 38px;
  --ease: cubic-bezier(.2, .7, .2, 1);
  color-scheme: light;
}

[data-theme="dark"] {
  --bg: #0f1d26;
  --bg-alt: #132430;
  --surface: #172b37;
  --text: #e6eee9;
  --muted: #a3b5ad;
  --line: #27414d;
  --accent: #5cc28a;
  --kicker: #6cc08f;
  color-scheme: dark;
}

@view-transition { navigation: auto; }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 24px); }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font-family: "Archivo", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 1.0625rem; line-height: 1.65; font-stretch: 100%;
  font-feature-settings: "kern", "liga";
  text-rendering: optimizeLegibility; -webkit-font-smoothing: antialiased;
  transition: background-color .3s, color .3s;
}
img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 3px; }
button, input, textarea, select { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; border-radius: 2px; }
::selection { background: var(--gold-300); color: var(--ink); }
.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; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--gold-500); color: var(--ink); padding: 10px 16px; border-radius: var(--r-sm); font-weight: 650; }
.skip:focus { top: 12px; }

.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }
.sec { padding-block: clamp(72px, 9vw, 120px); }
.sec-tight { padding-block: clamp(48px, 6vw, 80px); }
.alt { background: var(--bg-alt); }

/* ---------- type ---------- */
h1, h2, h3, h4 { margin: 0; line-height: 1.1; font-weight: 700; letter-spacing: -0.012em; text-wrap: balance; }
.display { font-size: clamp(2.6rem, 6vw, 5.1rem); font-stretch: 118%; font-weight: 780; line-height: .96; letter-spacing: -0.028em; }
.h1 { font-size: clamp(2.3rem, 5vw, 4rem); font-stretch: 115%; font-weight: 760; line-height: 1; letter-spacing: -0.024em; }
.h2 { font-size: clamp(1.9rem, 3.3vw, 2.85rem); font-stretch: 110%; font-weight: 720; line-height: 1.06; letter-spacing: -0.02em; }
.h3 { font-size: 1.28rem; font-stretch: 104%; font-weight: 660; line-height: 1.25; }
.lead { font-size: clamp(1.1rem, 1.6vw, 1.28rem); line-height: 1.6; color: var(--muted); max-width: 60ch; }
p { margin: 0 0 1em; max-width: 68ch; }
.muted { color: var(--muted); }
.kicker { display: inline-flex; align-items: center; gap: 12px; font-size: .95rem; font-weight: 620; color: var(--kicker); margin-bottom: 18px; letter-spacing: .005em; }
.kicker::before { content: ""; width: 28px; height: 2px; background: var(--gold-500); border-radius: 2px; }
.dark .kicker, .on-dark .kicker { color: var(--gold-300); }
.num { font-variant-numeric: tabular-nums lining-nums; font-stretch: 125%; font-weight: 800; letter-spacing: -0.02em; }
.sec-head { max-width: 760px; margin-bottom: clamp(36px, 5vw, 60px); }
.sec-head.center { margin-inline: auto; text-align: center; }
.sec-head.center .kicker { justify-content: center; }
.sec-head.center p { margin-inline: auto; }
.sec-head .h2 + p { margin-top: 18px; }

/* ---------- buttons ---------- */
.btn { --b: var(--gold-500); --t: var(--ink); display: inline-flex; align-items: center; gap: 10px; min-height: 50px; padding: 13px 24px; border-radius: var(--r-sm); background: var(--b); color: var(--t); border: 1px solid var(--b); font-weight: 650; font-size: 1rem; font-stretch: 104%; text-decoration: none; cursor: pointer; transition: background-color .2s, border-color .2s, color .2s, transform .2s var(--ease); white-space: nowrap; }
.btn:hover { --b: var(--gold-300); }
.btn:active { transform: translateY(1px); }
.btn svg { width: 18px; height: 18px; flex: none; }
.btn-green { --b: var(--green-700); --t: #fff; }
.btn-green:hover { --b: var(--green-800); }
[data-theme="dark"] .btn-green { --b: #23774a; }
[data-theme="dark"] .btn-green:hover { --b: #1f6e44; }
.btn-ghost { background: transparent; color: currentColor; border-color: currentColor; }
.btn-ghost:hover { background: rgba(255, 255, 255, .08); --b: currentColor; }
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
.link { color: var(--accent); font-weight: 620; text-decoration: none; border-bottom: 1px solid currentColor; padding-bottom: 1px; }

/* ---------- textures ---------- */
.grid-bg { background-color: var(--navy-900); background-image:
  linear-gradient(rgba(220, 234, 226, .045) 1px, transparent 1px),
  linear-gradient(90deg, rgba(220, 234, 226, .045) 1px, transparent 1px),
  linear-gradient(rgba(220, 234, 226, .06) 1px, transparent 1px),
  linear-gradient(90deg, rgba(220, 234, 226, .06) 1px, transparent 1px);
  background-size: 32px 32px, 32px 32px, 160px 160px, 160px 160px; background-position: -1px -1px; }
.dark { background-color: var(--navy-900); color: #e6eee9; --muted: #a3b5ad; --line: rgba(220, 234, 226, .14); --accent: var(--gold-300); --kicker: var(--gold-300); }
.contour { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='600' height='240' viewBox='0 0 600 240'%3E%3Cg fill='none' stroke='%232d8a56' stroke-opacity='.12'%3E%3Cpath d='M0 40 Q75 10 150 40 T300 40 T450 40 T600 40'/%3E%3Cpath d='M0 90 Q75 60 150 90 T300 90 T450 90 T600 90'/%3E%3Cpath d='M0 140 Q75 110 150 140 T300 140 T450 140 T600 140'/%3E%3Cpath d='M0 190 Q75 160 150 190 T300 190 T450 190 T600 190'/%3E%3C/g%3E%3C/svg%3E"); background-size: 600px 240px; }

/* ---------- header ---------- */
.site-header { position: sticky; top: calc(-1 * var(--topbar-h)); z-index: 60; color: #fff; }
.topbar { height: var(--topbar-h); background: var(--green-700); font-size: .86rem; }
.topbar .wrap { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.topbar a { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; opacity: .92; }
.topbar a:hover { opacity: 1; text-decoration: underline; }
.topbar svg { width: 14px; height: 14px; }
.topbar .tb-left { display: flex; gap: 24px; }
.topbar .rc { opacity: .85; font-variant-numeric: tabular-nums; }
.nav { height: var(--header-h); background: rgba(15, 29, 38, 0); transition: background-color .3s, box-shadow .3s, backdrop-filter .3s; position: relative; }
.site-header.stuck .nav { background: rgba(15, 29, 38, .9); backdrop-filter: blur(14px) saturate(1.2); -webkit-backdrop-filter: blur(14px) saturate(1.2); box-shadow: 0 1px 0 rgba(220, 234, 226, .1); }
.nav .wrap { height: 100%; display: flex; align-items: center; gap: 20px; }
.nav-links { display: flex; align-items: center; gap: 2px; margin: 0 auto; padding: 0; list-style: none; }
.nav-links a { position: relative; display: block; padding: 10px 11px; font-size: .94rem; font-weight: 560; text-decoration: none; color: rgba(255, 255, 255, .82); white-space: nowrap; transition: color .2s; }
.nav-links a:hover { color: #fff; }
.nav-links a[aria-current="page"] { color: #fff; }
.nav-links a::after { content: ""; position: absolute; left: 11px; right: 11px; bottom: 2px; height: 2px; background: var(--gold-500); transform: scaleX(0); transform-origin: left; transition: transform .3s var(--ease); }
.nav-links a:hover::after { transform: scaleX(.4); }
.nav-links a[aria-current="page"]::after { transform: scaleX(1); }
.nav-actions { display: flex; align-items: center; gap: 10px; }
.icon-btn { width: 42px; height: 42px; display: grid; place-items: center; background: transparent; border: 1px solid rgba(255, 255, 255, .2); border-radius: var(--r-sm); color: #fff; cursor: pointer; transition: border-color .2s, background-color .2s; }
.icon-btn:hover { border-color: rgba(255, 255, 255, .5); background: rgba(255, 255, 255, .06); }
.icon-btn svg { width: 19px; height: 19px; }
.theme-toggle .i-sun { display: none; }
[data-theme="dark"] .theme-toggle .i-sun { display: block; }
[data-theme="dark"] .theme-toggle .i-moon { display: none; }
.menu-btn { display: none; }
.nav .btn { min-height: 44px; padding: 10px 18px; }
.progress { position: absolute; left: 0; bottom: 0; height: 2px; width: 100%; background: var(--gold-500); transform-origin: left; transform: scaleX(var(--p, 0)); }

/* logo */
.logo { display: inline-flex; align-items: center; flex: none; text-decoration: none; line-height: 0; }
.logo img { display: block; height: 58px; width: auto; }
.site-footer .logo img { height: 72px; }
.mnav .logo img { height: 44px; }
@media (max-width: 760px) { .logo img { height: 46px; } }

/* mobile menu */
.mnav { position: fixed; inset: 0; z-index: 80; background: var(--navy-900); color: #fff; display: flex; flex-direction: column; padding: 20px var(--gutter) 32px; transform: translateY(-100%); visibility: hidden; transition: transform .45s var(--ease), visibility 0s .45s; overflow-y: auto; }
.mnav.open { transform: none; visibility: visible; transition: transform .45s var(--ease); }
.mnav-top { display: flex; justify-content: space-between; align-items: center; height: 64px; }
.mnav ul { list-style: none; padding: 0; margin: 28px 0 auto; }
.mnav li a { display: block; padding: 12px 0; font-size: 1.6rem; font-stretch: 112%; font-weight: 680; text-decoration: none; border-bottom: 1px solid rgba(220, 234, 226, .1); }
.mnav li a[aria-current="page"] { color: var(--gold-300); }
.mnav-contact { margin-top: 32px; font-size: .95rem; color: #a3b5ad; display: grid; gap: 6px; }
.mnav-contact a { color: #e6eee9; }

/* ---------- hero (home) ---------- */
.hero { position: relative; margin-top: calc(-1 * (var(--header-h) + var(--topbar-h))); padding-top: calc(var(--header-h) + var(--topbar-h) + clamp(28px, 5vh, 64px)); min-height: min(100svh, 1000px); display: flex; flex-direction: column; overflow: hidden; color: #f1f5f2; isolation: isolate; }
.hero::before { content: ""; position: absolute; inset: 0; z-index: -2; background: url("/assets/img/refinery-towers-lg.webp") right 30% / cover no-repeat; opacity: .16; filter: grayscale(1) contrast(1.1); mask-image: linear-gradient(100deg, transparent 30%, #000 75%); -webkit-mask-image: linear-gradient(100deg, transparent 30%, #000 75%); }
.hero::after { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(60% 50% at 82% 12%, rgba(212, 160, 23, .16), transparent 70%), linear-gradient(180deg, transparent 55%, rgba(15, 29, 38, .7)); pointer-events: none; }
.hero-copy { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 40px; align-items: end; }
.hero-copy .kicker { color: var(--gold-300); }
.hero h1 { max-width: 12ch; }
.hero .lead { color: #c6d4cd; margin-top: 22px; max-width: 46ch; }
.hero .btn-row { margin-top: 28px; }
.hero-reg { display: grid; gap: 10px; justify-items: end; text-align: right; font-size: .85rem; color: #a3b5ad; padding-bottom: 6px; }
.hero-reg strong { color: #e6eee9; font-weight: 600; display: block; }
.hero-reg .seal { display: inline-flex; align-items: center; gap: 10px; }
.hero-reg .seal svg { width: 20px; height: 20px; color: var(--gold-300); flex: none; }

.pano-wrap { position: relative; margin-top: auto; padding-top: clamp(12px, 2vh, 28px); }
.pano-scroll { position: relative; }
.pano { width: 100%; height: auto; }
.stages { display: grid; grid-template-columns: 410fr 410fr 400fr 380fr; border-top: 1px solid rgba(220, 234, 226, .16); background: rgba(15, 29, 38, .55); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.stage-btn { text-align: left; background: none; border: 0; color: inherit; padding: 18px clamp(14px, 2vw, 28px) 22px; cursor: pointer; position: relative; border-left: 1px solid rgba(220, 234, 226, .1); text-decoration: none; display: block; }
.stage-btn:first-child { border-left: 0; }
.stage-btn::before { content: ""; position: absolute; left: 0; right: 0; top: -1px; height: 2px; background: var(--gold-500); transform: scaleX(0); transform-origin: left; transition: transform .4s var(--ease); }
.stage-btn:hover::before, .stage-btn:focus-visible::before, .stage-btn.on::before { transform: scaleX(1); }
.stage-btn b { display: flex; align-items: baseline; gap: 10px; font-size: 1.02rem; font-stretch: 110%; font-weight: 680; color: #f1f5f2; }
.stage-btn b i { font-style: normal; font-size: .78rem; color: var(--gold-300); font-weight: 600; font-variant-numeric: tabular-nums; }
.stage-btn span { display: block; margin-top: 4px; font-size: .88rem; line-height: 1.45; color: #a3b5ad; max-width: 34ch; }

/* stats band */
.stats { background: var(--bg-alt); border-bottom: 1px solid var(--line); }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.stat { padding: clamp(26px, 4vw, 44px) clamp(14px, 2.4vw, 32px); border-left: 1px solid var(--line); }
.stat:first-child { border-left: 0; padding-left: 0; }
.stat .num { font-size: clamp(2.3rem, 4.6vw, 3.7rem); line-height: 1; color: var(--accent); display: block; }
.stat .num sup { font-size: .5em; vertical-align: .55em; color: var(--gold-500); margin-left: 2px; }
.stat > span:last-child { display: block; margin-top: 10px; color: var(--muted); font-weight: 520; font-size: .98rem; }
.dark .stats-grid .stat { border-color: rgba(220, 234, 226, .12); }

/* ---------- page hero ---------- */
.phero { position: relative; margin-top: calc(-1 * (var(--header-h) + var(--topbar-h))); padding: calc(var(--header-h) + var(--topbar-h) + clamp(56px, 10vw, 120px)) 0 clamp(56px, 8vw, 96px); color: #f1f5f2; overflow: hidden; isolation: isolate; }
.phero-img { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; opacity: .34; filter: grayscale(.35) contrast(1.05); }
.phero::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(15, 29, 38, .96) 0%, rgba(15, 29, 38, .82) 45%, rgba(15, 29, 38, .35) 100%), linear-gradient(0deg, rgba(15, 29, 38, .9), transparent 40%); }
.phero .kicker { color: var(--gold-300); }
.phero h1 { max-width: 16ch; }
.phero .lead { color: #c6d4cd; margin-top: 22px; }
.crumbs { margin-top: 36px; display: flex; gap: 10px; font-size: .86rem; color: #a3b5ad; list-style: none; padding: 0; }
.crumbs a { color: #e6eee9; }
.crumbs li + li::before { content: "/"; margin-right: 10px; opacity: .5; }

/* ---------- scenes ---------- */
.sc { fill: none; stroke: var(--sc-line); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; overflow: visible; }
.sc .ft { stroke: var(--sc-faint); stroke-width: 1.2; }
.sc .en { stroke: var(--sc-en); }
.sc .gn { stroke: var(--sc-gn); }
.sc .gl { stroke: var(--sc-line); stroke-width: 1.4; }
.sc .dash { stroke-dasharray: 8 10; }
.sc .fill-en { fill: var(--sc-en); stroke: none; }
.sc .bbox { fill: none; stroke: none; }
.sc .under { opacity: .9; }
.sc .res-fill { fill: rgba(233, 185, 56, .16); stroke: none; animation: resPulse 4s ease-in-out infinite; }
.sc .level { fill: rgba(233, 185, 56, .2); stroke: none; transform-box: fill-box; transform-origin: 50% 100%; transform: scaleY(.62); animation: level 7s ease-in-out infinite; }
.sc .flow { stroke-width: 2.2; stroke-dasharray: 3 13; animation: flow 1.1s linear infinite; }
.sc .drill { stroke-dasharray: 2 8; animation-duration: .9s; }
.sc .pulse { fill: none; stroke-width: 2.4; stroke-dasharray: .06 .94; stroke-dashoffset: 1; animation: pulse 2.6s linear infinite; }
.sc path.pulse { stroke-dasharray: 10 400; stroke-dashoffset: 410; }
.sc .wave { fill: none; stroke-width: 1.3; transform-box: fill-box; transform-origin: center; transform: scale(.05); opacity: 0; animation: wave 3.2s cubic-bezier(.2, .6, .3, 1) infinite; }
.sc .spin { transform-box: fill-box; transform-origin: center; animation: spin var(--dur, 6s) linear infinite; }
.sc .spin.rev { animation-direction: reverse; }
.sc .flicker { transform-box: fill-box; transform-origin: 50% 100%; animation: flicker .5s ease-in-out infinite alternate; }
.sc .steam { fill: rgba(220, 234, 226, .16); stroke: none; opacity: 0; animation: steam 4.5s ease-out infinite; }
.sc .blink { animation: blink 2.2s ease-in-out infinite; }
.sc .blink-soft { animation: blink 3.4s ease-in-out infinite; }
.sc .drive { animation: drive var(--dur, 9s) linear infinite; }
.sc .glint { animation: glint 5.5s ease-in-out infinite; }
.sc .glint-bar { fill: rgba(240, 203, 90, .55); stroke: none; }
.sc .win { fill: var(--sc-en); stroke: none; opacity: .15; animation: win 5s steps(1) infinite; }
.sc .bob { animation: bob 3.2s ease-in-out infinite; }
.sc .waves { animation: waves 3s linear infinite; }
.sc .trolley { animation: trolley 8s ease-in-out infinite; }
.sc .cable { transform-box: fill-box; transform-origin: 50% 0; animation: cable 8s ease-in-out infinite; }
.sc .load { animation: load 8s ease-in-out infinite; }
.sc .tick { fill: none; stroke-width: 2.2; stroke-dasharray: 1; stroke-dashoffset: 1; animation: tick 3.6s ease-in-out infinite; }
.sc .stage { transition: opacity .45s var(--ease); }
.pano[data-focus] .stage { opacity: .22; }
.pano[data-focus="upstream"] .stage[data-stage="upstream"],
.pano[data-focus="midstream"] .stage[data-stage="midstream"],
.pano[data-focus="downstream"] .stage[data-stage="downstream"],
.pano[data-focus="renewable"] .stage[data-stage="renewable"] { opacity: 1; }

/* draw-in on reveal */
.sc.will-draw .d { stroke-dasharray: 1 1; stroke-dashoffset: 1; }
.sc.will-draw .fx { opacity: 0; }
.sc.drawing .d { animation: draw 1.5s cubic-bezier(.55, 0, .25, 1) forwards; animation-delay: var(--dl, 0s); }
.sc.drawing .fx { opacity: 1; transition: opacity 1s ease calc(var(--dl, 0s) + 1.1s); }
.sc.paused *, .ngmap.paused * { animation-play-state: paused !important; }

@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes flow { to { stroke-dashoffset: -16; } }
@keyframes pulse { to { stroke-dashoffset: 0; } }
@keyframes wave { 0% { transform: scale(.05); opacity: 0; } 15% { opacity: .9; } 100% { transform: scale(1); opacity: 0; } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes flicker { 0% { transform: scale(.85, .8) skewX(-4deg); opacity: .85; } 100% { transform: scale(1.05, 1.15) skewX(3deg); opacity: 1; } }
@keyframes steam { 0% { opacity: 0; transform: translate(0, 0) scale(.6); } 20% { opacity: .9; } 100% { opacity: 0; transform: translate(10px, -46px) scale(2.2); } }
@keyframes blink { 0%, 100% { opacity: .25; } 50% { opacity: 1; } }
@keyframes drive { 0% { transform: translateX(0); opacity: 0; } 8% { opacity: 1; } 88% { opacity: 1; } 100% { transform: translateX(var(--dist, 140px)); opacity: 0; } }
@keyframes glint { 0%, 30% { transform: translateX(0); } 70%, 100% { transform: translateX(var(--dist, 200px)); } }
@keyframes win { 0%, 100% { opacity: .15; } 40% { opacity: .95; } 80% { opacity: .5; } }
@keyframes bob { 0%, 100% { transform: translateY(0) rotate(0); } 50% { transform: translateY(2px) rotate(.4deg); } }
@keyframes waves { to { transform: translateX(-20px); } }
@keyframes level { 0%, 100% { transform: scaleY(.45); } 50% { transform: scaleY(.86); } }
@keyframes resPulse { 0%, 100% { opacity: .6; } 50% { opacity: 1; } }
@keyframes trolley { 0%, 100% { transform: translateX(20px); } 45%, 55% { transform: translateX(86px); } }
@keyframes cable { 0%, 15%, 85%, 100% { transform: scaleY(.45); } 30%, 70% { transform: scaleY(1); } }
@keyframes load { 0%, 15%, 85%, 100% { transform: translateY(-29px); } 30%, 70% { transform: translateY(0); } }
@keyframes tick { 0%, 10% { stroke-dashoffset: 1; } 30%, 80% { stroke-dashoffset: 0; } 95%, 100% { stroke-dashoffset: 1; } }

/* scene frames */
.scene-panel { position: relative; border-radius: var(--r-lg); overflow: hidden; padding: clamp(18px, 3vw, 32px) clamp(16px, 3vw, 28px) 0; }
.scene-panel .sc { width: 100%; height: auto; }

/* ---------- about (home) ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 6vw, 96px); align-items: center; }
.split.top { align-items: start; }
.checks { list-style: none; padding: 0; margin: 28px 0 36px; display: grid; grid-template-columns: 1fr 1fr; gap: 14px 28px; }
.checks.one { grid-template-columns: 1fr; }
.checks li { display: flex; gap: 12px; align-items: flex-start; font-weight: 520; }
.checks svg { width: 20px; height: 20px; color: var(--gold-500); flex: none; margin-top: 3px; }
.map-card { position: relative; border-radius: var(--r-lg); padding: clamp(20px, 3vw, 36px); }
.map-foot { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: 14px; }
.map-card .badge { display: inline-flex; align-items: baseline; gap: 12px; background: var(--green-700); color: #fff; padding: 14px 20px; border-radius: var(--r-md); }
.map-card .badge .num { font-size: 2.2rem; line-height: 1; display: block; }
.map-card .badge > span:last-child { font-size: .9rem; opacity: .9; }
.map-legend { display: flex; flex-wrap: wrap; gap: 8px 18px; font-size: .84rem; color: #a3b5ad; }
.map-legend i { display: inline-block; width: 9px; height: 9px; border-radius: 50%; margin-right: 8px; vertical-align: 1px; }
.ngmap { width: 100%; height: auto; overflow: visible; }
.ng-dots { fill: none; stroke: rgba(220, 234, 226, .2); stroke-width: 3.2; stroke-linecap: round; }
.ng-outline { fill: none; stroke: rgba(220, 234, 226, .55); stroke-width: 1.4; stroke-linejoin: round; }
.ngmap .arc { fill: none; stroke: rgba(233, 185, 56, .55); stroke-width: 1; stroke-dasharray: 1; stroke-dashoffset: 0; }
.ngmap .node { fill: var(--sc-gn); stroke: var(--navy-900); stroke-width: 1.5; }
.ngmap .hq-dot { fill: var(--gold-500); stroke: var(--navy-900); stroke-width: 2; }
.ngmap .hq-ring { fill: none; stroke: var(--gold-500); stroke-width: 1.5; transform-box: fill-box; transform-origin: center; animation: ring 2.8s ease-out infinite; }
.ngmap .hq-ring.r2 { animation-delay: 1.4s; }
.ngmap .hq-label { fill: #f1f5f2; font-size: 15px; font-weight: 620; font-family: "Archivo", sans-serif; }
.ngmap.will-draw .arc { stroke-dashoffset: 1; }
.ngmap.will-draw .node { opacity: 0; }
.ngmap.drawing .arc { transition: stroke-dashoffset 1.1s cubic-bezier(.5, 0, .2, 1) calc(var(--i) * 45ms); stroke-dashoffset: 0; }
.ngmap.drawing .node { transition: opacity .4s ease calc(var(--i) * 45ms + .8s); opacity: 1; }
@keyframes ring { 0% { transform: scale(.6); opacity: 1; } 100% { transform: scale(2.6); opacity: 0; } }

/* capabilities ticker */
.ticker { background: var(--green-700); color: #eaf3ee; overflow: hidden; border-block: 1px solid rgba(255, 255, 255, .06); }
.ticker-track { display: flex; width: max-content; animation: ticker 60s linear infinite; }
.ticker:hover .ticker-track { animation-play-state: paused; }
.ticker ul { display: flex; list-style: none; margin: 0; padding: 0; }
.ticker li { display: flex; align-items: center; gap: 22px; padding: 18px 0 18px 22px; font-weight: 580; font-stretch: 108%; white-space: nowrap; }
.ticker li::after { content: ""; width: 7px; height: 7px; background: var(--gold-500); transform: rotate(45deg); }
@keyframes ticker { to { transform: translateX(-50%); } }

/* ---------- service tiles (home) ---------- */
.tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; }
.tile { background: var(--bg-alt); display: flex; flex-direction: column; text-decoration: none; color: inherit; transition: background-color .25s; }
.tile .tile-art { margin: 10px 10px 0; border-radius: var(--r-md); padding: 14px 12px 0; overflow: hidden; }
.tile .tile-art .sc { width: 100%; height: auto; }
.tile-body { padding: 22px 24px 28px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.tile-body p { margin: 0; color: var(--muted); font-size: .98rem; }
.tile-body .more { margin-top: auto; padding-top: 10px; font-size: .9rem; font-weight: 640; color: var(--accent); display: inline-flex; gap: 8px; align-items: center; }
.tile:hover { background: var(--surface); }
.tile:hover .h3 { color: var(--accent); }
.center-cta { display: flex; justify-content: center; margin-top: 44px; }

/* licenses */
.licenses { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.lic { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; display: grid; grid-template-rows: auto 1fr; }
.lic-logo { background: #fff; display: grid; place-items: center; padding: clamp(24px, 4vw, 40px); border-bottom: 1px solid var(--line); }
.lic-logo img { width: auto; max-height: 92px; }
.lic-meta { display: flex; gap: 14px; align-items: flex-start; padding: 22px 26px 26px; }
.lic-meta svg { width: 26px; height: 26px; color: var(--green-500); flex: none; margin-top: 2px; }
.lic-meta b { display: block; font-weight: 680; font-stretch: 106%; }
.lic-meta span { color: var(--muted); font-size: .95rem; }
.lic-meta small { display: block; color: var(--muted); font-size: .84rem; margin-top: 4px; }

/* CTA band */
.cta-band { background: var(--green-700); color: #fff; position: relative; overflow: hidden; isolation: isolate; }
.cta-band::before { content: ""; position: absolute; inset: 0; z-index: -1; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='600' height='240' viewBox='0 0 600 240'%3E%3Cg fill='none' stroke='%23f0cb5a' stroke-opacity='.13'%3E%3Cpath d='M0 40 Q75 10 150 40 T300 40 T450 40 T600 40'/%3E%3Cpath d='M0 90 Q75 60 150 90 T300 90 T450 90 T600 90'/%3E%3Cpath d='M0 140 Q75 110 150 140 T300 140 T450 140 T600 140'/%3E%3Cpath d='M0 190 Q75 160 150 190 T300 190 T450 190 T600 190'/%3E%3C/g%3E%3C/svg%3E"); background-size: 600px 240px; mask-image: linear-gradient(90deg, transparent, #000 60%); -webkit-mask-image: linear-gradient(90deg, transparent, #000 60%); }
.cta-inner { display: grid; grid-template-columns: 1.3fr auto; gap: 40px; align-items: end; }
.cta-band p { color: rgba(255, 255, 255, .85); margin: 18px 0 0; }
.cta-band .btn-ghost { color: #fff; }

/* contact strip */
.touch { display: grid; grid-template-columns: 1.2fr 1fr auto; gap: clamp(28px, 4vw, 56px); align-items: center; }
.touch dl { margin: 0; display: grid; gap: 12px; }
.touch dl div { display: grid; grid-template-columns: 74px 1fr; gap: 12px; }
.touch dt { color: var(--gold-300); font-weight: 620; font-size: .92rem; }
.touch dd { margin: 0; color: #dfe8e3; }
.touch a { text-decoration: none; }
.touch a:hover { text-decoration: underline; }

/* ---------- footer ---------- */
.site-footer { background: #0c1820; color: #c9d6d0; font-size: .95rem; }
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1.1fr 1.4fr; gap: clamp(28px, 4vw, 56px); padding-block: clamp(56px, 7vw, 88px); }
.site-footer h2 { font-size: 1rem; font-stretch: 108%; color: #fff; margin-bottom: 18px; font-weight: 660; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.site-footer a { text-decoration: none; color: #c9d6d0; }
.site-footer a:hover { color: var(--gold-300); }
.foot-about p { margin-top: 20px; color: #a3b5ad; font-size: .94rem; }
.foot-contact li { display: grid; grid-template-columns: 20px 1fr; gap: 12px; align-items: start; }
.foot-contact svg { width: 18px; height: 18px; color: var(--green-300); margin-top: 3px; }
.foot-bottom { border-top: 1px solid rgba(220, 234, 226, .1); }
.foot-bottom .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 24px; padding-block: 22px; font-size: .86rem; color: #8ea39a; }
.foot-bottom a { color: #c9d6d0; }
.powered a { color: var(--gold-300); font-weight: 600; }
.social { display: flex; gap: 10px; }
.social a { width: 38px; height: 38px; display: grid; place-items: center; border: 1px solid rgba(220, 234, 226, .16); border-radius: 50%; }
.social svg { width: 16px; height: 16px; }

/* ---------- about page ---------- */
.journey { display: grid; grid-template-columns: 1fr auto 1fr; gap: 18px; align-items: center; margin-top: 34px; }
.journey .j { border: 1px solid var(--line); border-radius: var(--r-md); padding: 16px 18px; background: var(--surface); }
.journey .j small { display: block; color: var(--muted); font-size: .8rem; font-weight: 600; margin-bottom: 4px; }
.journey .j b { font-weight: 650; font-stretch: 104%; line-height: 1.3; display: block; }
.journey .j.now { border-color: var(--green-500); }
.journey svg { width: 40px; height: 14px; color: var(--gold-500); }
.stat-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; }
.stat-grid > div { background: var(--surface); padding: clamp(24px, 3vw, 36px); }
.stat-grid .num { font-size: clamp(2.2rem, 4vw, 3.2rem); color: var(--accent); display: block; line-height: 1; }
.stat-grid > div > span:last-child { display: block; color: var(--muted); margin-top: 10px; }
.mv { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.mv-item { position: relative; padding: clamp(28px, 4vw, 48px); border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--line); overflow: hidden; }
.mv-item::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: var(--green-500); }
.mv-item:nth-child(2)::before { background: var(--gold-500); }
.mv-item .ic { width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; background: color-mix(in srgb, var(--green-500) 14%, transparent); color: var(--green-500); margin-bottom: 22px; }
.mv-item:nth-child(2) .ic { background: color-mix(in srgb, var(--gold-500) 16%, transparent); color: var(--gold-600); }
[data-theme="dark"] .mv-item:nth-child(2) .ic { color: var(--gold-300); }
.mv-item .ic svg { width: 26px; height: 26px; }
.mv-item p { margin: 14px 0 0; font-size: 1.12rem; line-height: 1.6; }
.values { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); }
.value { padding: 32px 28px 34px 0; border-bottom: 1px solid var(--line); display: grid; grid-template-columns: 44px 1fr; gap: 6px 16px; }
.value:not(:nth-child(3n + 1)) { padding-left: 28px; border-left: 1px solid var(--line); }
.value svg { width: 28px; height: 28px; color: var(--green-500); grid-row: span 2; margin-top: 2px; }
.value p { margin: 0; color: var(--muted); }
.lead-panel { display: grid; grid-template-columns: auto 1fr; gap: 28px; align-items: center; margin-top: 40px; padding: 28px 32px; border: 1px solid rgba(220, 234, 226, .14); border-radius: var(--r-lg); background: rgba(255, 255, 255, .03); max-width: 760px; }
.lead-panel .ic { width: 72px; height: 72px; border-radius: 50%; display: grid; place-items: center; background: rgba(45, 138, 86, .2); color: var(--green-300); }
.lead-panel .ic svg { width: 34px; height: 34px; }
.lead-panel b { font-size: 1.2rem; font-stretch: 106%; display: block; }
.lead-panel em { font-style: normal; color: var(--gold-300); font-size: .9rem; display: block; margin: 2px 0 6px; }
.lead-panel p { margin: 0; color: #a3b5ad; }

/* ---------- services page ---------- */
.svc-nav { position: sticky; top: calc(var(--header-h)); z-index: 30; background: color-mix(in srgb, var(--bg) 92%, transparent); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.svc-nav ul { display: flex; gap: 6px; list-style: none; margin: 0; padding: 12px 0; overflow-x: auto; scrollbar-width: none; }
.svc-nav ul::-webkit-scrollbar { display: none; }
.svc-nav a { display: block; padding: 8px 14px; border-radius: 999px; font-size: .9rem; font-weight: 580; text-decoration: none; white-space: nowrap; border: 1px solid var(--line); color: var(--muted); transition: color .2s, border-color .2s, background-color .2s; }
.svc-nav a:hover { color: var(--text); border-color: var(--muted); }
.svc-nav a.on { background: var(--green-700); color: #fff; border-color: var(--green-700); }
.svc { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(36px, 6vw, 88px); align-items: center; padding-block: clamp(56px, 7vw, 96px); border-bottom: 1px solid var(--line); }
.svc:last-child { border-bottom: 0; }
.svc.flip .svc-media { order: 2; }
.svc-media { position: relative; padding-bottom: 64px; }
.svc-media > img { width: 86%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--r-md); }
.svc.flip .svc-media > img { margin-left: auto; }
.svc-media .scene-panel { position: absolute; right: 0; bottom: 0; width: 58%; box-shadow: 0 26px 50px -26px rgba(0, 0, 0, .6); padding: 14px 12px 0; border-radius: var(--r-md); }
.svc.flip .svc-media .scene-panel { right: auto; left: 0; }
.svc .ic { width: 56px; height: 56px; border-radius: var(--r-md); display: grid; place-items: center; background: color-mix(in srgb, var(--green-500) 13%, transparent); color: var(--accent); margin-bottom: 22px; }
.svc .ic svg { width: 28px; height: 28px; }
.svc .lead { margin-top: 16px; }
.svc .checks { grid-template-columns: 1fr 1fr; }

/* ---------- operations ---------- */
.chain { display: grid; grid-template-columns: repeat(4, 1fr); position: relative; margin-bottom: 34px; border-bottom: 1px solid var(--line); }
.chain button { background: none; border: 0; cursor: pointer; text-align: left; padding: 16px 16px 20px 0; position: relative; color: var(--muted); font-weight: 620; font-stretch: 106%; font-size: 1.02rem; display: flex; gap: 12px; align-items: center; transition: color .2s; }
.chain button i { font-style: normal; width: 30px; height: 30px; flex: none; border-radius: 50%; display: grid; place-items: center; border: 1px solid var(--line); font-size: .8rem; font-variant-numeric: tabular-nums; transition: background-color .25s, border-color .25s, color .25s; }
.chain button::after { content: ""; position: absolute; left: 0; right: 16px; bottom: -1px; height: 3px; background: var(--gold-500); transform: scaleX(0); transform-origin: left; transition: transform .45s var(--ease); }
.chain button:hover { color: var(--text); }
.chain button[aria-selected="true"] { color: var(--text); }
.chain button[aria-selected="true"] i { background: var(--green-700); border-color: var(--green-700); color: #fff; }
.chain button[aria-selected="true"]::after { transform: scaleX(1); }
.chain-panel { display: grid; grid-template-columns: 1fr 1.15fr; gap: clamp(28px, 5vw, 64px); align-items: center; }
.chain-panel[hidden] { display: none; }
.chain-panel .h2 { margin-bottom: 14px; }
.chain-panel .checks { margin: 26px 0 30px; }
.hi { border-top: 1px solid var(--line); padding-top: 22px; }
.hi h4 { font-size: .98rem; font-weight: 660; margin-bottom: 12px; }
.hi ul { margin: 0; padding: 0; list-style: none; display: grid; grid-template-columns: 1fr 1fr; gap: 8px 22px; color: var(--muted); font-size: .95rem; }
.hi li { display: flex; gap: 10px; align-items: baseline; }
.hi li::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--gold-500); flex: none; transform: translateY(-2px); }
.bars { display: grid; gap: 22px; margin-top: 32px; }
.bar-top { display: flex; justify-content: space-between; font-weight: 600; margin-bottom: 8px; }
.bar-top .num { font-size: 1.05rem; color: var(--accent); }
.bar { height: 8px; border-radius: 8px; background: var(--stone-100); overflow: hidden; }
[data-theme="dark"] .bar { background: rgba(255, 255, 255, .08); }
.bar span { display: block; height: 100%; width: var(--w); background: linear-gradient(90deg, var(--green-700), var(--green-500)); border-radius: inherit; transform-origin: left; }
.bars.will-grow .bar span { transform: scaleX(0); }
.bars.grow .bar span { transform: scaleX(1); transition: transform 1.4s var(--ease) calc(var(--k) * .12s); }
.img-badge { position: relative; }
.img-badge img { width: 100%; aspect-ratio: 5 / 4; object-fit: cover; border-radius: var(--r-lg); }
.img-badge .badge { position: absolute; right: clamp(-16px, -1.4vw, -6px); top: clamp(24px, 4vw, 40px); background: var(--gold-500); color: var(--ink); padding: 18px 22px; border-radius: var(--r-md); box-shadow: 0 18px 40px -18px rgba(0, 0, 0, .5); }
.img-badge .badge .num { font-size: 2.4rem; line-height: 1; display: block; }
.img-badge .badge > span:last-child { font-size: .9rem; font-weight: 600; }

/* ---------- sustainability ---------- */
.quote { margin: 26px 0 0; padding: 22px 26px; border-left: 3px solid var(--gold-500); background: var(--surface); border-radius: 0 var(--r-md) var(--r-md) 0; font-size: 1.12rem; line-height: 1.6; }
.quote p { margin: 0; }
.photo { width: 100%; aspect-ratio: 4 / 3.4; object-fit: cover; border-radius: var(--r-lg); }
.inits { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); }
.init { padding: 34px 26px 10px 0; }
.init + .init { padding-left: 26px; border-left: 1px solid var(--line); }
.init svg { width: 34px; height: 34px; color: var(--green-500); margin-bottom: 22px; }
.init p { margin: 10px 0 0; color: var(--muted); font-size: .97rem; }
.hse { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(36px, 6vw, 80px); align-items: center; }
.hse-title { display: flex; gap: 18px; align-items: center; margin-bottom: 22px; }
.hse-title .ic { width: 60px; height: 60px; border-radius: var(--r-md); display: grid; place-items: center; background: rgba(212, 160, 23, .14); color: var(--gold-300); flex: none; }
.hse-title .ic svg { width: 30px; height: 30px; }
.hse-title small { display: block; color: var(--gold-300); font-weight: 620; font-size: .9rem; margin-bottom: 4px; }
.certs { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 28px; }
.cert { display: flex; gap: 12px; align-items: center; padding: 14px 16px; border: 1px solid rgba(220, 234, 226, .14); border-radius: var(--r-md); font-weight: 620; font-stretch: 106%; }
.cert svg { width: 22px; height: 22px; color: var(--gold-300); }
.hse-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: rgba(220, 234, 226, .12); border-radius: var(--r-lg); overflow: hidden; }
.hse-stats > div { background: var(--navy-800); padding: clamp(26px, 3.5vw, 40px) 24px; text-align: center; }
.hse-stats .num { font-size: clamp(2.3rem, 4vw, 3.2rem); display: block; line-height: 1; color: var(--gold-300); }
.hse-stats > div:nth-child(even) .num { color: var(--green-300); }
.hse-stats > div > span:last-child { display: block; margin-top: 10px; color: #a3b5ad; font-size: .95rem; }
.timeline { position: relative; display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; padding-top: 44px; }
.timeline::before { content: ""; position: absolute; left: 0; right: 0; top: 13px; height: 2px; background: var(--line); }
.timeline::after { content: ""; position: absolute; left: 0; right: 0; top: 13px; height: 2px; background: linear-gradient(90deg, var(--green-500), var(--gold-500)); transform-origin: left; transform: scaleX(var(--tl, 1)); transition: transform 1.6s var(--ease); }
.timeline.will-grow { --tl: 0; }
.tl { position: relative; }
.tl::before { content: ""; position: absolute; top: -40px; left: 0; width: 20px; height: 20px; border-radius: 50%; background: var(--bg); border: 3px solid var(--green-500); z-index: 1; }
.tl:nth-child(2)::before { border-color: #8aa63a; }
.tl:nth-child(3)::before { border-color: var(--gold-500); }
.tl .num { font-size: clamp(2.4rem, 4.4vw, 3.6rem); line-height: 1; color: var(--accent); display: block; margin-bottom: 14px; }
.tl p { color: var(--muted); margin: 8px 0 0; }

/* ---------- careers ---------- */
.benefits { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border-top: 1px solid var(--line); }
.benefits li { display: flex; gap: 14px; align-items: center; padding: 22px 0; border-bottom: 1px solid var(--line); font-weight: 560; }
.benefits { list-style: none; margin: 0; padding: 0; column-gap: 40px; }
.benefits svg { width: 22px; height: 22px; color: var(--green-500); flex: none; }
.jobs { border-top: 1px solid var(--line); }
.job { display: grid; grid-template-columns: 1fr auto; gap: 18px; align-items: center; padding: 26px 0; border-bottom: 1px solid var(--line); }
.job .h3 { margin-bottom: 10px; }
.meta { display: flex; flex-wrap: wrap; gap: 8px 18px; color: var(--muted); font-size: .92rem; list-style: none; margin: 0; padding: 0; }
.meta li { display: inline-flex; gap: 7px; align-items: center; }
.meta svg { width: 16px; height: 16px; color: var(--green-500); }
.dept { display: inline-block; padding: 2px 10px; border-radius: 999px; background: color-mix(in srgb, var(--gold-500) 16%, transparent); color: var(--text); font-weight: 560; font-size: .84rem; }

/* ---------- forms ---------- */
.form-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: clamp(24px, 4vw, 44px); position: relative; }
.form-card .h3 { font-size: 1.5rem; margin-bottom: 8px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 18px; margin-top: 24px; }
.field { display: grid; gap: 7px; }
.field.full { grid-column: 1 / -1; }
.field label { font-size: .9rem; font-weight: 620; }
.field label span { color: var(--muted); font-weight: 450; }
.field input, .field textarea, .field select { width: 100%; min-height: 50px; padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--r-sm); background: var(--bg); transition: border-color .2s, box-shadow .2s; }
.field textarea { min-height: 140px; resize: vertical; line-height: 1.55; }
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--green-500); box-shadow: 0 0 0 3px color-mix(in srgb, var(--green-500) 22%, transparent); }
.field input[aria-invalid="true"], .field textarea[aria-invalid="true"] { border-color: #c0392b; }
.field .err { color: #c0392b; font-size: .84rem; min-height: 0; }
[data-theme="dark"] .field .err { color: #ff8a7a; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form-foot { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 14px 18px; align-items: center; margin-top: 6px; }
.form-foot .btn { width: 100%; justify-content: center; }
.form-note { font-size: .84rem; color: var(--muted); }
.form-status { grid-column: 1 / -1; border-radius: var(--r-md); padding: 14px 16px; font-size: .95rem; display: none; }
.form-status.show { display: block; }
.form-status.bad { background: color-mix(in srgb, #c0392b 10%, transparent); border: 1px solid color-mix(in srgb, #c0392b 35%, transparent); }
.btn[aria-busy="true"] { opacity: .75; pointer-events: none; }
.btn[aria-busy="true"]::after { content: ""; width: 16px; height: 16px; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: spin .8s linear infinite; }
.sent { text-align: left; padding: 12px 0; }
.sent svg { width: 56px; height: 56px; color: var(--green-500); margin-bottom: 18px; }
.sent .tick-draw { stroke-dasharray: 1; stroke-dashoffset: 1; animation: draw .7s .2s var(--ease) forwards; }
.sent p { color: var(--muted); }
.ts-slot { grid-column: 1 / -1; }

/* ---------- contact ---------- */
.cinfo { display: grid; grid-template-columns: repeat(4, 1fr); border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--surface); }
.cinfo > div { padding: clamp(22px, 3vw, 34px); }
.cinfo > div + div { border-left: 1px solid var(--line); }
.cinfo .ic { width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; background: color-mix(in srgb, var(--green-500) 13%, transparent); color: var(--accent); margin-bottom: 18px; }
.cinfo .ic svg { width: 22px; height: 22px; }
.cinfo h2 { font-size: 1.08rem; font-weight: 660; margin-bottom: 8px; }
.cinfo p, .cinfo a { margin: 0; color: var(--muted); display: block; text-decoration: none; }
.cinfo a:hover { color: var(--accent); text-decoration: underline; }
.open-state { display: inline-flex; align-items: center; gap: 8px; margin-top: 12px; font-size: .86rem; font-weight: 620; padding: 4px 10px; border-radius: 999px; background: var(--stone-100); color: var(--text); }
[data-theme="dark"] .open-state { background: rgba(255, 255, 255, .07); }
.open-state i { width: 8px; height: 8px; border-radius: 50%; background: #9aa6a1; }
.open-state.is-open i { background: #2fb36a; box-shadow: 0 0 0 4px rgba(47, 179, 106, .2); }
.contact-grid { display: grid; grid-template-columns: 1.25fr 1fr; gap: clamp(24px, 4vw, 48px); align-items: start; }
.side { display: grid; gap: 24px; }
.mapbox { position: relative; border-radius: var(--r-lg); overflow: hidden; background: var(--navy-900); min-height: 300px; }
.mapbox iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; filter: grayscale(.2); }
.mapbox .map-cap { position: absolute; left: 14px; bottom: 14px; right: 14px; background: rgba(15, 29, 38, .9); color: #e6eee9; padding: 14px 16px; border-radius: var(--r-md); display: flex; gap: 12px; align-items: center; backdrop-filter: blur(6px); }
.mapbox .map-cap svg { width: 26px; height: 26px; color: var(--gold-300); flex: none; }
.mapbox .map-cap b { display: block; font-size: .98rem; }
.mapbox .map-cap span { font-size: .88rem; color: #a3b5ad; }
.side-card { border: 1px solid var(--line); border-radius: var(--r-lg); padding: 26px 28px; background: var(--surface); }
.side-card h3 { font-size: 1.15rem; margin-bottom: 12px; }
.assist { background: var(--green-700); color: #fff; border-radius: var(--r-lg); padding: 26px 28px; }
.assist h3 { font-size: 1.15rem; margin-bottom: 10px; }
.assist p { color: rgba(255, 255, 255, .84); font-size: .96rem; }
.assist a { display: flex; gap: 12px; align-items: center; color: #fff; text-decoration: none; font-weight: 600; margin-top: 10px; }
.assist a:hover { text-decoration: underline; }
.assist svg { width: 20px; height: 20px; color: var(--gold-300); }

/* reveal (used sparingly: only on photos of the services page) */
.to-top { position: fixed; right: 18px; bottom: 18px; z-index: 40; width: 46px; height: 46px; border-radius: 50%; border: 0; background: var(--green-700); color: #fff; display: grid; place-items: center; cursor: pointer; opacity: 0; transform: translateY(12px); transition: opacity .3s, transform .3s; pointer-events: none; box-shadow: 0 10px 24px -10px rgba(0, 0, 0, .5); }
.to-top.show { opacity: 1; transform: none; pointer-events: auto; }
.to-top svg { width: 20px; height: 20px; transform: rotate(-90deg); }

/* 404 */
.nf { min-height: 70vh; display: grid; align-items: center; }

/* ---------- responsive ---------- */
@media (max-width: 1220px) {
  .nav-links, .nav .btn.hide-sm { display: none; }
  .menu-btn { display: grid; }
  .nav .wrap { justify-content: space-between; }
}
@media (max-width: 1080px) {
  .tiles { grid-template-columns: 1fr 1fr; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .touch { grid-template-columns: 1fr 1fr; }
  .touch .btn-cell { grid-column: 1 / -1; }
  .inits { grid-template-columns: 1fr 1fr; }
  .init:nth-child(3) { padding-left: 0; border-left: 0; }
  .init:nth-child(n + 3) { border-top: 1px solid var(--line); }
  .cinfo { grid-template-columns: 1fr 1fr; }
  .cinfo > div:nth-child(3) { border-left: 0; }
  .cinfo > div:nth-child(n + 3) { border-top: 1px solid var(--line); }
}
@media (max-width: 900px) {
  .split, .svc, .chain-panel, .hse, .contact-grid, .cta-inner, .mv { grid-template-columns: 1fr; }
  .svc.flip .svc-media { order: 0; }
  .hero-copy { grid-template-columns: 1fr; }
  .hero-reg { justify-items: start; text-align: left; grid-auto-flow: column; justify-content: start; gap: 22px; }
  .values { grid-template-columns: 1fr 1fr; }
  .value:not(:nth-child(3n + 1)) { padding-left: 0; border-left: 0; }
  .value:nth-child(even) { padding-left: 24px; border-left: 1px solid var(--line); }
  .benefits { grid-template-columns: 1fr 1fr; }
  .chain { grid-template-columns: repeat(4, minmax(150px, 1fr)); overflow-x: auto; scrollbar-width: none; }
  .chain::-webkit-scrollbar { display: none; }
  .timeline { grid-template-columns: 1fr; padding-top: 0; padding-left: 44px; }
  .timeline::before, .timeline::after { left: 9px; right: auto; top: 0; bottom: 0; width: 2px; height: auto; }
  .timeline::after { transform-origin: top; transform: scaleY(var(--tl, 1)); }
  .tl::before { top: 6px; left: -44px; }
}
@media (max-width: 760px) {
  :root { --header-h: 66px; }
  .hero::before { background-image: url("/assets/img/refinery-towers-sm.webp"); }
  .topbar .tb-mail { display: none; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .stat:nth-child(3) { border-left: 0; padding-left: 0; }
  .stat:nth-child(n + 3) { border-top: 1px solid var(--line); }
  .stat:nth-child(even) { padding-right: 0; }
  .pano-scroll { overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
  .pano-scroll::-webkit-scrollbar { display: none; }
  .pano { width: 1180px; max-width: none; }
  .pano-snap { position: absolute; top: 0; height: 1px; scroll-snap-align: start; }
  .stages { grid-template-columns: 1fr 1fr; }
  .stage-btn { padding: 13px 16px 14px; }
  .stage-btn:nth-child(3) { border-left: 0; }
  .stage-btn:nth-child(n + 3) { border-top: 1px solid rgba(220, 234, 226, .1); }
  .stage-btn span { display: none; }
  .stage-btn b { font-size: .95rem; }
  .hero-reg { display: none; }
  .hero .lead { font-size: 1.05rem; }
  .pano-wrap::after { content: "Swipe the scene or tap a stage"; position: absolute; right: 12px; top: 6px; font-size: .75rem; color: #a3b5ad; pointer-events: none; }
  .tiles, .licenses, .foot-grid, .touch, .checks, .svc .checks, .values, .benefits, .hi ul, .certs, .inits, .cinfo, .form-grid, .stat-grid { grid-template-columns: 1fr; }
  .value:nth-child(even) { padding-left: 0; border-left: 0; }
  .init + .init { padding-left: 0; border-left: 0; border-top: 1px solid var(--line); }
  .cinfo > div + div { border-left: 0; border-top: 1px solid var(--line); }
  .journey { grid-template-columns: 1fr; }
  .journey svg { transform: rotate(90deg); margin: 0 auto; }
  .job { grid-template-columns: 1fr; }
  .svc-media > img { width: 100%; }
  .svc-media .scene-panel { width: 72%; }
  .lead-panel { grid-template-columns: 1fr; }
  .hero-reg { grid-auto-flow: row; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .sc *, .ngmap *, .ticker-track { animation: none !important; }
  .sc .level { transform: scaleY(.62); }
  .sc .wave, .sc .steam { opacity: 0; }
  .ticker-track { flex-wrap: wrap; width: auto; }
  .ticker-track ul + ul { display: none; }
  .ticker ul { flex-wrap: wrap; justify-content: center; }
  *, *::before, *::after { transition-duration: .01ms !important; }
  @view-transition { navigation: none; }
}

@media print {
  .site-header, .mnav, .to-top, .ticker, .pano-wrap, .svc-nav { display: none !important; }
  .hero, .phero { margin-top: 0; padding-top: 24px; color: #000; background: none; }
  body { background: #fff; color: #000; }
}

/* icons inside stage and chain buttons */
.stage-btn b .stage-ic { width: 17px; height: 17px; color: var(--gold-300); flex: none; align-self: center; }
.chain button i svg { width: 15px; height: 15px; }

[data-theme="dark"] .map-card, [data-theme="dark"] .tile-art, [data-theme="dark"] .scene-panel { box-shadow: inset 0 0 0 1px var(--line); }
