/* ==========================================================================
   Element NRG Inc. — elementnrg.com
   Rev 2 palette: accent migrated from Signal Blue to the Element NRG logo cyan.
   --cyan      #54C5D0  logo cyan; accent on DARK surfaces only
   --cyan-deep #0F7C8A  darkened sibling; links and accent on LIGHT surfaces
   Signature device: the spine — a vertical rule with square nodes.
   ========================================================================== */

:root {
  --navy:        #001224;
  --steel:       #40546A;
  --pale:        #F3F7FB;
  --white:       #FFFFFF;
  --cyan:        #54C5D0;
  --cyan-deep:   #0F7C8A;

  --rule:        rgba(64, 84, 106, 0.22);
  --rule-dark:   rgba(243, 247, 251, 0.20);

  --frame:       1100px;
  --measure:     660px;
  --spine-gap:   2.25rem;

  --display: "Space Grotesk", "Arial Narrow", Arial, sans-serif;
  --body:    "IBM Plex Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  --mono:    "IBM Plex Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--white);
  color: var(--steel);
  font-family: var(--body);
  font-size: 1.0625rem;
  line-height: 1.72;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
}

/* --------------------------------------------------------------- skip link */
.skip {
  position: absolute; left: -9999px; top: 0;
  background: var(--navy); color: var(--white);
  padding: 0.75rem 1.25rem; z-index: 100;
  font-family: var(--mono); font-size: 0.8125rem;
}
.skip:focus { left: 0; }

/* ------------------------------------------------------------------- frame */
.frame {
  max-width: var(--frame);
  margin-inline: auto;
  padding-inline: clamp(1.25rem, 5vw, 3.5rem);
}

/* -------------------------------------------------------------------- head */
.masthead { border-bottom: 1px solid var(--rule); background: var(--white); }
.masthead--dark { background: var(--navy); border-bottom-color: var(--rule-dark); }

.masthead__inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 2rem; padding-block: 1.5rem; flex-wrap: wrap;
}

/* Brand: mark + typographic wordmark */
.brand { display: inline-flex; align-items: center; gap: 0.7rem; text-decoration: none; }
.brand__mark { display: block; width: 36px; height: auto; }
.brand__mark--dark { display: none; }
.masthead--dark .brand__mark--light { display: none; }
.masthead--dark .brand__mark--dark { display: block; }

.wordmark {
  font-family: var(--display); font-weight: 700; font-size: 1.0625rem;
  letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--navy); text-decoration: none; white-space: nowrap;
}
.wordmark em { font-style: normal; font-weight: 400; color: var(--steel); }
.masthead--dark .wordmark { color: var(--white); }
.masthead--dark .wordmark em { color: rgba(243, 247, 251, 0.62); }

.nav { display: flex; gap: clamp(1rem, 3vw, 2.25rem); flex-wrap: wrap; font-size: 0.9375rem; }
.nav a { color: var(--steel); text-decoration: none; padding-block: 0.25rem; border-bottom: 1px solid transparent; }
.nav a:hover { color: var(--cyan-deep); }
.nav a[aria-current="page"] { color: var(--navy); border-bottom-color: var(--cyan-deep); }
.masthead--dark .nav a { color: rgba(243, 247, 251, 0.72); }
.masthead--dark .nav a:hover { color: var(--white); }
.masthead--dark .nav a[aria-current="page"] { color: var(--white); border-bottom-color: var(--cyan); }

/* -------------------------------------------------------------------- hero */
.hero {
  background: var(--navy); color: rgba(243, 247, 251, 0.78);
  padding-block: clamp(4rem, 12vh, 8rem) clamp(4.5rem, 14vh, 9rem);
  position: relative; overflow: hidden;
}
.hero__eyebrow {
  font-family: var(--mono); font-size: 0.75rem; letter-spacing: 0.22em;
  text-transform: uppercase; color: var(--cyan); margin: 0 0 1.75rem;
}
.hero__title {
  font-family: var(--display); font-weight: 500;
  font-size: clamp(2.4rem, 6.2vw, 4.25rem); line-height: 1.04;
  letter-spacing: -0.025em; color: var(--white); margin: 0 0 1.75rem; max-width: 15ch;
}
.hero__lede { font-size: clamp(1.0625rem, 1.6vw, 1.25rem); line-height: 1.62; max-width: 52ch; margin: 0; }
.hero__split { display: flex; gap: clamp(1.75rem, 5vw, 3.5rem); align-items: flex-start; }
.hero__split > .hero__title { flex: 1.3; margin-bottom: 0; }
.hero__aside { flex: 1; border-left: 1px solid var(--rule-dark); padding-left: clamp(1.25rem, 3vw, 2rem); padding-top: 0.4rem; }
@media (max-width: 760px) {
  .hero__split { display: block; }
  .hero__split > .hero__title { margin-bottom: 1.75rem; }
  .hero__aside { border-left: 0; padding-left: 0; padding-top: 0; }
}

/* Page header for inner pages */
.pagehead { background: var(--pale); border-bottom: 1px solid var(--rule); padding-block: clamp(3rem, 8vh, 5rem); }
.pagehead__eyebrow {
  font-family: var(--mono); font-size: 0.75rem; letter-spacing: 0.22em;
  text-transform: uppercase; color: var(--cyan-deep); margin: 0 0 1.25rem;
}
.pagehead__title {
  font-family: var(--display); font-weight: 500; font-size: clamp(2rem, 4.6vw, 3.1rem);
  line-height: 1.08; letter-spacing: -0.022em; color: var(--navy); margin: 0; max-width: 18ch;
}

/* ------------------------------------------------------------ spine + body */
.spine { position: relative; padding-block: clamp(3rem, 8vh, 5.5rem); }
.spine__track { position: relative; padding-left: var(--spine-gap); max-width: calc(var(--measure) + var(--spine-gap)); }
.spine__track::before { content: ""; position: absolute; left: 3px; top: 0.65rem; bottom: 0.65rem; width: 1px; background: var(--rule); }

.node { position: relative; }
.node + .node { margin-top: clamp(2.75rem, 6vh, 4.25rem); }
.node::before { content: ""; position: absolute; left: calc(-1 * var(--spine-gap)); top: 0.62rem; width: 7px; height: 7px; background: var(--navy); }
.node--attached::before { background: var(--white); border: 1px solid var(--steel); width: 7px; height: 7px; }
.node--attached { border-left: 1px solid var(--rule); margin-left: -0.0625rem; padding-left: 1.5rem; }

.node__label { font-family: var(--mono); font-size: 0.6875rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--steel); margin: 0 0 0.55rem; }
.node__title { font-family: var(--display); font-weight: 500; font-size: clamp(1.3rem, 2.3vw, 1.65rem); line-height: 1.24; letter-spacing: -0.012em; color: var(--navy); margin: 0 0 1rem; }
.node__title--sub { font-size: 1.0625rem; letter-spacing: 0.02em; }
.node p { margin: 0 0 1.15rem; }
.node p:last-child { margin-bottom: 0; }

.lead { font-size: 1.1875rem; line-height: 1.62; color: var(--navy); }
strong { color: var(--navy); font-weight: 600; }
.skx { font-family: var(--display); font-weight: 700; letter-spacing: 0.04em; color: var(--navy); }

/* --------------------------------------------------------------- alternate */
.band-pale { background: var(--pale); border-block: 1px solid var(--rule); }

/* ------------------------------------------------------- brand band (home) */
.brandband {
  background: var(--navy);
  padding-block: clamp(4rem, 11vh, 7rem);
  text-align: center;
}
.brandband__lockup {
  display: block; margin-inline: auto;
  width: min(420px, 62vw); height: auto;
}

/* ------------------------------------------------------------------ inline */
a { color: var(--cyan-deep); }
a:hover { color: var(--navy); }

.onward {
  display: inline-block; margin-top: 0.5rem;
  font-family: var(--display); font-weight: 500; font-size: 1rem;
  letter-spacing: 0.005em; color: var(--cyan-deep); text-decoration: none;
  border-bottom: 1px solid rgba(15, 124, 138, 0.35); padding-bottom: 2px;
}
.onward:hover { border-bottom-color: var(--cyan-deep); color: var(--cyan-deep); }
.onward::after { content: " \2192"; }
.hero .onward { color: var(--white); border-bottom-color: rgba(255,255,255,0.4); }
.hero .onward:hover { border-bottom-color: var(--white); }

/* ------------------------------------------------------------------ detail */
.detail { font-family: var(--mono); font-size: 0.8125rem; line-height: 1.85; color: var(--steel); letter-spacing: 0.005em; }
.detail a { text-decoration: none; }
.detail a:hover { text-decoration: underline; }
.entity { font-family: var(--mono); font-size: 0.75rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--steel); border-top: 1px solid var(--rule); padding-top: 1.25rem; margin-top: 2.5rem; }

/* ------------------------------------------------------------------ footer */
.foot { background: var(--navy); color: rgba(243, 247, 251, 0.55); padding-block: 3rem; font-size: 0.875rem; }
.foot__inner { display: flex; justify-content: space-between; gap: 1.5rem 2.5rem; flex-wrap: wrap; align-items: baseline; }
.foot a { color: rgba(243, 247, 251, 0.72); text-decoration: none; }
.foot a:hover { color: var(--white); }
.foot__legal { font-family: var(--mono); font-size: 0.75rem; letter-spacing: 0.04em; }
.foot__motto {
  font-family: var(--mono); font-size: 0.6875rem; letter-spacing: 0.18em;
  text-transform: uppercase; color: rgba(243, 247, 251, 0.30);
  width: 100%; margin: 1.75rem 0 0; padding-top: 1.5rem;
  border-top: 1px solid rgba(243, 247, 251, 0.10);
  text-align: center;
}

/* ------------------------------------------------------------------- a11y  */
:focus-visible { outline: 2px solid var(--cyan-deep); outline-offset: 3px; }
.masthead--dark :focus-visible, .hero :focus-visible, .foot :focus-visible, .brandband :focus-visible { outline-color: var(--cyan); }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

/* ------------------------------------------------------------------ narrow */
@media (max-width: 760px) {
  .masthead__inner { gap: 0.9rem; }
  .nav {
    width: 100%;
    font-size: 0.8125rem;
    gap: 0.55rem 0.95rem;
    justify-content: flex-start;
  }
  .nav a { padding-block: 0.15rem; }
}

@media (max-width: 620px) {
  :root { --spine-gap: 1.5rem; }
  .hero__title { max-width: none; }
  .brand__mark { width: 32px; }
  .brandband { padding-block: clamp(3rem, 8vh, 4.5rem); }
  .brandband__lockup { width: min(300px, 72vw); }
  .foot__inner { gap: 0.9rem; }
}

/* ---------------------------------------------------------- projects page */

.gateways {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--rule);
  border-block: 1px solid var(--rule);
}

.gateway {
  background: var(--navy);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: clamp(3rem, 7vh, 4.5rem) clamp(1.5rem, 4vw, 3rem);
  text-decoration: none;
  transition: background 160ms ease;
}
.gateway:hover { background: #041B31; }

.gateway__markwrap {
  min-height: 92px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 2rem;
}
/* Brand marks are sized by WIDTH with height:auto. Sizing by height with
   width:auto is unreliable in WebKit, which falls back to the SVG's intrinsic
   width instead of deriving it from the aspect ratio. */
.gateway__mark { display: block; height: auto; }
.gateway__mark--skx  { width: 128px; }
.gateway__mark--enrg { width: 112px; }
.gateway__mark--showbot { width: 116px; }

.gateway__label {
  font-family: var(--mono);
  font-size: 0.6875rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--cyan);
  margin: 0 0 0.75rem;
}
.gateway--skx .gateway__label { color: rgba(243, 247, 251, 0.55); }

.gateway__name {
  font-family: var(--display);
  font-weight: 500;
  font-size: clamp(1.35rem, 2.4vw, 1.7rem);
  letter-spacing: -0.012em;
  color: var(--white);
  margin: 0 0 0.9rem;
}
.gateway__desc {
  font-size: 0.9375rem;
  line-height: 1.66;
  color: rgba(243, 247, 251, 0.62);
  max-width: 34ch;
  margin: 0 0 1.9rem;
}
.gateway__go {
  font-family: var(--mono);
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--white);
  border-bottom: 1px solid rgba(243, 247, 251, 0.28);
  padding-bottom: 3px;
}
.gateway:hover .gateway__go { border-bottom-color: var(--cyan); }
.gateway__go::after { content: " \2197"; }

@media (max-width: 760px) {
  .gateways { grid-template-columns: 1fr; }
}

/* pale gateway variant */
.gateways--pale { background: var(--rule); }
.gateways--pale .gateway { background: var(--pale); }
.gateways--pale .gateway:hover { background: #E9F0F7; }
.gateways--pale .gateway__label { color: var(--cyan-deep); }
.gateways--pale .gateway--skx .gateway__label { color: var(--steel); }
.gateways--pale .gateway__name { color: var(--navy); }
.gateways--pale .gateway__desc { color: var(--steel); }
.gateways--pale .gateway__go { color: var(--navy); border-bottom-color: rgba(64,84,106,0.30); }
.gateways--pale .gateway:hover .gateway__go { border-bottom-color: var(--cyan-deep); }

/* -------------------------------------------------------------- skx brand */
.node__title--brand { margin-bottom: 1.25rem; }
.skx-wordmark { display: block; width: 118px; height: auto; }
@media (max-width: 620px) { .skx-wordmark { width: 97px; } }


.skx-intro { margin: 0 0 0.9rem; }
.skx-wordmark--sm { width: 90px; }
@media (max-width: 620px) { .skx-wordmark--sm { width: 76px; } }
