/* ==========================================================================
   PERMASOL OILFIELD SERVICES COMPANY — permasol-ly.com
   Design language: "the drawing set"
   White drafting sheets laid on a grey desk, navy ink, gold annotation.
   --------------------------------------------------------------------------
   01  Tokens
   02  Reset & base
   03  Typography
   04  Layout: desk, sheets, grid
   05  Structural devices: sheet head, ticks, title block
   06  Header & navigation
   07  Buttons & links
   08  Hero
   09  Nameplate
   10  Marquee
   11  Scope cards
   12  Sequence (requisition flow)
   13  Sector tabs
   14  Value blocks / statements
   15  Data tables & spec lists
   16  Forms
   17  Footer
   18  Utilities, motion, print
   ========================================================================== */

/* 01 ── Tokens ─────────────────────────────────────────────────────────── */
:root{
  --ink:        #0C1A33;
  --ink-2:      #152B4E;
  --ink-3:      #22406E;
  --steel:      #78828E;
  --steel-2:    #AAB2BC;
  --gold:       #BE8B33;
  --gold-2:     #E3BB68;
  --gold-3:     #8E6620;

  --sheet:      #FFFFFF;
  --desk:       #E6E7E2;
  --desk-2:     #DBDDD6;

  --text:       #16233A;
  --text-2:     #55617A;
  --text-3:     #7E8798;

  --rule:       rgba(12,26,51,.16);
  --rule-soft:  rgba(12,26,51,.08);
  --rule-gold:  rgba(190,139,51,.42);

  --pad:        clamp(22px, 4.6vw, 76px);
  --pad-y:      clamp(48px, 7vw, 104px);
  --max:        1280px;

  --f-display:  "Saira", "Arial Narrow", Impact, system-ui, sans-serif;
  --f-body:     "IBM Plex Sans", "Segoe UI", Helvetica, Arial, sans-serif;
  --f-mono:     "IBM Plex Mono", "SFMono-Regular", Consolas, monospace;

  --ease:       cubic-bezier(.22,.61,.36,1);
}

/* 02 ── Reset & base ───────────────────────────────────────────────────── */
*,*::before,*::after{ box-sizing:border-box; }
html{ -webkit-text-size-adjust:100%; scroll-behavior:smooth; }
body{
  margin:0;
  background:var(--desk);
  background-image:
    linear-gradient(rgba(12,26,51,.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(12,26,51,.035) 1px, transparent 1px);
  background-size:44px 44px;
  color:var(--text);
  font-family:var(--f-body);
  font-size:17px;
  line-height:1.68;
  -webkit-font-smoothing:antialiased;
  overflow-x:hidden;
}
img,svg{ max-width:100%; display:block; }
a{ color:inherit; }
button{ font:inherit; }
::selection{ background:var(--ink); color:#fff; }

/* 03 ── Typography ─────────────────────────────────────────────────────── */
h1,h2,h3,h4{
  font-family:var(--f-display);
  font-weight:800;
  line-height:.98;
  letter-spacing:-.018em;
  text-transform:uppercase;
  margin:0;
  color:var(--ink);
}
h1{ font-size:clamp(2.5rem, 6.4vw, 5.1rem); }
h2{ font-size:clamp(1.9rem, 4.1vw, 3.15rem); }
h3{ font-size:clamp(1.12rem, 1.5vw, 1.35rem); letter-spacing:-.005em; }
h4{ font-size:1rem; letter-spacing:.01em; }
p{ margin:0 0 1.05em; }
p:last-child{ margin-bottom:0; }

.lede{
  font-size:clamp(1.06rem, 1.55vw, 1.32rem);
  line-height:1.62;
  color:var(--text-2);
  max-width:62ch;
}
.body-lg{ font-size:1.06rem; }
.muted{ color:var(--text-2); }

.mono{
  font-family:var(--f-mono);
  font-size:.72rem;
  letter-spacing:.17em;
  text-transform:uppercase;
  font-weight:500;
}
.eyebrow{
  font-family:var(--f-mono);
  font-size:.7rem;
  letter-spacing:.24em;
  text-transform:uppercase;
  color:var(--gold-3);
  font-weight:500;
  display:block;
  margin-bottom:1.15rem;
}
.eyebrow--light{ color:var(--gold-2); }

/* accent rule used under headings */
.rule-gold{
  width:56px; height:2px; background:var(--gold);
  margin:1.6rem 0 1.5rem;
}

/* 04 ── Layout ─────────────────────────────────────────────────────────── */
.desk{ padding:0 clamp(0px, 2.2vw, 34px) 26px; }

.sheet{
  position:relative;
  max-width:var(--max);
  margin:0 auto 22px;
  background:var(--sheet);
  border:1px solid var(--rule);
  box-shadow:0 1px 0 rgba(12,26,51,.05), 0 18px 46px -34px rgba(12,26,51,.55);
}
.sheet--ink{
  background:var(--ink);
  border-color:rgba(190,139,51,.28);
  color:#E8EAEE;
  background-image:
    radial-gradient(120% 100% at 12% 0%, rgba(34,64,110,.55) 0%, rgba(12,26,51,0) 62%),
    repeating-linear-gradient(90deg, rgba(255,255,255,.018) 0 1px, transparent 1px 3px);
}
.sheet--ink h1,.sheet--ink h2,.sheet--ink h3,.sheet--ink h4{ color:#F4F5F2; }
.sheet--ink .lede,.sheet--ink .muted{ color:#A9B4C6; }
.sheet--flush{ box-shadow:none; }

.sheet-body{ padding:var(--pad-y) var(--pad); }
.sheet-body--tight{ padding:clamp(30px,4vw,56px) var(--pad); }

.wrap{ max-width:1180px; margin:0 auto; }
.measure{ max-width:70ch; }

.cols{ display:grid; gap:clamp(26px,3.4vw,54px); }
.cols-2{ grid-template-columns:repeat(2,1fr); }
.cols-3{ grid-template-columns:repeat(3,1fr); }
.cols-4{ grid-template-columns:repeat(4,1fr); }
.cols-7-5{ grid-template-columns:1.32fr 1fr; align-items:start; }
.cols-5-7{ grid-template-columns:1fr 1.5fr; align-items:start; }

/* 05 ── Structural devices ─────────────────────────────────────────────── */
/* corner registration ticks, drawn with gradients — no extra markup */
.sheet::before,.sheet::after{
  content:"";
  position:absolute;
  left:-1px; right:-1px;
  height:15px;
  pointer-events:none;
  z-index:2;
}
.sheet::before{
  top:-1px;
  background:
    linear-gradient(var(--gold),var(--gold)) left top/15px 1.5px no-repeat,
    linear-gradient(var(--gold),var(--gold)) left top/1.5px 15px no-repeat,
    linear-gradient(var(--gold),var(--gold)) right top/15px 1.5px no-repeat,
    linear-gradient(var(--gold),var(--gold)) right top/1.5px 15px no-repeat;
}
.sheet::after{
  bottom:-1px;
  background:
    linear-gradient(var(--gold),var(--gold)) left bottom/15px 1.5px no-repeat,
    linear-gradient(var(--gold),var(--gold)) left bottom/1.5px 15px no-repeat,
    linear-gradient(var(--gold),var(--gold)) right bottom/15px 1.5px no-repeat,
    linear-gradient(var(--gold),var(--gold)) right bottom/1.5px 15px no-repeat;
}
.sheet--ink::before,.sheet--ink::after{ opacity:.85; }

/* sheet header strip: SHEET 03 ── SCOPE OF SUPPLY */
.sheet-head{
  display:flex; align-items:center; gap:16px;
  padding:12px var(--pad);
  border-bottom:1px solid var(--rule-soft);
  font-family:var(--f-mono);
  font-size:.68rem;
  letter-spacing:.2em;
  text-transform:uppercase;
  color:var(--text-3);
}
.sheet-head b{ color:var(--ink); font-weight:500; }
.sheet-head .bar{ flex:1; height:1px; background:var(--rule); }
.sheet--ink .sheet-head{ border-bottom-color:rgba(255,255,255,.12); color:#8E9CB3; }
.sheet--ink .sheet-head b{ color:var(--gold-2); }
.sheet--ink .sheet-head .bar{ background:rgba(255,255,255,.16); }

/* section label used inside sheets */
.label-row{
  display:flex; align-items:baseline; gap:14px;
  margin-bottom:clamp(22px,3vw,38px);
}
.label-row .num{
  font-family:var(--f-mono); font-size:.72rem; letter-spacing:.16em;
  color:var(--gold-3); padding-top:.3em;
}

/* 06 ── Header ─────────────────────────────────────────────────────────── */
.topbar{
  background:var(--ink);
  color:#B9C4D6;
  font-family:var(--f-mono);
  font-size:.68rem;
  letter-spacing:.14em;
  text-transform:uppercase;
}
.topbar .wrap{
  display:flex; justify-content:space-between; align-items:center; gap:18px;
  padding:9px clamp(14px,3vw,28px); flex-wrap:wrap;
}
.topbar a{ text-decoration:none; color:#DCE3EE; }
.topbar a:hover{ color:var(--gold-2); }
.topbar .sep{ color:var(--gold); margin:0 .55em; }

.site-header{
  position:sticky; top:0; z-index:60;
  background:rgba(255,255,255,.94);
  backdrop-filter:saturate(140%) blur(10px);
  border-bottom:1px solid var(--rule);
  transition:box-shadow .3s var(--ease), padding .3s var(--ease);
}
.site-header.is-stuck{ box-shadow:0 10px 30px -22px rgba(12,26,51,.7); }
.header-inner{
  max-width:var(--max); margin:0 auto;
  display:flex; align-items:center; justify-content:space-between; gap:24px;
  padding:14px clamp(14px,3vw,28px);
  transition:padding .3s var(--ease);
}
.is-stuck .header-inner{ padding-top:9px; padding-bottom:9px; }

.brand{ display:flex; align-items:center; gap:14px; text-decoration:none; flex-shrink:0; }
.brand img{ height:46px; width:auto; transition:height .3s var(--ease); }
.is-stuck .brand img{ height:38px; }

.nav{ display:flex; align-items:center; gap:clamp(14px,2vw,30px); }
.nav a{
  font-family:var(--f-mono);
  font-size:.72rem; letter-spacing:.13em; text-transform:uppercase;
  text-decoration:none; color:var(--text-2);
  padding:6px 0; position:relative; white-space:nowrap;
}
.nav a::after{
  content:""; position:absolute; left:0; right:100%; bottom:0; height:2px;
  background:var(--gold); transition:right .3s var(--ease);
}
.nav a:hover{ color:var(--ink); }
.nav a:hover::after{ right:0; }
.nav a.is-current{ color:var(--ink); }
.nav a.is-current::after{ right:0; }

.nav-toggle{
  display:none; width:44px; height:40px; border:1px solid var(--rule);
  background:#fff; cursor:pointer; padding:0; position:relative;
}
.nav-toggle span,.nav-toggle span::before,.nav-toggle span::after{
  content:""; position:absolute; left:50%; width:20px; height:1.6px;
  background:var(--ink); transform:translateX(-50%); transition:.25s var(--ease);
}
.nav-toggle span{ top:50%; margin-top:-.8px; }
.nav-toggle span::before{ top:-6px; left:0; transform:none; }
.nav-toggle span::after{ top:6px; left:0; transform:none; }
.nav-toggle[aria-expanded="true"] span{ background:transparent; }
.nav-toggle[aria-expanded="true"] span::before{ transform:rotate(45deg); top:0; }
.nav-toggle[aria-expanded="true"] span::after{ transform:rotate(-45deg); top:0; }

/* 07 ── Buttons ────────────────────────────────────────────────────────── */
.btn{
  display:inline-flex; align-items:center; gap:11px;
  font-family:var(--f-mono); font-size:.73rem; letter-spacing:.15em;
  text-transform:uppercase; text-decoration:none; font-weight:500;
  padding:14px 22px; border:1px solid var(--ink); background:var(--ink);
  color:#fff; cursor:pointer; position:relative; overflow:hidden;
  transition:color .25s var(--ease), border-color .25s var(--ease), background .25s var(--ease);
}
.btn .arw{ transition:transform .3s var(--ease); }
.btn:hover .arw{ transform:translateX(4px); }
.btn::before{
  content:""; position:absolute; inset:0; background:var(--gold);
  transform:translateY(101%); transition:transform .32s var(--ease); z-index:0;
}
.btn:hover::before{ transform:translateY(0); }
.btn > *{ position:relative; z-index:1; }
.btn:hover{ border-color:var(--gold); color:var(--ink); }

.btn--ghost{ background:transparent; color:var(--ink); }
.btn--ghost:hover{ color:var(--ink); }
.btn--light{ background:var(--gold); border-color:var(--gold); color:var(--ink); }
.btn--light::before{ background:#fff; }
.btn--light:hover{ border-color:#fff; }
.btn--onink{ background:transparent; border-color:rgba(255,255,255,.4); color:#fff; }
.btn--onink::before{ background:var(--gold-2); }
.btn--onink:hover{ color:var(--ink); border-color:var(--gold-2); }
.btn--sm{ padding:10px 16px; font-size:.68rem; }

.btn-row{ display:flex; flex-wrap:wrap; gap:12px; margin-top:2rem; }

.textlink{
  font-family:var(--f-mono); font-size:.72rem; letter-spacing:.14em;
  text-transform:uppercase; text-decoration:none; color:var(--ink);
  border-bottom:1px solid var(--gold); padding-bottom:3px;
  display:inline-flex; gap:8px; align-items:center;
  transition:gap .25s var(--ease);
}
.textlink:hover{ gap:14px; }
.sheet--ink .textlink{ color:var(--gold-2); }

/* 08 ── Hero ───────────────────────────────────────────────────────────── */
.hero{ position:relative; overflow:hidden; }
.hero .sheet-body{ padding-top:clamp(38px,5.2vw,74px); padding-bottom:clamp(34px,4.4vw,64px); }
.hero-grid{
  display:grid; grid-template-columns:1.2fr .8fr;
  gap:clamp(30px,4vw,62px); align-items:center;
}
.hero h1{ font-size:clamp(2.15rem, 4.5vw, 3.75rem); margin-bottom:1.4rem; }
.hero h1 .gold{ color:var(--gold); }
.hero h1 .line{ display:block; overflow:hidden; }
.hero h1 .line > span{ display:block; }

.hero-tags{
  display:flex; flex-wrap:wrap; gap:8px; margin-top:2.2rem;
  padding-top:1.6rem; border-top:1px solid var(--rule-soft);
}
.hero-tags span{
  font-family:var(--f-mono); font-size:.64rem; letter-spacing:.14em;
  text-transform:uppercase; color:var(--text-2);
  border:1px solid var(--rule); padding:6px 11px;
}

/* technical elevation drawing */
.elevation{ width:100%; height:auto; }
.elevation .ln{ fill:none; stroke:var(--ink-2); stroke-width:1.6; stroke-linecap:square; }
.elevation .ln-thin{ fill:none; stroke:var(--ink-2); stroke-width:1; opacity:.55; }
.elevation .dim{ fill:none; stroke:var(--gold); stroke-width:1; }
.elevation .fillnavy{ fill:var(--ink-2); }
.elevation .lbl{
  font-family:var(--f-mono); font-size:9.5px; letter-spacing:.14em;
  fill:var(--gold-3); text-transform:uppercase;
}
.elevation .lbl-dim{ font-family:var(--f-mono); font-size:8.5px; letter-spacing:.1em; fill:var(--gold-3); }
.elevation .hatch{ stroke:var(--steel-2); stroke-width:1; }

/* 09 ── Nameplate ──────────────────────────────────────────────────────── */
.nameplate{
  background:var(--ink);
  background-image:
    linear-gradient(105deg, rgba(255,255,255,.09) 0%, rgba(255,255,255,0) 34%),
    repeating-linear-gradient(0deg, rgba(255,255,255,.035) 0 1px, transparent 1px 4px);
  border:1px solid rgba(190,139,51,.5);
  padding:26px 26px 22px;
  position:relative;
  box-shadow:0 22px 48px -30px rgba(12,26,51,.85), inset 0 1px 0 rgba(255,255,255,.13);
}
.nameplate::before,.nameplate::after{
  content:""; position:absolute; width:9px; height:9px; border-radius:50%;
  background:radial-gradient(circle at 34% 30%, #7d8697, #2a3348 65%, #171e2e);
  box-shadow:0 1px 1px rgba(0,0,0,.6);
}
.nameplate::before{ top:11px; left:11px; box-shadow:0 1px 1px rgba(0,0,0,.6), 315px 0 0 0 transparent; }
.nameplate::after{ bottom:11px; right:11px; }
.np-rivets i{
  position:absolute; width:9px; height:9px; border-radius:50%;
  background:radial-gradient(circle at 34% 30%, #7d8697, #2a3348 65%, #171e2e);
}
.np-rivets i:nth-child(1){ top:11px; right:11px; }
.np-rivets i:nth-child(2){ bottom:11px; left:11px; }

.np-title{
  font-family:var(--f-display); font-weight:700; text-transform:uppercase;
  color:#F1F3F0; font-size:1.02rem; letter-spacing:.05em; line-height:1.25;
}
.np-sub{
  font-family:var(--f-mono); font-size:.62rem; letter-spacing:.22em;
  color:var(--gold-2); margin-top:6px;
}
.np-line{ height:1px; background:rgba(190,139,51,.45); margin:16px 0; }
.np-rows{ display:grid; gap:9px; }
.np-row{
  display:grid; grid-template-columns:auto 1fr auto; gap:10px; align-items:baseline;
  font-family:var(--f-mono); font-size:.68rem; letter-spacing:.1em;
}
.np-row .k{ color:#8FA0BA; text-transform:uppercase; font-size:.62rem; letter-spacing:.16em; }
.np-row .d{ border-bottom:1px dotted rgba(255,255,255,.22); transform:translateY(-3px); }
.np-row .v{ color:#F1F3F0; font-weight:500; }
.np-foot{
  margin-top:18px; padding-top:12px; border-top:1px solid rgba(255,255,255,.13);
  font-family:var(--f-mono); font-size:.58rem; letter-spacing:.2em; color:#7C8DA6;
  display:flex; justify-content:space-between; gap:10px; flex-wrap:wrap;
}

/* 10 ── Marquee ────────────────────────────────────────────────────────── */
.marquee{
  position:relative; overflow:hidden; padding:20px 0;
  border-top:1px solid rgba(255,255,255,.1); border-bottom:1px solid rgba(255,255,255,.1);
}
.marquee-track{
  display:flex; width:max-content; gap:0;
  animation:slide 46s linear infinite;
}
.marquee:hover .marquee-track{ animation-play-state:paused; }
.marquee-track span{
  font-family:var(--f-display); font-weight:700; text-transform:uppercase;
  font-size:clamp(1.1rem,2.1vw,1.7rem); letter-spacing:.01em;
  color:rgba(255,255,255,.9); padding:0 26px; white-space:nowrap;
  display:flex; align-items:center; gap:26px;
}
.marquee-track span::after{
  content:""; width:7px; height:7px; background:var(--gold); flex:none;
  transform:rotate(45deg);
}
@keyframes slide{ from{ transform:translateX(0); } to{ transform:translateX(-50%); } }

/* 11 ── Scope cards ────────────────────────────────────────────────────── */
.scope{
  display:grid; grid-template-columns:repeat(3,1fr);
  border-top:1px solid var(--rule); border-left:1px solid var(--rule);
}
.scope-item{
  border-right:1px solid var(--rule); border-bottom:1px solid var(--rule);
  padding:clamp(24px,2.6vw,36px);
  position:relative; background:#fff;
  transition:background .3s var(--ease);
}
.scope-item:hover{ background:#FBFAF7; }
.scope-item::after{
  content:""; position:absolute; left:0; top:0; width:3px; height:0;
  background:var(--gold); transition:height .35s var(--ease);
}
.scope-item:hover::after{ height:100%; }
.scope-icon{ width:52px; height:52px; margin-bottom:20px; }
.scope-icon .s{ fill:none; stroke:var(--ink-2); stroke-width:1.5; stroke-linecap:round; stroke-linejoin:round; }
.scope-icon .g{ fill:none; stroke:var(--gold); stroke-width:1.5; stroke-linecap:round; }
.scope-item h3{ margin-bottom:.6rem; }
.scope-item p{ font-size:.95rem; color:var(--text-2); margin:0; }
.scope-item .idx{
  position:absolute; top:18px; right:20px;
  font-family:var(--f-mono); font-size:.64rem; letter-spacing:.14em; color:var(--steel-2);
}

/* detailed scope list on services page */
.scope-detail{ border-top:1px solid var(--rule); }
.scope-detail > article{
  display:grid; grid-template-columns:auto 1fr 1.15fr; gap:clamp(20px,3vw,48px);
  padding:clamp(30px,3.6vw,52px) 0; border-bottom:1px solid var(--rule);
}
.scope-detail .sd-no{
  font-family:var(--f-mono); font-size:.72rem; letter-spacing:.16em; color:var(--gold-3);
  padding-top:.45em;
}
.scope-detail h3{ margin-bottom:.9rem; }
.tick-list{ list-style:none; margin:0; padding:0; display:grid; gap:10px; }
.tick-list li{
  position:relative; padding-left:24px; font-size:.95rem; color:var(--text-2);
}
.tick-list li::before{
  content:""; position:absolute; left:0; top:.62em; width:11px; height:1.5px;
  background:var(--gold);
}
.tick-list--2{ grid-template-columns:repeat(2,minmax(0,1fr)); gap:10px 26px; }

/* 12 ── Sequence ───────────────────────────────────────────────────────── */
.seq{ display:grid; grid-template-columns:repeat(6,1fr); gap:0; margin-top:8px; }
.seq-step{
  padding:26px 20px 26px 0; position:relative;
  border-top:2px solid rgba(255,255,255,.16);
}
.seq-step:first-child{ padding-left:0; }
.seq-step .dot{
  position:absolute; top:-6px; left:0; width:10px; height:10px;
  background:var(--gold); transform:rotate(45deg);
}
.seq-step .no{
  font-family:var(--f-mono); font-size:.66rem; letter-spacing:.18em;
  color:var(--gold-2); display:block; margin-bottom:12px;
}
.seq-step h4{ color:#F4F5F2; margin-bottom:.55rem; font-size:.98rem; }
.seq-step p{ font-size:.87rem; color:#98A6BC; margin:0; }
.seq-step.is-on{ border-top-color:var(--gold); }

/* 13 ── Sector tabs ────────────────────────────────────────────────────── */
.tabs{ display:grid; grid-template-columns:280px 1fr; gap:clamp(24px,3vw,54px); align-items:start; }
.tab-list{ display:flex; flex-direction:column; border-top:1px solid var(--rule); }
.tab-btn{
  text-align:left; background:none; border:0; border-bottom:1px solid var(--rule);
  padding:16px 12px 16px 0; cursor:pointer;
  font-family:var(--f-mono); font-size:.73rem; letter-spacing:.14em; text-transform:uppercase;
  color:var(--text-2); display:flex; align-items:center; justify-content:space-between; gap:12px;
  transition:color .22s var(--ease), padding-left .22s var(--ease);
}
.tab-btn:hover{ color:var(--ink); padding-left:8px; }
.tab-btn[aria-selected="true"]{ color:var(--ink); padding-left:12px; }
.tab-btn[aria-selected="true"]::before{
  content:""; position:absolute; left:0; width:4px; height:22px; background:var(--gold);
}
.tab-btn{ position:relative; }
.tab-panel{ display:none; }
.tab-panel.is-on{ display:block; animation:fadeUp .45s var(--ease) both; }
.tab-panel h3{ margin-bottom:1rem; }

/* 14 ── Statement blocks ───────────────────────────────────────────────── */
.statements{ display:grid; grid-template-columns:repeat(2,1fr); gap:0;
  border-top:1px solid var(--rule); border-left:1px solid var(--rule); }
.statement{
  border-right:1px solid var(--rule); border-bottom:1px solid var(--rule);
  padding:clamp(26px,3vw,42px);
}
.statement .k{
  font-family:var(--f-mono); font-size:.66rem; letter-spacing:.2em;
  color:var(--gold-3); display:block; margin-bottom:16px;
}
.statement h3{ margin-bottom:.7rem; }
.statement p{ color:var(--text-2); font-size:.97rem; margin:0; }

.callout{
  border-left:3px solid var(--gold); padding:20px 0 20px 24px;
  background:linear-gradient(90deg, rgba(190,139,51,.07), rgba(190,139,51,0) 70%);
  margin:2rem 0;
}
.callout p{ margin:0; font-size:1.02rem; }

/* quote / positioning band */
.band-quote{
  font-family:var(--f-display); font-weight:700; text-transform:uppercase;
  font-size:clamp(1.5rem,3.4vw,2.7rem); line-height:1.06; letter-spacing:-.015em;
  max-width:22ch;
}

/* 15 ── Spec list / data ───────────────────────────────────────────────── */
.spec{ width:100%; border-collapse:collapse; font-size:.92rem; }
.spec th,.spec td{ text-align:left; padding:14px 16px; border-bottom:1px solid var(--rule); vertical-align:top; }
.spec th{
  font-family:var(--f-mono); font-size:.66rem; letter-spacing:.16em; text-transform:uppercase;
  color:var(--text-3); font-weight:500; width:32%;
}
.spec tr:last-child th,.spec tr:last-child td{ border-bottom:0; }
.spec td{ color:var(--text); }
.sheet--ink .spec th{ color:#8296B2; border-bottom-color:rgba(255,255,255,.12); }
.sheet--ink .spec td{ color:#E8EAEE; border-bottom-color:rgba(255,255,255,.12); }

.kv-grid{ display:grid; grid-template-columns:repeat(4,1fr); gap:1px; background:var(--rule); border:1px solid var(--rule); }
.kv{ background:#fff; padding:22px; }
.kv .k{ font-family:var(--f-mono); font-size:.62rem; letter-spacing:.18em; color:var(--text-3); display:block; margin-bottom:8px; }
.kv .v{ font-family:var(--f-display); font-weight:700; font-size:1.28rem; color:var(--ink); letter-spacing:.01em; }
.sheet--ink .kv-grid{ background:rgba(255,255,255,.14); border-color:rgba(255,255,255,.16); }
.sheet--ink .kv{ background:var(--ink); }
.sheet--ink .kv .v{ color:#F4F5F2; }
.sheet--ink .kv .k{ color:#8296B2; }

/* accordion */
.acc{ border-top:1px solid var(--rule); }
.acc-item{ border-bottom:1px solid var(--rule); }
.acc-btn{
  width:100%; background:none; border:0; cursor:pointer; text-align:left;
  padding:20px 40px 20px 0; position:relative;
  font-family:var(--f-display); font-weight:700; text-transform:uppercase;
  font-size:1rem; letter-spacing:-.005em; color:var(--ink);
}
.acc-btn::after{
  content:"+"; position:absolute; right:6px; top:50%; transform:translateY(-50%);
  font-family:var(--f-mono); color:var(--gold); font-size:1.15rem; transition:transform .3s var(--ease);
}
.acc-item.is-open .acc-btn::after{ content:"–"; }
.acc-panel{ max-height:0; overflow:hidden; transition:max-height .38s var(--ease); }
.acc-panel > div{ padding:0 0 22px; color:var(--text-2); max-width:78ch; }

/* 16 ── Forms ──────────────────────────────────────────────────────────── */
.form-grid{ display:grid; grid-template-columns:repeat(2,1fr); gap:18px 20px; }
.field{ display:flex; flex-direction:column; gap:7px; }
.field--full{ grid-column:1 / -1; }
.field label{
  font-family:var(--f-mono); font-size:.64rem; letter-spacing:.17em;
  text-transform:uppercase; color:var(--text-3);
}
.field label .req{ color:var(--gold); }
.field input,.field select,.field textarea{
  font-family:var(--f-body); font-size:.97rem; color:var(--text);
  background:#FBFBF9; border:1px solid var(--rule); padding:12px 14px;
  transition:border-color .2s var(--ease), background .2s var(--ease);
  width:100%;
}
.field textarea{ min-height:140px; resize:vertical; }
.field input:focus,.field select:focus,.field textarea:focus{
  outline:none; border-color:var(--gold); background:#fff;
  box-shadow:0 0 0 3px rgba(190,139,51,.14);
}
.hp{ position:absolute; left:-9999px; width:1px; height:1px; overflow:hidden; }
.form-note{ font-size:.85rem; color:var(--text-3); margin-top:14px; }

.contact-card{ border:1px solid var(--rule); padding:clamp(22px,2.4vw,32px); background:#FBFBF9; }
.contact-card + .contact-card{ margin-top:18px; }
.contact-card .k{ font-family:var(--f-mono); font-size:.63rem; letter-spacing:.18em; color:var(--text-3); display:block; margin-bottom:8px; }
.contact-card .v{ font-size:1.06rem; font-weight:500; color:var(--ink); text-decoration:none; word-break:break-word; }
a.v:hover{ color:var(--gold-3); }

/* 17 ── Footer ─────────────────────────────────────────────────────────── */
.footer{ background:var(--ink); color:#9FADC2; margin-top:0; }
.footer-top{
  max-width:var(--max); margin:0 auto;
  padding:clamp(44px,5vw,76px) clamp(20px,4vw,60px) 0;
  display:grid; grid-template-columns:1.5fr 1fr 1fr 1.2fr; gap:clamp(24px,3vw,48px);
}
.footer img.fmark{ width:230px; margin-bottom:22px; }
.footer h4{
  color:#fff; font-size:.72rem; font-family:var(--f-mono); font-weight:500;
  letter-spacing:.2em; margin-bottom:18px;
}
.footer ul{ list-style:none; margin:0; padding:0; display:grid; gap:11px; }
.footer a{ color:#B7C3D5; text-decoration:none; font-size:.93rem; }
.footer a:hover{ color:var(--gold-2); }
.footer p{ font-size:.93rem; }

/* engineering title block */
.title-block{
  max-width:var(--max); margin:clamp(40px,4vw,64px) auto 0;
  border-top:1px solid rgba(255,255,255,.18);
}
.tb-grid{
  display:grid; grid-template-columns:repeat(5,1fr);
  border-left:1px solid rgba(255,255,255,.12);
  margin:0 clamp(20px,4vw,60px);
}
.tb-cell{
  border-right:1px solid rgba(255,255,255,.12);
  border-bottom:1px solid rgba(255,255,255,.12);
  padding:14px 16px;
}
.tb-cell .k{ font-family:var(--f-mono); font-size:.56rem; letter-spacing:.2em; color:#6F82A0; display:block; margin-bottom:6px; }
.tb-cell .v{ font-family:var(--f-mono); font-size:.76rem; letter-spacing:.06em; color:#EDEFF3; }
.footer-base{
  max-width:var(--max); margin:0 auto; padding:20px clamp(20px,4vw,60px) 34px;
  display:flex; justify-content:space-between; gap:16px; flex-wrap:wrap;
  font-family:var(--f-mono); font-size:.63rem; letter-spacing:.14em; color:#6F82A0;
  text-transform:uppercase;
}

/* 18 ── Utilities & motion ─────────────────────────────────────────────── */
.reveal{ opacity:0; transform:translateY(22px); }
.reveal.is-in{ opacity:1; transform:none; transition:opacity .7s var(--ease), transform .7s var(--ease); }
.reveal-d1{ transition-delay:.08s; }
.reveal-d2{ transition-delay:.16s; }
.reveal-d3{ transition-delay:.24s; }
.reveal-d4{ transition-delay:.32s; }

@keyframes fadeUp{ from{ opacity:0; transform:translateY(14px); } to{ opacity:1; transform:none; } }
@keyframes riseIn{ from{ transform:translateY(104%); } to{ transform:translateY(0); } }
.hero h1 .line > span{ animation:riseIn .95s var(--ease) both; }
.hero h1 .line:nth-child(2) > span{ animation-delay:.09s; }
.hero h1 .line:nth-child(3) > span{ animation-delay:.18s; }
.hero .hero-intro{ animation:fadeUp .8s var(--ease) .34s both; }
.hero .btn-row{ animation:fadeUp .8s var(--ease) .44s both; }
.hero .hero-tags{ animation:fadeUp .8s var(--ease) .54s both; }
.hero .hero-figure{ animation:fadeUp .9s var(--ease) .2s both; }

.draw{ stroke-dasharray:var(--len,900); stroke-dashoffset:var(--len,900); animation:draw 1.8s var(--ease) .35s forwards; }
@keyframes draw{ to{ stroke-dashoffset:0; } }
.fade-late{ opacity:0; animation:fadeUp .8s var(--ease) 1.5s forwards; }

:focus-visible{ outline:2px solid var(--gold); outline-offset:3px; }

.skip{
  position:absolute; left:8px; top:-70px; background:var(--ink); color:#fff;
  padding:12px 18px; z-index:200; font-family:var(--f-mono); font-size:.72rem; letter-spacing:.15em;
  text-decoration:none; transition:top .2s var(--ease);
}
.skip:focus{ top:8px; }

.center{ text-align:center; }
.mt-0{ margin-top:0; } .mt-2{ margin-top:2rem; } .mt-3{ margin-top:3rem; }
.mb-2{ margin-bottom:2rem; }
.hide{ display:none; }

/* ── Responsive ────────────────────────────────────────────────────────── */
@media (max-width:1080px){
  .seq{ grid-template-columns:repeat(3,1fr); }
  .footer-top{ grid-template-columns:1fr 1fr; }
  .tb-grid{ grid-template-columns:repeat(3,1fr); }
  .kv-grid{ grid-template-columns:repeat(2,1fr); }
}
@media (max-width:900px){
  .hero-grid{ grid-template-columns:1fr; }
  .hero-figure{ max-width:520px; }
  .cols-2,.cols-3,.cols-4,.cols-7-5,.cols-5-7{ grid-template-columns:1fr; }
  .scope{ grid-template-columns:repeat(2,1fr); }
  .statements{ grid-template-columns:1fr; }
  .tabs{ grid-template-columns:1fr; }
  .scope-detail > article{ grid-template-columns:auto 1fr; }
  .scope-detail .sd-body{ grid-column:2; }
  .nav{
    position:fixed; left:0; right:0; top:0; z-index:65; padding:92px 26px 34px;
    background:#fff; flex-direction:column; align-items:flex-start; gap:4px;
    border-bottom:1px solid var(--rule); transform:translateY(-100%);
    visibility:hidden; opacity:0; pointer-events:none;
    transition:transform .38s var(--ease), opacity .28s var(--ease), visibility 0s linear .38s;
    box-shadow:0 24px 50px -30px rgba(12,26,51,.6);
    max-height:100vh; overflow:auto;
  }
  .nav.is-open{
    transform:translateY(0); visibility:visible; opacity:1; pointer-events:auto;
    transition:transform .38s var(--ease), opacity .28s var(--ease), visibility 0s linear 0s;
  }
  .nav a{ font-size:.95rem; letter-spacing:.1em; padding:13px 0; width:100%;
    border-bottom:1px solid var(--rule-soft); }
  .nav .btn{ margin-top:18px; width:100%; justify-content:center; }
  .nav-toggle{ display:block; z-index:70; }
  .brand{ position:relative; z-index:70; }
  .header-cta{ display:none; }
}
@media (max-width:620px){
  body{ font-size:16px; }
  .scope{ grid-template-columns:1fr; }
  .seq{ grid-template-columns:1fr; }
  .seq-step{ padding-right:0; }
  .form-grid{ grid-template-columns:1fr; }
  .footer-top{ grid-template-columns:1fr; }
  .tb-grid{ grid-template-columns:repeat(2,1fr); }
  .kv-grid{ grid-template-columns:1fr; }
  .tick-list--2{ grid-template-columns:1fr; }
  .topbar .wrap{ justify-content:center; text-align:center; }
  .desk{ padding-left:0; padding-right:0; }
  .sheet{ border-left:0; border-right:0; }
}

@media (prefers-reduced-motion:reduce){
  *,*::before,*::after{
    animation-duration:.001ms !important; animation-iteration-count:1 !important;
    transition-duration:.001ms !important; scroll-behavior:auto !important;
  }
  .reveal{ opacity:1; transform:none; }
  .draw{ stroke-dashoffset:0; }
  .fade-late{ opacity:1; }
}

@media print{
  .site-header,.topbar,.marquee,.nav-toggle{ display:none; }
  body{ background:#fff; }
  .sheet{ box-shadow:none; border:1px solid #999; page-break-inside:avoid; }
}

/* ── Additions: figure legend, nav CTA, misc ───────────────────────────── */
.hero-figure{ display:flex; flex-direction:column; gap:18px; }
.fig-legend{
  list-style:none; margin:0; padding:0 0 4px;
  display:flex; flex-wrap:wrap; gap:8px 22px;
  border-bottom:1px solid var(--rule-soft);
}
.fig-legend li{
  display:flex; align-items:center; gap:9px;
  font-family:var(--f-mono); font-size:.66rem; letter-spacing:.13em;
  text-transform:uppercase; color:var(--text-2);
}
.fig-legend li span{
  width:19px; height:19px; border:1px solid var(--gold); border-radius:50%;
  display:grid; place-items:center; color:var(--gold-3); font-size:.6rem; flex:none;
}

.nav-cta{ display:none; }
@media (max-width:900px){ .nav-cta{ display:inline-flex; } }

.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;
}

/* page-title band used on inner pages */
.page-head{ position:relative; }
.page-head .sheet-body{ padding-top:clamp(44px,5vw,80px); padding-bottom:clamp(34px,4vw,58px); }
.page-head h1{ font-size:clamp(2.2rem,5.4vw,4.2rem); margin-bottom:1.1rem; }
.page-head .lede{ max-width:56ch; }
.crumb{
  font-family:var(--f-mono); font-size:.65rem; letter-spacing:.18em;
  text-transform:uppercase; color:var(--text-3); margin-bottom:1.4rem;
}
.crumb a{ text-decoration:none; color:var(--text-3); }
.crumb a:hover{ color:var(--gold-3); }
.crumb .sep{ color:var(--gold); margin:0 .6em; }

/* two-column prose */
.prose h3{ margin:2.4rem 0 .8rem; }
.prose h3:first-child{ margin-top:0; }
.prose ul{ padding-left:0; list-style:none; }

/* anchor offset for sticky header */
[id]{ scroll-margin-top:110px; }

/* ── Fixes ─────────────────────────────────────────────────────────────── */
.kv-grid--2{ grid-template-columns:repeat(2,1fr); }
.kv-grid--2 .kv .v{ font-size:1.05rem; }
@media (max-width:520px){ .kv-grid--2{ grid-template-columns:1fr; } }


/* ══ MOTION — second pass ══════════════════════════════════════════════════
   Everything here is switched off wholesale by the prefers-reduced-motion
   block further up, so nothing below needs its own guard.                   */

/* ── scroll progress: a gold rule filling along the header edge ─────────── */
.site-header::after{
  content:""; position:absolute; left:0; bottom:-1px; height:2px;
  width:var(--progress,0%); background:var(--gold);
  transition:width .12s linear; pointer-events:none;
}
[dir="rtl"] .site-header::after{ left:auto; right:0; }

/* ── gold accent rules draw themselves in ───────────────────────────────── */
.rule-gold{ width:0; transition:width .95s var(--ease) .12s; }
.rule-gold.is-in{ width:56px; }

/* ── the sheet-head rule extends like a leader line ─────────────────────── */
.sheet-head .bar{ transform:scaleX(0); transform-origin:left center;
  transition:transform 1.1s var(--ease) .1s; }
.sheet-head .bar.is-in{ transform:scaleX(1); }
[dir="rtl"] .sheet-head .bar{ transform-origin:right center; }

/* ── corner registration ticks fade up as each sheet arrives ────────────── */
.sheet::before,.sheet::after{ opacity:0; transition:opacity .7s var(--ease) .25s; }
.sheet.ticks-in::before,.sheet.ticks-in::after{ opacity:1; }
.sheet--ink.ticks-in::before,.sheet--ink.ticks-in::after{ opacity:.85; }

/* ── scope icons wipe in like a plotter pen, then lift on hover ─────────── */
.scope-icon{
  -webkit-clip-path:inset(0 100% 0 0); clip-path:inset(0 100% 0 0);
  transition:-webkit-clip-path .85s var(--ease) .15s, clip-path .85s var(--ease) .15s,
             transform .3s var(--ease);
}
.scope-item.is-in .scope-icon{ -webkit-clip-path:inset(0 0 0 0); clip-path:inset(0 0 0 0); }
.scope-item:hover .scope-icon{ transform:translateY(-4px); }
[dir="rtl"] .scope-icon{ -webkit-clip-path:inset(0 0 0 100%); clip-path:inset(0 0 0 100%); }
[dir="rtl"] .scope-item.is-in .scope-icon{ -webkit-clip-path:inset(0 0 0 0); clip-path:inset(0 0 0 0); }

/* ── brushed metal catches the light across the nameplate ───────────────── */
.nameplate{
  background-image:
    linear-gradient(105deg, rgba(255,255,255,.09) 0%, rgba(255,255,255,0) 34%),
    repeating-linear-gradient(0deg, rgba(255,255,255,.035) 0 1px, transparent 1px 4px),
    linear-gradient(100deg, rgba(255,255,255,0) 42%, rgba(255,255,255,.11) 50%, rgba(255,255,255,0) 58%);
  background-size:auto, auto, 260% 100%;
  background-position:0 0, 0 0, 170% 0;
  animation:sheen 9s ease-in-out infinite;
}
@keyframes sheen{
  0%,8%   { background-position:0 0, 0 0, 170% 0; }
  62%,100%{ background-position:0 0, 0 0, -70% 0; }
}

/* ── marquee runs off into the edges instead of stopping dead ───────────── */
.marquee{
  -webkit-mask-image:linear-gradient(90deg,transparent 0,#000 7%,#000 93%,transparent 100%);
          mask-image:linear-gradient(90deg,transparent 0,#000 7%,#000 93%,transparent 100%);
}

/* ── list items arrive in sequence, not all at once ─────────────────────── */
.reveal .tick-list li{ opacity:0; }
.reveal.is-in .tick-list li{ animation:fadeUp .55s var(--ease) both; }
.reveal.is-in .tick-list li:nth-child(1){ animation-delay:.10s }
.reveal.is-in .tick-list li:nth-child(2){ animation-delay:.16s }
.reveal.is-in .tick-list li:nth-child(3){ animation-delay:.22s }
.reveal.is-in .tick-list li:nth-child(4){ animation-delay:.28s }
.reveal.is-in .tick-list li:nth-child(5){ animation-delay:.34s }
.reveal.is-in .tick-list li:nth-child(6){ animation-delay:.40s }
.reveal.is-in .tick-list li:nth-child(7){ animation-delay:.46s }
.reveal.is-in .tick-list li:nth-child(8){ animation-delay:.52s }
.reveal.is-in .tick-list li:nth-child(n+9){ animation-delay:.58s }

/* ── statement blocks pick up a gold edge on hover ──────────────────────── */
.statement{ position:relative; transition:background .35s var(--ease); }
.statement::before{
  content:""; position:absolute; left:0; top:0; width:3px; height:0;
  background:var(--gold); transition:height .4s var(--ease);
}
[dir="rtl"] .statement::before{ left:auto; right:0; }
.statement:hover{ background:#FBFAF7; }
.statement:hover::before{ height:100%; }
.sheet--ink .statement:hover{ background:rgba(255,255,255,.03); }

/* ── hero drawing drifts a little slower than the page ──────────────────── */
.hero-figure{ will-change:transform; }

/* ── table rows and contact cards settle in ─────────────────────────────── */
.reveal.is-in .spec tr{ animation:fadeUp .5s var(--ease) both; }
.reveal.is-in .spec tr:nth-child(2){ animation-delay:.06s }
.reveal.is-in .spec tr:nth-child(3){ animation-delay:.12s }
.reveal.is-in .spec tr:nth-child(4){ animation-delay:.18s }
.reveal.is-in .spec tr:nth-child(5){ animation-delay:.24s }
.reveal.is-in .spec tr:nth-child(6){ animation-delay:.30s }
.reveal.is-in .spec tr:nth-child(n+7){ animation-delay:.36s }
.reveal.is-in .kv{ animation:fadeUp .55s var(--ease) both; }
.reveal.is-in .kv:nth-child(2){ animation-delay:.08s }
.reveal.is-in .kv:nth-child(3){ animation-delay:.16s }
.reveal.is-in .kv:nth-child(4){ animation-delay:.24s }
.contact-card{ transition:border-color .3s var(--ease), transform .3s var(--ease); }
.contact-card:hover{ border-color:var(--gold); transform:translateX(4px); }
[dir="rtl"] .contact-card:hover{ transform:translateX(-4px); }

/* ── header settles on first paint ──────────────────────────────────────── */
@keyframes dropIn{ from{ opacity:0; transform:translateY(-12px); } to{ opacity:1; transform:none; } }
.topbar{ animation:dropIn .6s var(--ease) both; }
.site-header{ animation:dropIn .7s var(--ease) .06s both; }

/* reduced motion: hold the end state, skip the movement */
@media (prefers-reduced-motion:reduce){
  .rule-gold{ width:56px; }
  .sheet-head .bar{ transform:none; }
  .sheet::before,.sheet::after{ opacity:1; }
  .scope-icon{ -webkit-clip-path:none; clip-path:none; }
  .nameplate{ animation:none; }
  .reveal .tick-list li{ opacity:1; }
}


/* ── language switcher (text only) ─────────────────────────────────────── */
.langset{ display:inline-flex; align-items:center; gap:7px; }
.langset .on{ color:var(--gold-2); }
.langset .div{ color:rgba(255,255,255,.28); }
.langset a{ color:#B9C4D6; text-decoration:none; }
.langset a:hover{ color:#fff; }

.nav .lang{
  display:none; font-family:var(--f-mono); font-size:.72rem; letter-spacing:.13em;
  text-transform:uppercase; color:var(--text-2); text-decoration:none;
}
.nav .lang:hover{ color:var(--ink); }
@media (max-width:900px){
  .nav .lang{ display:inline-flex; font-size:.95rem; letter-spacing:.1em; }
}

/* ── top bar: one line, always ─────────────────────────────────────────── */
.topbar .wrap{ flex-wrap:nowrap; gap:20px; }
.topbar .tagline{ overflow:hidden; text-overflow:ellipsis; white-space:nowrap; min-width:0; }
.topbar .meta{
  display:inline-flex; align-items:center; gap:9px;
  white-space:nowrap; flex:none;
}
@media (max-width:1000px){
  .topbar .tagline{ display:none; }
  .topbar .wrap{ justify-content:center; }
}
@media (max-width:560px){
  .topbar .mail{ display:none; }
  .topbar .meta .sep:first-of-type{ display:none; }
}
@media (max-width:380px){
  .topbar .wrap{ padding-left:10px; padding-right:10px; }
  .topbar{ font-size:.63rem; }
}
