/* Hasik Engineering and Contracting: concept build by Marketlube (fictional brand) */
:root {
  --beige: #EFE6D6;
  --lime: #E3D6BF;
  --teal: #0F3D3E;
  --night: #0A2B2C;
  --rust: #A4472A;
  --rust-dk: #8C3A21;
  --ink: #1C1A17;
  --grey: #5E574C;
  --glass: #8FB3AD;
  --display: "Zilla Slab", Rockwell, "Roboto Slab", Georgia, serif;
  --text: "Archivo", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --arabic: "Reem Kufi", "Geeza Pro", "Noto Kufi Arabic", sans-serif;
  --gutter: clamp(16px, 4vw, 56px);
  --max: 1360px;
  --hh: 68px;
  --focus: var(--rust);
  --ease: cubic-bezier(.22, .8, .24, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: calc(var(--mlc-h) + var(--hh) + 12px); }
body {
  margin: 0; background: var(--beige); color: var(--ink);
  font: 400 1.0625rem/1.6 var(--text);
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
h1, h2, h3, p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: fixed; left: 12px; top: calc(var(--mlc-h) + 8px); z-index: 300; padding: 10px 16px; background: var(--ink); color: var(--beige); text-decoration: none; transform: translateY(-200%); }
.skip:focus { transform: none; }

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

/* Type */
.h2 {
  font: 700 clamp(2.05rem, 1.25rem + 3.3vw, 4.25rem)/1.02 var(--display);
  letter-spacing: -0.012em; text-wrap: balance;
}
.h3 { font: 600 clamp(1.35rem, 1.1rem + .8vw, 1.75rem)/1.15 var(--display); }
.kicker {
  display: flex; align-items: center; gap: 12px; margin-bottom: 18px;
  font: 600 .8125rem/1.2 var(--text); letter-spacing: .14em; text-transform: uppercase; color: var(--grey);
}
.kicker span { font-family: var(--display); font-size: 1rem; letter-spacing: 0; color: var(--rust); }
.kicker::after { content: ""; width: 48px; height: 2px; background: currentColor; opacity: .5; }
.projects .kicker span, .people .kicker span { color: var(--rust-dk); }
.kicker-light { color: var(--glass); }
.kicker-light span { color: var(--beige); }
.eyebrow { font: 600 .8125rem/1.3 var(--text); letter-spacing: .14em; text-transform: uppercase; color: var(--rust); }
.lead { font-size: clamp(1.0625rem, 1rem + .35vw, 1.25rem); line-height: 1.55; max-width: 54ch; }
.sec-intro { max-width: 56ch; margin-top: 22px; color: var(--grey); font-size: 1.125rem; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 50px; padding: 12px 24px; border: 2px solid transparent; border-radius: 2px;
  font: 600 1rem/1.2 var(--text); text-decoration: none; white-space: nowrap;
  transition: background-color .2s, color .2s, border-color .2s, transform .2s var(--ease);
}
.btn:active { transform: translateY(1px); }
.btn-rust { background: var(--rust); color: var(--beige); }
.btn-rust:hover { background: var(--rust-dk); }
.btn-line { border-color: var(--ink); color: var(--ink); }
.btn-line:hover { background: var(--ink); color: var(--beige); }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }
@media (max-width: 559px) { .hero .btn-row .btn { flex: 1 1 100%; } }

/* Header */
.site-header {
  position: sticky; top: var(--mlc-h); z-index: 100; height: var(--hh);
  background: var(--beige); color: var(--ink);
  border-bottom: 1px solid rgba(28, 26, 23, .12);
  transition: color .3s;
}
.site-header::before {
  content: ""; position: absolute; inset: 0; background: var(--night); opacity: 0; transition: opacity .35s; z-index: -1;
}
.site-header.is-solid, html.menu-open .site-header { color: var(--beige); --focus: var(--beige); border-bottom-color: transparent; }
.site-header.is-solid::before, html.menu-open .site-header::before { opacity: 1; }
.header-inner { height: 100%; display: flex; align-items: center; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; flex: none; }
.brand-mark { width: 36px; height: 36px; flex: none; }
.brand-word { font: 700 1.625rem/1 var(--display); letter-spacing: -0.01em; }
.brand-rule { width: 1px; height: 26px; background: currentColor; opacity: .4; }
.brand-ar { font: 600 1.375rem/1 var(--arabic); transform: translateY(1px); }
.nav { margin-left: auto; display: none; }
.nav ul { display: flex; gap: clamp(14px, 1.6vw, 26px); }
.nav a { position: relative; display: block; padding: 8px 0; font: 500 .9375rem/1.2 var(--text); text-decoration: none; }
.nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 2px; height: 2px; background: var(--rust); transform: scaleX(0); transform-origin: left; transition: transform .3s var(--ease); }
.nav a:hover::after, .nav a:focus-visible::after { transform: scaleX(1); }
.header-cta { display: none; min-height: 44px; padding: 10px 18px; font-size: .9375rem; }
.menu-btn {
  margin-left: auto; display: inline-flex; align-items: center; gap: 10px; min-height: 44px; padding: 8px 14px;
  background: transparent; border: 1.5px solid currentColor; border-radius: 2px; font: 600 .9375rem/1 var(--text);
}
.menu-btn-icon { display: grid; gap: 5px; width: 18px; }
.menu-btn-icon span { display: block; height: 2px; background: currentColor; transition: transform .3s var(--ease); }
.menu-btn[aria-expanded="true"] .menu-btn-icon span:first-child { transform: translateY(3.5px) rotate(45deg); }
.menu-btn[aria-expanded="true"] .menu-btn-icon span:last-child { transform: translateY(-3.5px) rotate(-45deg); }
@media (min-width: 560px) { .header-cta { display: inline-flex; } .menu-btn { margin-left: 0; } .header-cta { margin-left: auto; } }
@media (min-width: 1100px) {
  .nav { display: block; }
  .header-cta { margin-left: 0; }
  .menu-btn { display: none; }
}

.menu-panel {
  position: fixed; z-index: 90; top: var(--mlc-h); left: 0; right: 0; bottom: 0;
  padding: calc(var(--hh) + 28px) var(--gutter) 32px; overflow-y: auto;
  background: var(--teal); color: var(--beige); --focus: var(--beige);
  display: flex; flex-direction: column; justify-content: space-between; gap: 32px;
  opacity: 0; transform: translateY(-12px); transition: opacity .3s, transform .35s var(--ease);
}
.menu-panel.is-open { opacity: 1; transform: none; }
.menu-panel[hidden] { display: none; }
.menu-panel ol { display: grid; gap: 2px; counter-reset: m; }
.menu-panel li { counter-increment: m; border-bottom: 1px solid rgba(239, 230, 214, .18); }
.menu-panel a { display: flex; align-items: baseline; gap: 16px; padding: 12px 0; font: 600 clamp(1.75rem, 6vw, 2.5rem)/1.1 var(--display); text-decoration: none; }
.menu-panel a::before { content: "0" counter(m); font: 500 .8125rem/1 var(--text); color: var(--glass); letter-spacing: .1em; }
.menu-foot { color: var(--glass); font-size: .9375rem; }
html.menu-open { overflow: hidden; }

/* Hero */
.hero { background: var(--beige); }
.hero-head { padding-top: clamp(32px, 4.4vw, 64px); padding-bottom: clamp(28px, 3.2vw, 44px); }
.hero-title {
  margin-top: 18px; max-width: 19ch;
  font: 700 clamp(2.5rem, 1.1rem + 4.6vw, 5.5rem)/.98 var(--display); letter-spacing: -0.018em;
}
.hero-foot { margin-top: clamp(22px, 2.6vw, 36px); display: grid; gap: 24px; }
@media (min-width: 900px) {
  .hero-foot { grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 48px; }
}
.hero-media { position: relative; }
.hero-frame { position: relative; overflow: hidden; aspect-ratio: 4 / 3; background: var(--lime); }
@media (min-width: 700px) { .hero-frame { aspect-ratio: 16 / 9; } }
@media (min-width: 1100px) { .hero-frame { aspect-ratio: 2.35 / 1; } }
.hero-frame picture, .hero-img { width: 100%; height: 100%; }
.hero-img { object-fit: cover; object-position: 50% 66%; }
.hero-cover { display: none; position: absolute; inset: 0; background: var(--beige); transform-origin: 50% 100%; }
.js-motion .hero-cover { display: block; }
.hero-cap { padding-top: 14px; padding-bottom: 14px; font-size: .9375rem; color: var(--grey); }
.hero-cap span { margin-right: 10px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; font-size: .75rem; color: var(--rust); }

.facts { background: var(--teal); color: var(--beige); }
.facts-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.facts-list li { padding: clamp(24px, 3vw, 40px) 0; padding-right: 16px; border-top: 1px solid rgba(239, 230, 214, .16); }
.facts-list li:nth-child(-n+2) { border-top: 0; }
.fact-num { display: block; font: 700 clamp(2.4rem, 1.6rem + 3vw, 4.25rem)/1 var(--display); font-variant-numeric: tabular-nums; }
.fact-label { display: block; margin-top: 8px; color: var(--glass); font-size: .9375rem; line-height: 1.4; max-width: 20ch; }
@media (min-width: 900px) {
  .facts-list { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .facts-list li { border-top: 0; padding-left: 24px; border-left: 1px solid rgba(239, 230, 214, .16); }
  .facts-list li:first-child { padding-left: 0; border-left: 0; }
}

/* Sections */
.section { padding-block: clamp(56px, 9vw, 140px); }
.sec-head { margin-bottom: clamp(36px, 5vw, 64px); max-width: 920px; }
.sec-head-row { max-width: none; display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 24px; }

/* Sectors */
.sector-layout { display: grid; gap: 20px; }
.sector-list { display: grid; gap: 14px; }
.sector { position: relative; padding: clamp(20px, 2.4vw, 32px); border-radius: 2px; }
.s-teal { background: var(--teal); color: var(--beige); --focus: var(--beige); }
.s-lime { background: var(--lime); color: var(--ink); }
.s-rust { background: var(--rust); color: var(--beige); --focus: var(--beige); }
.s-sand { background: var(--beige); color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--ink); }
.sector-name {
  display: flex; align-items: baseline; gap: 14px; width: 100%; padding: 0; text-align: left;
  background: none; border: 0; font: 600 clamp(1.5rem, 1.15rem + 1.3vw, 2.25rem)/1.1 var(--display);
}
.sector-no { font: 600 .875rem/1 var(--text); letter-spacing: .08em; flex: none; }
.sector-body { margin-top: 14px; }
.sector-body > p:first-of-type { max-width: 48ch; }
.sector-img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; margin-bottom: 18px; }
.sector[data-sector="0"] .sector-img { object-position: 50% 25%; }
.scope-label { margin-top: 16px; font: 600 .75rem/1 var(--text); letter-spacing: .14em; text-transform: uppercase; }
.scope { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.scope li { padding: 5px 11px; border: 1px solid currentColor; border-radius: 2px; font-size: .875rem; line-height: 1.3; }
.sector-stage { display: none; }
@media (min-width: 960px) {
  .sector-layout { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 4vw, 64px); align-items: start; }
  .sector-img { display: none; }
  .sector-name, .sector-body { transition: transform .45s var(--ease); }
  .sector::before {
    content: ""; position: absolute; left: -14px; top: 0; bottom: 0; width: 5px; background: var(--rust);
    transform: scaleY(0); transform-origin: top; transition: transform .45s var(--ease);
  }
  .sector.is-active .sector-name, .sector.is-active .sector-body { transform: translateX(10px); }
  .sector.is-active::before { transform: scaleY(1); }
  .s-rust.is-active::before { background: var(--ink); }
  .sector-name:hover { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 6px; }
  .sector-stage { display: block; position: sticky; top: calc(var(--mlc-h) + var(--hh) + 28px); }
  .stage-frame { position: relative; aspect-ratio: 4 / 5; max-height: calc(100vh - var(--mlc-h) - var(--hh) - 110px); width: 100%; overflow: hidden; background: var(--lime); }
  .stage-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; visibility: hidden; transform: scale(1.05); transition: opacity .6s ease, transform 1.1s var(--ease), visibility 0s linear .6s; }
  .stage-img[data-i="0"] { object-position: 50% 30%; }
  .stage-img.is-on { opacity: 1; visibility: visible; transform: none; transition: opacity .6s ease, transform 1.1s var(--ease), visibility 0s; }
  .stage-cap { margin-top: 14px; display: flex; gap: 10px; align-items: baseline; font-size: .9375rem; color: var(--grey); }
  .stage-no { font: 600 1rem/1 var(--display); color: var(--rust); }
}

/* Projects */
.projects { background: var(--lime); }
.filter { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  min-height: 44px; padding: 8px 18px; background: transparent; border: 1.5px solid var(--ink); border-radius: 2px;
  font: 500 .9375rem/1 var(--text); transition: background-color .2s, color .2s;
}
.chip:hover { background: rgba(28, 26, 23, .08); }
.chip[aria-pressed="true"] { background: var(--ink); color: var(--beige); }
.project-grid { display: grid; gap: clamp(16px, 2vw, 28px); grid-template-columns: minmax(0, 1fr); }
@media (min-width: 700px) { .project-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .project-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.project { background: var(--beige); display: flex; flex-direction: column; outline-offset: 4px; }
.project.is-hidden { display: none; }
.project-media { aspect-ratio: 3 / 2; overflow: hidden; background: #d8c9ae; }
.project-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.media-portrait img { object-position: 50% 28%; }
.project:hover .project-media img { transform: scale(1.04); }
.media-drawing { background: var(--lime); }
.media-drawing svg { width: 100%; height: 100%; }
.project-body { padding: clamp(20px, 2vw, 28px); display: flex; flex-direction: column; gap: 10px; flex: 1; }
.project-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; font-size: .9375rem; color: var(--grey); }
.tag { padding: 3px 8px; background: var(--rust); color: var(--beige); font: 600 .75rem/1.3 var(--text); letter-spacing: .1em; text-transform: uppercase; }
.project h3 { font: 600 clamp(1.4rem, 1.2rem + .6vw, 1.75rem)/1.12 var(--display); }
.project-facts { margin-top: auto; padding-top: 16px; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; border-top: 1.5px solid var(--ink); }
.project-facts dt { font: 600 .75rem/1.2 var(--text); letter-spacing: .12em; text-transform: uppercase; color: var(--grey); }
.project-facts dd { margin-top: 4px; font: 600 1.125rem/1.2 var(--display); }

/* Map */
.map-sec { background: var(--teal); color: var(--beige); --focus: var(--beige); }
.map-layout { display: grid; gap: 40px; }
.map-intro { margin-top: 20px; max-width: 46ch; color: var(--beige); opacity: .9; }
.map-list { margin-top: 32px; border-top: 1px solid rgba(239, 230, 214, .2); }
.map-list li { border-bottom: 1px solid rgba(239, 230, 214, .2); }
.map-list button {
  width: 100%; display: grid; grid-template-columns: 18px minmax(0, 1fr) auto; align-items: center; gap: 12px;
  padding: 13px 0; background: none; border: 0; text-align: left; font: 500 1rem/1.3 var(--text);
  transition: transform .35s var(--ease);
}
.map-list button:hover .ml-name, .map-list button:hover { text-decoration: underline; text-underline-offset: 4px; }
.ml-reg { color: var(--glass); font-size: .875rem; }
.ml-dot { width: 12px; height: 12px; border-radius: 50%; border: 2px solid var(--glass); transition: transform .3s var(--ease); }
.map-list button[aria-pressed="true"] { font-weight: 600; }
.map-list button[aria-pressed="true"] .ml-dot { background: var(--rust); border-color: var(--beige); transform: scale(1.3); }
.map-legend { margin-top: 24px; display: flex; flex-wrap: wrap; gap: 20px; font-size: .875rem; color: var(--glass); }
.map-legend span { display: inline-flex; align-items: center; gap: 8px; }
.lg-pin { width: 14px; height: 14px; border-radius: 50%; background: var(--rust); border: 2px solid var(--beige); }
.lg-yard { width: 11px; height: 11px; background: var(--ink); border: 2px solid var(--beige); }
.map-figure { position: relative; max-width: 620px; width: 100%; margin-inline: auto; }
.map-canvas { position: relative; width: 100%; max-width: 620px; margin-inline: auto; aspect-ratio: 486 / 612; }
.map-svg { width: 100%; height: 100%; }
@media (max-width: 599px) {
  .map-svg .mt-city { font-size: 20px; }
  .map-svg .mt-region { font-size: 18px; }
  .map-svg .mt-sea { font-size: 16px; }
}
.pins { position: absolute; inset: 0; }
.pin {
  position: absolute; width: 34px; height: 34px; margin: -17px 0 0 -17px; padding: 0;
  background: none; border: 0; border-radius: 50%; display: grid; place-items: center;
}
.pin span { position: relative; width: 16px; height: 16px; border-radius: 50%; background: var(--rust); border: 2.5px solid var(--beige); box-shadow: 0 0 0 1px var(--ink); transition: transform .3s var(--ease); }
.pin:hover span, .pin:focus-visible span { transform: scale(1.25); }
.pin.is-active span { transform: scale(1.45); background: var(--ink); border-color: var(--rust); }
.pin.is-active::before {
  content: ""; position: absolute; width: 16px; height: 16px; left: 9px; top: 9px; border-radius: 50%; border: 2px solid var(--ink);
}
.js-motion .pin.is-active::before { animation: ring 2.4s ease-out infinite; }
@keyframes ring { 0% { transform: scale(1); opacity: .9; } 100% { transform: scale(2.6); opacity: 0; } }
.pin:focus-visible { outline: 3px solid var(--ink); outline-offset: 0; }
.yard { position: absolute; width: 11px; height: 11px; margin: -5.5px 0 0 -5.5px; background: var(--ink); border: 2px solid var(--beige); }
.map-panel { margin-top: 18px; padding: 20px 22px; background: var(--beige); color: var(--ink); --focus: var(--rust); border-left: 5px solid var(--rust); }
.mp-sector { font: 600 .75rem/1.2 var(--text); letter-spacing: .14em; text-transform: uppercase; color: var(--rust); }
.mp-name { margin-top: 6px; font: 600 1.5rem/1.15 var(--display); }
.mp-detail { margin-top: 4px; color: var(--grey); }
.mp-link { display: inline-block; margin-top: 10px; font-weight: 600; text-underline-offset: 4px; }
.mp-link::after { content: " \2192"; }
@media (min-width: 960px) {
  .map-layout { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(40px, 5vw, 88px); align-items: center; }
  .map-panel { position: absolute; left: 2.5%; top: 2.5%; width: 39%; margin: 0; padding: 16px 18px; }
  .mp-name { font-size: 1.25rem; }
}

/* Capabilities */
.caps-grid { display: grid; gap: 48px; }
@media (min-width: 960px) { .caps-grid { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(48px, 6vw, 96px); } }
.eng-list { margin-top: 20px; border-top: 1.5px solid var(--ink); }
.eng-list li { display: grid; grid-template-columns: 48px minmax(0, 1fr); gap: 12px; padding: 16px 0; border-bottom: 1px solid rgba(28, 26, 23, .2); font-size: 1.0625rem; }
.eng-no { font: 600 1rem/1.6 var(--display); color: var(--rust); }
.fleet { padding: clamp(22px, 3vw, 40px); background: var(--lime); }
.tabs { margin-top: 18px; display: flex; flex-wrap: wrap; gap: 6px; }
.tabs [role="tab"] {
  min-height: 44px; padding: 8px 16px; background: transparent; border: 1.5px solid var(--ink); border-radius: 2px;
  font: 500 .9375rem/1.1 var(--text); transition: background-color .2s, color .2s;
}
.tabs [role="tab"]:hover { background: rgba(28, 26, 23, .08); }
.tabs [role="tab"][aria-selected="true"] { background: var(--teal); border-color: var(--teal); color: var(--beige); }
.tab-panel { margin-top: 22px; }
.fleet-table { width: 100%; border-collapse: collapse; }
.fleet-table thead th { padding: 0 0 10px; font: 600 .75rem/1.2 var(--text); letter-spacing: .14em; text-transform: uppercase; color: var(--grey); text-align: left; border-bottom: 1.5px solid var(--ink); }
.fleet-table thead th:last-child { text-align: right; }
.fleet-table tbody th { padding: 14px 12px 14px 0; font: 500 1.0625rem/1.3 var(--text); text-align: left; border-bottom: 1px solid rgba(28, 26, 23, .2); }
.fleet-table td { padding: 8px 0; text-align: right; font: 700 clamp(1.9rem, 1.4rem + 1.6vw, 2.75rem)/1 var(--display); font-variant-numeric: tabular-nums; border-bottom: 1px solid rgba(28, 26, 23, .2); color: var(--teal); }
.fleet-note { margin-top: 22px; color: var(--grey); font-size: .9375rem; max-width: 52ch; }

/* People */
.people { background: var(--lime); }
.people-grid { display: grid; gap: 40px; }
@media (min-width: 960px) { .people-grid { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(48px, 6vw, 96px); align-items: center; } }
.reveal-frame { position: relative; overflow: hidden; aspect-ratio: 4 / 3; background: #d8c9ae; }
.reveal-frame img { width: 100%; height: 100%; object-fit: cover; }
.img-cover { position: absolute; inset: 0; background: var(--lime); transform-origin: 100% 50%; }
.people-media figcaption { margin-top: 12px; font-size: .9375rem; color: var(--grey); }
.people-copy > p { margin-top: 20px; max-width: 52ch; }
.people-copy .h2 + p { margin-top: 24px; }
.points { margin-top: 32px; display: grid; gap: 0; border-top: 1.5px solid var(--ink); }
.points li { display: grid; grid-template-columns: 52px minmax(0, 1fr); align-items: baseline; padding: 14px 0; border-bottom: 1px solid rgba(28, 26, 23, .2); font: 600 1.25rem/1.3 var(--display); }
.points span { font-size: 1.75rem; color: var(--rust); }

/* Safety */
.safety { background: var(--rust); color: var(--beige); --focus: var(--beige); }
.safety .kicker { color: var(--beige); }
.safety .kicker span { color: var(--beige); }
.hse-grid { display: grid; gap: 0 clamp(24px, 3vw, 48px); grid-template-columns: minmax(0, 1fr); counter-reset: h; }
@media (min-width: 700px) { .hse-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .hse-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.hse-grid li { padding: clamp(16px, 2vw, 24px) 0 clamp(20px, 2.4vw, 32px); border-top: 1.5px solid rgba(239, 230, 214, .55); }
.hse-no { display: block; font: 700 clamp(1.75rem, 1.3rem + 1.4vw, 2.5rem)/1 var(--display); }
.hse-grid h3 { margin-top: 14px; font: 600 1.375rem/1.2 var(--display); }
.hse-grid p { margin-top: 8px; max-width: 40ch; }
.cred-slot { margin-top: clamp(32px, 4vw, 56px); padding: 22px 24px; border: 2px dashed rgba(239, 230, 214, .8); display: flex; flex-wrap: wrap; gap: 6px 24px; align-items: baseline; justify-content: space-between; }
.cred-label { font: 600 1.25rem/1.2 var(--display); }
.cred-line { font-size: .9375rem; }

/* Careers */
.careers-grid { display: grid; gap: 48px; }
@media (min-width: 960px) { .careers-grid { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(48px, 6vw, 96px); align-items: start; } }
.roles { margin-top: 36px; border-top: 1.5px solid var(--ink); }
.role { border-bottom: 1px solid rgba(28, 26, 23, .25); }
.role summary {
  list-style: none; cursor: pointer; display: grid; grid-template-columns: minmax(0, 1fr) auto 28px; gap: 16px; align-items: center;
  padding: 20px 0; font: 600 clamp(1.2rem, 1.05rem + .5vw, 1.45rem)/1.2 var(--display);
}
.role summary::-webkit-details-marker { display: none; }
.role summary::after { content: "+"; display: grid; place-items: center; width: 28px; height: 28px; border: 1.5px solid var(--ink); font: 500 1.1rem/1 var(--text); transition: transform .3s var(--ease); }
.role[open] summary::after { transform: rotate(45deg); }
.role summary:hover .role-title { text-decoration: underline; text-underline-offset: 5px; }
.role-loc { font: 500 .875rem/1.2 var(--text); color: var(--grey); text-align: right; }
.role ul { padding: 0 0 6px 0; display: grid; gap: 8px; max-width: 60ch; }
.role ul li { position: relative; padding-left: 22px; }
.role ul li::before { content: ""; position: absolute; left: 0; top: .7em; width: 10px; height: 2px; background: var(--rust); }
.role-cta { display: inline-block; margin: 12px 0 22px; font-weight: 600; color: var(--rust); text-underline-offset: 4px; }
.role-cta::after { content: " \2192"; }

/* Forms */
.form { padding: clamp(22px, 3vw, 40px); background: var(--lime); display: grid; gap: 16px; }
.form .h3 { margin-bottom: 2px; }
.form-note { color: var(--grey); font-size: .9375rem; }
.field { display: grid; gap: 6px; min-width: 0; }
.field label { font: 500 .9375rem/1.3 var(--text); }
.field input, .field select, .field textarea {
  width: 100%; min-height: 48px; padding: 11px 14px; background: var(--beige); border: 1.5px solid rgba(28, 26, 23, .55); border-radius: 2px;
}
.field textarea { resize: vertical; min-height: 110px; }
.field input::placeholder, .field textarea::placeholder { color: #6b6458; opacity: 1; }
.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible { outline: 3px solid var(--rust); outline-offset: 1px; border-color: var(--ink); }
.form .btn { justify-self: start; margin-top: 6px; }
.form-row { display: grid; gap: 16px; }
@media (min-width: 640px) { .form-row { grid-template-columns: 1fr 1fr; } }

/* CTA */
.cta { position: relative; overflow: hidden; background: var(--teal); color: var(--beige); --focus: var(--beige); padding-block: clamp(80px, 10vw, 150px); }
.cta { padding-bottom: clamp(210px, 58vw, 300px); }
.topo { position: absolute; right: -22vw; bottom: -30vw; width: 92vw; height: auto; overflow: visible; opacity: .2; pointer-events: none; }
.topo .idx { stroke-width: 2.4; }
.cta-inner { position: relative; display: grid; gap: 28px; }
.cta-title { max-width: 16ch; }
.cta-side p { font-size: 1.125rem; max-width: 44ch; margin-bottom: 26px; }
@media (min-width: 960px) {
  .cta { padding-bottom: clamp(80px, 10vw, 150px); }
  .topo { right: -9vw; bottom: auto; top: 50%; width: min(50vw, 720px); margin-top: calc(min(50vw, 720px) / -2); opacity: .22; }
}

/* Contact */
.contact { background: var(--beige); }
.contact-grid { display: grid; gap: 48px; }
@media (min-width: 960px) { .contact-grid { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(48px, 6vw, 96px); } }
.contact-list { margin-top: 32px; border-top: 1.5px solid var(--ink); }
.contact-list div { display: grid; grid-template-columns: clamp(92px, 9vw, 110px) minmax(0, 1fr); gap: 12px; padding: 14px 0; border-bottom: 1px solid rgba(28, 26, 23, .2); }
.contact-list dt { font: 600 .75rem/1.6 var(--text); letter-spacing: .12em; text-transform: uppercase; color: var(--grey); padding-top: 2px; }
.contact-list dd { font-size: 1.0625rem; overflow-wrap: anywhere; }
.contact-list a { text-underline-offset: 4px; }
.contact-list a:hover { color: var(--rust); }

/* Footer */
.site-footer { background: var(--night); color: var(--beige); --focus: var(--beige); padding-top: clamp(56px, 7vw, 96px); }
.footer-top { display: grid; gap: 40px; padding-bottom: 48px; }
@media (min-width: 900px) { .footer-top { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); } }
.brand-foot .brand-mark { width: 44px; height: 44px; }
.brand-foot .brand-word { font-size: 2rem; }
.brand-foot .brand-ar { font-size: 1.625rem; }
.footer-ar { margin-top: 16px; font: 600 1.125rem/1.6 var(--arabic); color: var(--glass); text-align: left; }
.footer-line { margin-top: 6px; max-width: 36ch; color: var(--beige); opacity: .88; }
.footer-nav { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 28px; }
.footer-nav h2 { font: 600 .75rem/1.2 var(--text); letter-spacing: .14em; text-transform: uppercase; color: var(--glass); margin-bottom: 14px; }
.footer-nav ul { display: grid; gap: 8px; }
.footer-nav a { text-decoration: none; }
.footer-nav a:hover { text-decoration: underline; text-underline-offset: 4px; }
.footer-base { position: relative; padding-top: 22px; padding-bottom: 28px; display: grid; gap: 10px; font-size: .9375rem; }
@media (min-width: 900px) { .footer-base { grid-template-columns: minmax(0, 1fr) auto; gap: 32px; } }
.footer-base::before { content: ""; position: absolute; top: 0; left: var(--gutter); right: var(--gutter); height: 1px; background: rgba(239, 230, 214, .16); }
.honesty a { text-underline-offset: 3px; font-weight: 600; }
.copy { color: var(--glass); }

/* SplitText line masks: room for descenders */
.hero-title > div, .split > div { padding-bottom: .1em; margin-bottom: -.1em; }

/* Motion: hidden states only when the head script allowed motion */
.js-motion [data-reveal], .js-motion [data-stagger], .js-motion .project { opacity: 0; transform: translateY(28px); }
.js-motion .hero-title { visibility: hidden; }
.js-motion .pin, .js-motion .yard { opacity: 0; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .01ms !important; animation: none !important; }
}
