/* === Essentials / Imports === */
@import url(fontawesome-all.min.css);

@font-face {
  font-family: "IBM Plex Sans";
  src: url("../webfonts/ibm-plex-sans-latin.woff2") format("woff2");
  font-style: normal;
  font-weight: 400 500;
  font-display: swap;
}

@font-face {
  font-family: "Manrope";
  src: url("../webfonts/manrope-latin.woff2") format("woff2");
  font-style: normal;
  font-weight: 600 700;
  font-display: swap;
}

/* === Normalize / Reset (minimal) === */
html, body, div, span, applet, object, iframe,
h1, h2, h3, h4, h5, h6, p, blockquote, pre, a,
abbr, acronym, address, big, cite, code, del, dfn, em, img, ins,
kbd, q, s, samp, small, strike, strong, sub, sup, tt, var, b, u, i,
center, dl, dt, dd, ol, ul, li, fieldset, form, label, legend, table,
caption, tbody, tfoot, thead, tr, th, td, article, aside, details,
embed, figure, figcaption, footer, header, hgroup, menu, nav, output,
ruby, section, summary, time, mark, audio, video {
  margin: 0; padding: 0; border: 0; font: inherit; font-size: 100%;
  vertical-align: baseline;
}
article, aside, details, figcaption, figure, footer, header, hgroup,
menu, nav, section { display: block; }
body { line-height: 1; }
ol, ul { list-style: none; }
blockquote, q { quotes: none; }
blockquote::before, blockquote::after, q::before, q::after { content: ''; }
table { border-collapse: collapse; border-spacing: 0; }
*,
*::before,
*::after { box-sizing: border-box; }
body { -webkit-text-size-adjust: none; background: #1f1f1f; }

/* === Type === */
body, input, select, textarea {
  color: #ccc;
  font-family: 'Open Sans', sans-serif;
  font-size: 16.5pt;
  font-weight: 400;
  line-height: 1.75;
}
@media screen and (max-width: 1680px) { body, input, select, textarea { font-size: 13pt; } }
@media screen and (max-width: 1280px) { body, input, select, textarea { font-size: 12pt; } }
@media screen and (max-width: 360px)  { body, input, select, textarea { font-size: 11pt; } }

a {
  transition: color .2s ease;
  border-bottom: none;
  color: inherit;
  text-decoration: none;
}
a:hover { color: #999; }

strong, b { color: #eee; font-weight: 700; }
em, i { font-style: italic; }
p { margin: 0 0 2em 0; }

h1, h2, h3, h4, h5, h6 {
  color: #eee;
  line-height: 1.5;
  margin: 0 0 .5em 0;
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
}
h1 { font-size: 2.75em; }
h2 { font-size: 1.75em; }
h3 { font-size: 1.1em; }
h4 { font-size: 1em; }
h5 { font-size: .8em; }
h6 { font-size: .6em; }

@media screen and (max-width: 736px) {
  h1 { font-size: 2em; }
  h2 { font-size: 1.25em; }
  h3 { font-size: 1em; }
  h4 { font-size: .8em; }
  h5, h6 { font-size: .6em; }
}

sub { font-size: .8em; position: relative; top: .5em; }
sup { font-size: .8em; position: relative; top: -.5em; }
hr { border: 0; border-bottom: 1px solid rgba(255,255,255,.15); margin: 2em 0; }
hr.major { margin: 3em 0; }

code {
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.15);
  border-radius: .25em;
  font-family: "Courier New", monospace;
  font-size: .9em;
  margin: 0 .25em;
  padding: .25em .65em;
}
pre {
  -webkit-overflow-scrolling: touch;
  font-family: "Courier New", monospace;
  font-size: .9em;
  margin: 0 0 2em 0;
}
pre code {
  display: block;
  line-height: 1.75em;
  padding: 1em 1.5em;
  overflow-x: auto;
}

/* === Links inside headings (inherit) === */
h1 a, h2 a, h3 a, h4 a, h5 a, h6 a { color: inherit; text-decoration: none; }

/* === Forms === */
form { margin: 0 0 2em 0; }
form > :last-child { margin-bottom: 0; }

form > .fields {
  display: flex; flex-wrap: wrap;
  width: calc(100% + 3em);
  margin: -1.5em 0 2em -1.5em;
}
form > .fields > .field {
  flex: 0 0 auto;
  padding: 1.5em 0 0 1.5em;
  width: calc(100% - 1.5em);
}
form > .fields > .field.half { width: calc(50% - .75em); }

@media screen and (max-width: 480px) {
  form > .fields { width: calc(100% + 3em); margin: -1.5em 0 2em -1.5em; }
  form > .fields > .field { width: calc(100% - 1.5em); }
  form > .fields > .field.half { width: calc(100% - 1.5em); }
}

label {
  color: #fff; font-weight: 700; line-height: 1.5;
  margin: 0 0 .7em 0; display: block; font-size: 1.1em;
}

input[type="text"],
input[type="password"],
input[type="email"],
textarea {
  appearance: none;
  background: rgba(255,255,255,.05);
  border-radius: .25em;
  border: 1px solid rgba(255,255,255,.25);
  color: inherit;
  display: block;
  outline: 0;
  padding: 0 1em;
  text-decoration: none;
  width: 100%;
}
input[type="text"],
input[type="password"],
input[type="email"] { height: 2.75em; }
textarea { padding: .75em 1em; }

input[type="text"]:invalid,
input[type="password"]:invalid,
input[type="email"]:invalid,
textarea:invalid { box-shadow: none; }

input[type="text"]:focus,
input[type="password"]:focus,
input[type="email"]:focus,
textarea:focus {
  border-color: #fff;
  box-shadow: 0 0 0 1px #fff;
}

::placeholder { color: rgba(255,255,255,.35); opacity: 1; }

/* Field validation helpers */
form .field { position: relative; }
form .field .error-text {
  position: absolute; top: 100%; margin-top: .35rem;
  font-size: .9rem; line-height: 1.3; color: #ff6b6b;
  pointer-events: none; display: none;
  padding-left: .75rem; width: calc(100% - 1.5rem); box-sizing: border-box;
}
form .field .error-text:not(:empty) { display: block; }
form .field.is-invalid input,
form .field.is-invalid textarea {
  border-color: #ff6b6b !important; box-shadow: 0 0 0 1px #ff6b6b;
}
form .field.is-valid input,
form .field.is-valid textarea {
  border-color: #17BEBB !important; box-shadow: 0 0 5px rgba(23,190,187,.5);
}

/* === Buttons === */
input[type="submit"],
input[type="reset"],
input[type="button"],
button,
.button {
  appearance: none;
  transition: border-color .2s ease;
  background-color: #17BEBB;
  border: 1px solid rgba(255,255,255,.15) !important;
  border-radius: 3em;
  color: #fff !important;
  cursor: pointer;
  display: inline-block;
  font-size: .6em;
  font-weight: 700;
  height: calc(4.75em + 2px);
  letter-spacing: .25em;
  line-height: 4.75em;
  outline: 0;
  padding: 0 3.75em;
  position: relative;
  text-align: center;
  text-decoration: none;
  text-transform: uppercase;
  white-space: nowrap;
}
input[type="submit"]::after,
input[type="reset"]::after,
input[type="button"]::after,
button::after,
.button::after {
  transform: scale(.25);
  pointer-events: none;
  transition: opacity .2s ease, transform .2s ease;
  background: #fff;
  border-radius: 3em;
  content: '';
  height: 100%; left: 0; top: 0; width: 100%;
  opacity: 0; position: absolute;
}
input[type="submit"].fit,
input[type="reset"].fit,
input[type="button"].fit,
button.fit, .button.fit { width: 100%; }

input[type="submit"].primary,
input[type="reset"].primary,
input[type="button"].primary,
button.primary, .button.primary {
  background-color: #444; color: #fff !important;
}
input[type="submit"].primary::after,
input[type="reset"].primary::after,
input[type="button"].primary::after,
button.primary::after, .button.primary::after { display: none; }

input[type="submit"]:hover,
input[type="reset"]:hover,
input[type="button"]:hover,
button:hover, .button:hover {
  background-color: #15a5a3 !important;
  color: #fff !important;
  box-shadow: 0 0 5px #17BEBB;
}
input[type="submit"]:hover::after,
input[type="reset"]:hover::after,
input[type="button"]:hover::after,
button:hover::after, .button:hover::after {
  opacity: .05; transform: scale(1);
}

/* === Icon base / Font Awesome hooks === */
.icon { text-decoration: none; border-bottom: 0; position: relative; }
.icon::before {
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
  display: inline-block; font-style: normal; font-variant: normal;
  text-rendering: auto; line-height: 1; text-transform: none !important;
  font-family: 'Font Awesome 5 Free'; font-weight: 400; /* solid toggles below */
}
.icon.solid::before { font-weight: 900; }
.icon > .label { display: none; }
.icon::before { line-height: inherit; }

.icon.major {
  width: 2.5em; height: 2.5em; display: block;
  background: #fff; border-radius: 100%;
  color: #312450; text-align: center; line-height: 2.5em;
  margin: 0 0 1.3em 0;
}
.icon.major::before { font-size: 1.25em; }

/* Ensure FA Brands use the correct font in buttons */
.icon.brands::before {
  font-family: 'Font Awesome 5 Brands';
  font-weight: 400; /* brands */
}

/* Make the pseudo-element behave nicely inside flex buttons */
.member-card .actions-row .button.icon::before {
  display: inline-block;
  line-height: 1;
  margin: 0; /* the button already has gap */
}

/* === Success Stories (case study grid) === */
.wrapper.success-stories { background: #333; color: #eee; transition: background .3s ease; }
.section-divider {
  height: 1px;
  background: linear-gradient(90deg, rgba(23,190,187,.35), rgba(255,255,255,.08), rgba(23,190,187,.35));
  margin: 0 0 1.6rem;
}
.case-layout {
  display: grid;
  gap: 1.75rem;
  margin-top: 2rem;
}
.case-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.75rem;
}
.case-panel {
  display: none;
}
.case-card {
  --case-accent: #17BEBB;
  position: relative;
  background: linear-gradient(180deg, #262626, #1f1f1f);
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,.1);
  box-shadow: 0 2px 10px rgba(0,0,0,.22);
  padding: 1.4rem;
  overflow: hidden;
  transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}
.case-card::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 3px;
  background: color-mix(in srgb, var(--case-accent) 45%, #6a6a6a 55%);
  opacity: .75;
}
.case-card::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(180deg, color-mix(in srgb, var(--case-accent) 12%, transparent), transparent 45%),
    radial-gradient(120% 80% at 50% 0%, color-mix(in srgb, var(--case-accent) 10%, transparent), transparent 60%);
  opacity: .45;
}
.case-card:hover,
.case-card:focus-within {
  transform: translateY(-3px);
  border-color: color-mix(in srgb, var(--case-accent) 30%, rgba(255,255,255,.22));
  box-shadow: 0 10px 22px rgba(0,0,0,.3);
}
.case-header {
  position: relative;
  display: grid;
  grid-template-columns: 88px 1fr;
  gap: 1rem;
  align-items: center;
  margin-bottom: .85rem;
  z-index: 1;
}
.case-logo {
  width: 88px;
  height: 88px;
  border-radius: 16px;
  padding: .55rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,.03);
  border: 1px solid rgba(255,255,255,.06);
}
.case-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.case-name { margin: 0; font-size: 1.38rem; letter-spacing: .02em; font-weight: 600; }
.case-name a { color: #eee; text-decoration: none; }
.case-name a:hover { color: #17BEBB; }
.case-summary {
  position: relative;
  margin: 0 0 1rem;
  font-size: 1.05rem;
  line-height: 1.6;
  color: rgba(255,255,255,.92);
  z-index: 1;
}
.case-metrics {
  position: relative;
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: .6rem;
  z-index: 1;
}
.case-metrics li {
  display: flex;
  flex-direction: column;
  gap: .25rem;
  padding: .55rem .65rem;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,.1);
  background: rgba(255,255,255,.03);
  transition: transform .2s ease, border-color .2s ease, background .2s ease, box-shadow .2s ease;
}
.metric-label {
  font-size: .62rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: rgba(255,255,255,.6);
  transition: color .2s ease;
}
.metric-value {
  font-size: .98rem;
  font-weight: 600;
  color: rgba(255,255,255,.95);
  transition: color .2s ease, text-shadow .2s ease;
}
.case-card:hover .case-metrics li,
.case-metrics li:hover,
.case-metrics li:focus-within {
  border-color: color-mix(in srgb, var(--case-accent) 28%, rgba(255,255,255,.2));
  background: color-mix(in srgb, var(--case-accent) 10%, rgba(255,255,255,.04));
  box-shadow: 0 8px 18px rgba(0,0,0,.2);
}
.case-metrics li:hover,
.case-metrics li:focus-within {
  transform: translateY(-2px);
}
.case-card:hover .metric-value,
.case-metrics li:hover .metric-value,
.case-metrics li:focus-within .metric-value {
  color: color-mix(in srgb, var(--case-accent) 60%, #ffffff 40%);
  text-shadow: 0 0 10px color-mix(in srgb, var(--case-accent) 35%, transparent);
}
.case-card:hover .metric-label,
.case-metrics li:hover .metric-label,
.case-metrics li:focus-within .metric-label {
  color: color-mix(in srgb, var(--case-accent) 40%, rgba(255,255,255,.75));
}

@media (min-width: 981px) {
  .case-layout {
    grid-template-columns: minmax(280px, 380px) minmax(0, 1fr);
    grid-template-areas: "panel grid";
    align-items: start;
  }
  .case-grid {
    grid-area: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
  .case-panel {
    --case-accent: #17BEBB;
    display: flex;
    flex-direction: column;
    position: sticky;
    top: 2rem;
    align-self: start;
    grid-area: panel;
    background: linear-gradient(180deg, #272727, #1d1d1d);
    border-radius: 16px;
    border: 1px solid rgba(255,255,255,.1);
    box-shadow: 0 10px 24px rgba(0,0,0,.3);
    padding: 1.4rem;
    min-height: 420px;
    overflow: hidden;
  }
  .case-panel::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 3px;
    background: color-mix(in srgb, var(--case-accent) 40%, #6a6a6a 60%);
    opacity: .8;
  }
  .case-panel::after {
    content: '';
    position: absolute;
    inset: 0;
    pointer-events: none;
    background:
      linear-gradient(180deg, color-mix(in srgb, var(--case-accent) 10%, transparent), transparent 55%),
      radial-gradient(120% 80% at 50% 0%, color-mix(in srgb, var(--case-accent) 10%, transparent), transparent 70%);
    opacity: .35;
  }
  .case-panel > * { position: relative; z-index: 1; }
  .panel-placeholder {
    display: grid;
    place-items: center;
    min-height: 320px;
    text-align: center;
    color: rgba(255,255,255,.65);
    font-size: .98rem;
    letter-spacing: .02em;
  }
  .panel-header {
    display: grid;
    grid-template-columns: 72px 1fr;
    gap: .9rem;
    align-items: center;
    margin-bottom: .9rem;
  }
  .panel-content {
    display: flex;
    flex-direction: column;
    flex: 1;
  }
  .panel-logo {
    width: 72px;
    height: 72px;
    border-radius: 14px;
    padding: .5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255,255,255,.03);
    border: 1px solid rgba(255,255,255,.08);
  }
  .panel-logo img { width: 100%; height: 100%; object-fit: contain; }
  .panel-title { display: grid; gap: .3rem; }
  .panel-name { margin: 0; font-size: 1.2rem; letter-spacing: .02em; }
  .panel-visit {
    font-size: .78rem;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: color-mix(in srgb, var(--case-accent) 45%, #e9e9e9 55%);
    text-decoration: none;
  }
  .panel-visit:hover { color: color-mix(in srgb, var(--case-accent) 70%, #ffffff 30%); }
  .panel-summary {
    margin: 0 0 1.1rem;
    color: rgba(255,255,255,.9);
    font-size: 1rem;
    line-height: 1.6;
  }
  .panel-metrics {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: .5rem;
    margin-top: auto;
  }
  .panel-metrics .metric-value { font-size: .94rem; }
  .case-card {
    min-height: 150px;
    padding: 1rem;
    display: grid;
    align-content: center;
    justify-items: center;
    cursor: pointer;
  }
  .case-card.is-active {
    border-color: color-mix(in srgb, var(--case-accent) 35%, rgba(255,255,255,.25));
    box-shadow: 0 12px 22px rgba(0,0,0,.35);
    transform: translateY(-2px);
  }
  .case-card:focus-visible {
    outline: 2px solid rgba(23,190,187,.35);
    outline-offset: 2px;
  }
  .case-card .case-header {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
    margin: 0;
  }
  .case-card .case-header > div:not(.case-logo) { display: none; }
  .case-card .case-logo { width: 96px; height: 96px; }
  .case-card .case-summary,
  .case-card .case-metrics { display: none; }
}

@media (max-width: 980px) {
  .case-panel { display: none; }
  .case-grid { grid-template-columns: 1fr; }
  .case-card { padding: 1.3rem; }
}
@media (max-width: 736px) {
  .case-header { grid-template-columns: 64px 1fr; }
  .case-logo { width: 64px; height: 64px; border-radius: 12px; padding: .4rem; }
  .case-name { font-size: 1.24rem; }
  .case-summary { font-size: 1rem; }
  .case-metrics { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .5rem; }
  .case-metrics li { padding: .5rem .6rem; }
}
@media (max-width: 480px) {
  .case-card { padding: 1.1rem; }
  .case-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .metric-label { font-size: .58rem; }
  .metric-value { font-size: .9rem; }
}

/* === Lists === */
ol { list-style: decimal; margin: 0 0 2em 0; padding-left: 1.25em; }
ol li { padding-left: .25em; }
ul { list-style: disc; margin: 0 0 2em 0; padding-left: 1em; }
ul li { padding-left: .5em; }

/* === Actions (used; keep default + responsive) === */
ul.actions { display: flex; cursor: default; list-style: none; margin-left: -1em; padding-left: 0; }
ul.actions li { padding: 0 0 0 1em; vertical-align: middle; }

@media screen and (max-width: 480px) {
  ul.actions { flex-direction: column; margin-left: 0; width: 100% !important; }
  ul.actions li {
    flex: 1 1 auto; padding: 1em 0 0 0; text-align: center; width: 100%;
  }
  ul.actions li:first-child { padding-top: 0; }
  ul.actions li > * { width: 100%; }
}

/* === Section/Wrapper === */
.wrapper { position: relative; }
.wrapper > .inner { padding: 5em 5em 3em; max-width: 100%; width: 75em; }
@media screen and (max-width: 1680px) { .wrapper > .inner { padding: 4em; padding-bottom: 2em; } }
@media screen and (max-width: 1280px) { .wrapper > .inner { width: 100%; } }
@media screen and (max-width: 736px)  { .wrapper > .inner { padding: 3em 2em 1em; } }

/* palette variants actually used */
.wrapper.alt { background-color: #1f1f1f; }
.wrapper.style1 { background-color: #2a2a2a; }
.wrapper.style1-alt { background-color: #222; }       /* footer */
.wrapper.style2 { background-color: #333; }
.wrapper.style3 { background-color: #3a3a3a; }

/* fullscreen + fades used by #intro/#two/#three/#four/#five */
.wrapper.fullscreen {
  display: flex; flex-direction: column; justify-content: center; min-height: 100vh;
}
@media screen and (max-width: 1280px) {
  .wrapper.fullscreen { min-height: calc(100vh - 2.5em); }
}
@media screen and (max-width: 736px) {
  .wrapper.fullscreen { padding: 2em 0; min-height: 0; }
}

.wrapper.fade-up > .inner {
  transform: translateY(0);
  transition: opacity 1s ease, transform 1s ease;
  opacity: 1;
}
.wrapper.fade-up.inactive > .inner,
body.is-preload .wrapper.fade-up > .inner {
  opacity: 0; transform: translateY(1em);
}

/* === Sidebar === */
#sidebar {
  padding: 2.5em 2.5em .5em;
  background: linear-gradient(to bottom, #1f1f1f, #2a2a2a);
  cursor: default;
  height: 100vh; left: 0; overflow-x: hidden; overflow-y: auto;
  position: fixed; text-align: center; top: 0; width: 18em; z-index: 10000;
  scrollbar-color: rgba(23,190,187,.3) transparent; scrollbar-width: thin;
}
#sidebar::-webkit-scrollbar-thumb { background-color: rgba(23,190,187,.3); border-radius: .25em; }

#sidebar > .inner {
  display: flex; flex-direction: column; justify-content: center;
  transform: translateY(0);
  transition: opacity 1s ease;
  min-height: 100%; opacity: 1; width: 100%;
}
body.is-preload #sidebar > .inner { opacity: 0; }

#sidebar nav > ul { list-style: none; padding: 0; }
#sidebar nav > ul > li {
  transform: translateY(0);
  transition: opacity .15s ease, transform .75s ease;
  margin: 1.5em 0 0 0; opacity: 1; padding: 0; position: relative;
}
#sidebar nav > ul > li:first-child { margin: 0; }

/* only the delays you actually need (6 items) */
#sidebar nav > ul > li:nth-child(1) { transition-delay: .45s; }
#sidebar nav > ul > li:nth-child(2) { transition-delay: .65s; }
#sidebar nav > ul > li:nth-child(3) { transition-delay: .85s; }
#sidebar nav > ul > li:nth-child(4) { transition-delay: 1.05s; }
#sidebar nav > ul > li:nth-child(5) { transition-delay: 1.25s; }
#sidebar nav > ul > li:nth-child(6) { transition-delay: 1.45s; }

#sidebar nav a {
  transition: color .2s ease;
  border: 0; color: rgba(255,255,255,.35);
  display: block; font-size: .6em; font-weight: 700;
  letter-spacing: .25em; line-height: 1.75;
  outline: 0; padding: 1.35em 0; position: relative;
  text-decoration: none; text-transform: uppercase;
}
#sidebar nav a::before,
#sidebar nav a::after {
  border-radius: .2em; bottom: 0; content: ''; height: .2em; position: absolute; right: 0; width: 100%;
}
#sidebar nav a::before { background: #222; }
#sidebar nav a::after {
  background: #999; transition: max-width .2s ease; max-width: 0;
}
#sidebar nav a:hover { color: #17BEBB !important; }
#sidebar nav a:hover::after { background-color: #17BEBB !important; }
#sidebar nav a.active { color: #fff; }
#sidebar nav a.active::after { max-width: 100%; background-color: #17BEBB !important; }

@media screen and (min-width: 1920px) {
  #sidebar nav a { font-size: .64em; padding: 1.45em 0; letter-spacing: .26em; }
}
@media screen and (min-width: 2560px) {
  #sidebar nav a { font-size: .7em; padding: 1.55em 0; letter-spacing: .27em; }
}
@media screen and (min-width: 3840px) {
  #sidebar nav a { font-size: .78em; padding: 1.65em 0; letter-spacing: .29em; }
}

/* Mobile nav toggle */
#sidebar .nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 2.75em;
  height: 2.5em;
  padding: 0;
  border-radius: .45em;
  border: 1px solid rgba(255,255,255,.18);
  background: rgba(0,0,0,.18);
  cursor: pointer;
  position: relative;
  box-shadow: 0 1px 0 rgba(255,255,255,.06) inset, 0 6px 12px rgba(0,0,0,.18);
}
#sidebar .nav-toggle .icon {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-size: 1.15em;
  color: #e9e9e9;
  pointer-events: none;
  transform: translateX(1px);
  transition: opacity .2s ease, transform .2s ease, color .2s ease;
}
#sidebar .nav-toggle .fa-times { opacity: 0; transform: translateX(1px) scale(.9); }
#sidebar .nav-toggle:focus-visible {
  outline: 2px solid #17BEBB;
  outline-offset: 2px;
}
#sidebar .nav-toggle:active { transform: translateY(1px); }
#sidebar.is-menu-open .nav-toggle { border-color: rgba(23,190,187,.45); background: rgba(23,190,187,.14); }
#sidebar.is-menu-open .nav-toggle .fa-bars { opacity: 0; transform: translateX(1px) scale(.9); }
#sidebar.is-menu-open .nav-toggle .fa-times { opacity: 1; transform: translateX(1px) scale(1); }

.mobile-menu { display: none; }

body.is-preload #sidebar nav ul li { transform: translateY(2em); opacity: 0; }

/* Sidebar → topbar at <=1280px */
@media screen and (max-width: 1280px) {
  #sidebar {
    height: 3.5em; left: 0; line-height: 3.5em; overflow: hidden;
    padding: 0; text-align: center; top: 0; width: 100%;
  }
  #sidebar > .inner { flex-direction: row; align-items: stretch; height: inherit; line-height: inherit; }
  #sidebar nav { height: inherit; line-height: inherit; }
  #sidebar nav ul {
    display: flex; height: inherit; line-height: inherit; margin: 0;
  }
  #sidebar nav ul li { display: block; height: inherit; line-height: inherit; margin: 0 0 0 2em; padding: 0; }
  #sidebar nav a { height: inherit; line-height: inherit; padding: 0; }
  #sidebar nav a::after { background-color: #999; }
}

/* Tablet wrap behavior */
@media screen and (min-width:768px) and (max-width:1023px) {
  #sidebar {
    display: block !important; position: fixed; top: 0; left: 0;
    width: 100%; height: auto; background: #222; transform: none !important; transition: none !important;
    z-index: 1000; padding: .5rem 0;
  }
  #sidebar > .inner { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; padding: 1rem 0; }
  #sidebar nav ul {
    display: flex; flex-wrap: wrap; gap: .25rem .75rem; margin: 0; padding: 0; list-style: none; width: 100%; justify-content: center;
  }
  #sidebar nav ul li { flex: 1 1 120px; max-width: 180px; text-align: center; }
  #sidebar nav a { display: block; padding: .5rem .5rem; line-height: 1.2; }
}

/* Phone tweaks (mobile menu overlay) */
@media screen and (max-width: 736px) {
  #sidebar {
    height: 0;
    padding: 0;
    line-height: normal;
    overflow: visible;
    background: transparent;
    backdrop-filter: none;
  }
  #sidebar > .inner {
    flex-direction: row; flex-wrap: wrap;
    justify-content: flex-end; align-items: center; align-content: flex-start;
  }
  #sidebar .nav-toggle {
    display: inline-flex;
    position: fixed;
    top: calc(1rem + env(safe-area-inset-top, 0px));
    right: calc(1rem + env(safe-area-inset-right, 0px));
    width: 3em;
    height: 2.75em;
    line-height: 1;
    z-index: 10001;
  }
  #sidebar .nav-toggle .icon { font-size: 1.2em; }
  #sidebar nav { display: none; }
  .mobile-menu {
    display: block;
    position: fixed;
    inset: 0;
    width: 100vw;
    height: 100vh;
    padding: calc(3.2rem + env(safe-area-inset-top, 0px)) 1.25rem 1rem;
    background: #141414;
    overflow-y: auto;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity .2s ease, visibility .2s ease;
    z-index: 10000;
  }
  body.nav-open .mobile-menu {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }
  .mobile-menu ul {
    list-style: none;
    margin: 0;
    padding: 0;
    width: min(90vw, 22rem);
  }
  .mobile-menu li {
    margin: 0;
    padding: 0;
    border-bottom: 1px solid rgba(23,190,187,.45);
  }
  .mobile-menu li:last-child { border-bottom: 0; }
  .mobile-menu a {
    display: block;
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    font-size: 1.12rem;
    letter-spacing: 0;
    padding: .9rem .1rem;
    line-height: 1.3;
    color: #e9e9e9;
    text-decoration: none;
    text-transform: none;
  }
  .mobile-menu a:hover { color: #17BEBB; }
  .mobile-menu a.active { color: #17BEBB; }
  .mobile-menu-logo {
    display: flex;
    justify-content: center;
    padding: 1.25rem 0 .5rem;
  }
  .mobile-menu-logo img {
    width: min(55vw, 180px);
    height: auto;
    opacity: .9;
  }
  #sidebar.is-menu-open { height: 0; background: transparent; }
  #sidebar + #wrapper { margin-top: 0; }
}

@media screen and (max-width: 736px) {
  body.nav-open { overflow: hidden; }
}

@media screen and (max-width: 430px) {
  #sidebar .nav-toggle {
    top: calc(.9rem + env(safe-area-inset-top, 0px));
    right: calc(.9rem + env(safe-area-inset-right, 0px));
    width: 2.85em;
    height: 2.6em;
  }
  .mobile-menu { padding: calc(3rem + env(safe-area-inset-top, 0px)) 1.1rem .9rem; }
  .mobile-menu ul { width: min(92vw, 20rem); }
  .mobile-menu a { font-size: 1.05rem; padding: .85rem .1rem; }
}

@media screen and (max-width: 360px) {
  #sidebar .nav-toggle { width: 2.7em; height: 2.45em; }
  .mobile-menu { padding: calc(2.9rem + env(safe-area-inset-top, 0px)) 1rem .8rem; }
  .mobile-menu ul { width: min(94vw, 19rem); }
  .mobile-menu a { font-size: 1rem; padding: .8rem .1rem; }
}

/* Layout offsets for main & footer when sidebar exists */
#sidebar + #wrapper { margin-left: 18em; }
@media screen and (max-width: 1280px) {
  #sidebar + #wrapper { margin-left: 0; padding-top: 3.5em; }
}
@media screen and (max-width: 736px) {
  #sidebar + #wrapper { padding-top: 0; }
}
#sidebar + #wrapper + #footer { margin-left: 18em; }
@media screen and (max-width: 1280px) {
  #sidebar + #wrapper + #footer { margin-left: 0; }
}

/* Footer */
#footer > .inner { padding: 2em 5em; color: #eee !important; }
#footer > .inner a { color: #eee !important; border-bottom-color: rgba(255,255,255,.25) !important; text-decoration: none; }
#footer > .inner a:hover { border-bottom-color: transparent; }
#footer > .inner .menu { font-size: .8em; color: #ccc !important; }
#header + #wrapper + #footer > .inner { margin: 0 auto; }

/* Footer menu list */
ul.menu { list-style: none; padding: 0; }
ul.menu > li {
  border-left: 1px solid rgba(255,255,255,.15);
  display: inline-block; line-height: 1;
  margin-left: 1.5em; padding: 0 0 0 1.5em;
}
ul.menu > li:first-child { border-left: 0; margin: 0; padding-left: 0; }
@media screen and (max-width: 480px) {
  ul.menu > li { border-left: 0; display: block; line-height: inherit; margin: .5em 0 0 0; padding-left: 0; }
}

/* === Intro background === */
#intro {
  background-attachment: fixed;
  background-image: url("images/intro.svg");
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center right;
}
#intro p { font-size: 1.25em; }
@media screen and (max-width: 980px) { #intro p br { display: none; } }
@media screen and (max-width: 736px) {
  #intro { background-attachment: scroll; background-size: cover; background-position: 60% center; }
}
@media screen and (max-width: 1280px) { #intro { background-attachment: scroll; } }
@media screen and (min-width: 1920px) {
  #intro .inner { width: 86em; }
  #intro h1 { font-size: 3.2em; }
  #intro p { font-size: 1.35em; }
  #intro .actions .button { font-size: .7em; }
}
@media screen and (min-width: 2560px) {
  #intro .inner { width: 96em; }
  #intro h1 { font-size: 3.6em; }
  #intro p { font-size: 1.5em; }
  #intro .actions .button { font-size: .78em; }
}
@media screen and (min-width: 3840px) {
  #intro .inner { width: 110em; }
  #intro h1 { font-size: 4em; }
  #intro p { font-size: 1.7em; }
  #intro .actions .button { font-size: .85em; }
}

/* Logo in sidebar */
.interactive-logo { transition: transform .5s ease; width: 230px; height: auto; padding-right: 54px; }
.logo a:focus, .logo a:active { outline: none; box-shadow: none; }
@media screen and (max-width: 1280px) { .logo { display: none; } }
.logo img { display: inline-block; margin: 0 auto; transform: translateX(25px); }
@media screen and (min-width: 1920px) { .logo img { transform: translateX(25px); } }
@media screen and (min-width: 2560px) { .logo img { transform: translateX(30px); } }
@media screen and (min-width: 3000px) { .logo img { transform: translateX(30px); } }

/* Section-specific background colors */
#intro.wrapper  { background-color: #2b2b2b !important; }
#one.wrapper    { background-color: #333 !important; }
#two.wrapper    { background-color: #333 !important; }
#three.wrapper  { background-color: #333 !important; }
#four.wrapper   { background-color: #333 !important; }
#five.wrapper   { background-color: #333 !important; }
#footer.wrapper { background-color: #333 !important; }

/* === Terms minimal === */
.terms-minimal h2 {
  margin-bottom: .4rem;
  font-size: 1.6rem;
  letter-spacing: .08em;
}
.terms-minimal p {
  margin: 0 0 1.4rem;
  color: rgba(255,255,255,.65);
  font-size: .95rem;
}
.terms-minimal .actions {
  margin-top: 0;
}
.terms-minimal .button {
  background: transparent;
  border: 1px solid rgba(255,255,255,.25) !important;
  color: rgba(255,255,255,.92) !important;
  box-shadow: none;
  height: 3.2em;
  line-height: 3.2em;
  padding: 0 2.2em;
  font-size: .55em;
  letter-spacing: .22em;
}
.terms-minimal .button:hover {
  background: rgba(255,255,255,.08) !important;
  color: #fff !important;
  box-shadow: none;
}


/* === Features grid (Services) === */
.features {
  display: flex; flex-wrap: wrap;
  border-radius: .25em;
  border: 1px solid rgba(255,255,255,.15);
  background: rgba(255,255,255,.05);
  margin: 0 0 2em 0;
}
.features section {
  padding: 2.4em 2.2em 1em 5.75em;
  width: 50%;
  border-top: 1px solid rgba(255,255,255,.15);
  border-left: 1px solid rgba(255,255,255,.15);
  position: relative;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.features section:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 22px rgba(0,0,0,.22);
  border-color: rgba(23,190,187,.3);
}
.features section:nth-child(-n + 2) { border-top-width: 0; }
.features section:nth-child(2n + 1) { border-left-width: 0; }

.features h3 { margin: 0 0 .5em; font-size: 1.05em; }
.features p { margin: 0 0 .85em; font-size: .95em; line-height: 1.55; }

.features section .icon {
  transition: color .3s ease, transform .3s ease, opacity .5s ease;
  color: #17BEBB !important;
  transform: scale(1);
  position: absolute; left: 2.2em; top: 2.1em; opacity: 1;
}
/* hover color pop */
.features section .icon::before,
.features section .icon.solid.major::before {
  color: #17BEBB !important; transition: color .3s ease, transform .3s ease;
}
.features section .icon:hover::before,
.features section .icon.solid.major:hover::before {
  color: #B9F227 !important; transform: scale(1.1);
}
/* keep only 8 delays (you render 8 services) */
.features section:nth-child(1) .icon { transition-delay: .15s; }
.features section:nth-child(2) .icon { transition-delay: .3s; }
.features section:nth-child(3) .icon { transition-delay: .45s; }
.features section:nth-child(4) .icon { transition-delay: .6s; }
.features section:nth-child(5) .icon { transition-delay: .75s; }
.features section:nth-child(6) .icon { transition-delay: .9s; }
.features section:nth-child(7) .icon { transition-delay: 1.05s; }
.features section:nth-child(8) .icon { transition-delay: 1.2s; }

.features.inactive section .icon { transform: scale(.5); opacity: 0; }

@media screen and (max-width: 980px) {
  .features { display: block; }
  .features section { border-top-width: 1px !important; border-left-width: 0 !important; width: 100%; }
  .features section:first-child { border-top-width: 0 !important; }
}
@media screen and (min-width: 1536px) {
  .features section {
    width: 25%;
    padding: 2.1em 1.8em .9em 4.9em;
  }
  .features section:nth-child(-n + 4) { border-top-width: 0; }
  .features section:nth-child(2n + 1) { border-left-width: 1px; }
  .features section:nth-child(4n + 1) { border-left-width: 0; }
  .features section .icon { left: 1.8em; top: 1.85em; }
  .features h3 { font-size: 1.02em; }
  .features p { font-size: .93em; line-height: 1.5; }
}
@media screen and (min-width: 1920px) {
  .features section {
    width: 25%;
    padding: 2em 1.6em .85em 4.4em;
  }
  .features section:nth-child(-n + 4) { border-top-width: 0; }
  .features section:nth-child(2n + 1) { border-left-width: 1px; }
  .features section:nth-child(4n + 1) { border-left-width: 0; }
  .features section .icon { left: 1.6em; top: 1.7em; }
  .features h3 { font-size: 1em; }
  .features p { font-size: .92em; }
}
@media screen and (max-width: 736px) {
  .features section { padding: 2.2em 1.5em .1em 5.1em; }
  .features section .icon { left: 1.5em; top: 2em; }
}
@media screen and (max-width: 480px) {
  .features section { padding: 1.8em 1.5em .1em 1.5em; }
  .features section .icon { left: 0; position: relative; top: 0; }
}

/* === Split layout (contact section) === */
.split { display: flex; }
.split > * { width: calc(50% - 2.5em); }
.split > :nth-child(2n - 1) {
  padding-right: 2.5em;
  border-right: 1px solid rgba(255,255,255,.15);
}
.split > :nth-child(2n) { padding-left: 2.5em; }
.split.style1 > :nth-child(2n - 1) { width: calc(66.66666% - 2.5em); }
.split.style1 > :nth-child(2n)     { width: calc(33.33333% - 2.5em); }

@media screen and (max-width: 1680px) {
  .split > * { width: calc(50% - 2em); }
  .split > :nth-child(2n - 1) { padding-right: 2em; }
  .split > :nth-child(2n) { padding-left: 2em; }
  .split.style1 > :nth-child(2n - 1) { width: calc(66.66666% - 2em); }
  .split.style1 > :nth-child(2n)     { width: calc(33.33333% - 2em); }
}
@media screen and (max-width: 980px) {
  .split { display: block; }
  .split > * {
    border-top: 1px solid rgba(255,255,255,.15);
    margin: 4em 0 0 0; padding: 4em 0 0 0; width: 100% !important;
  }
  .split > :nth-child(2n - 1) { border-right: 0; padding-right: 0; }
  .split > :nth-child(2n) { padding-left: 0; }
  .split > :first-child { border-top: 0; margin-top: 0; padding-top: 0; }
}
@media screen and (max-width: 736px) {
  .split > * { margin: 3em 0 0 0; padding: 3em 0 0 0; }
}

@media screen and (max-width: 736px) {
  #three .split {
    display: flex;
    flex-direction: column;
    gap: 2.25rem;
  }
  #three .split > * {
    width: 100% !important;
    margin: 0;
    padding: 0;
    border-top: 0;
  }
  #three .split > :nth-child(1) { order: 2; }
  #three .split > :nth-child(2) { order: 1; }
}

/* === Contact success overlay === */
#three { position: relative; }
#three #success-overlay {
  position: absolute; inset: 0; display: grid; place-items: center;
  background: rgba(0,0,0,.55); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  z-index: 2000;
}
#three #success-overlay[hidden] { display: none; }

#three #success-overlay .message-box {
  --ring: #17BEBB; --bg: #121212; --fg: #e8f8f7;
  position: relative; background: linear-gradient(180deg, #1a1a1a, #151515);
  padding: 2rem 2.25rem; border-radius: 16px; text-align: center;
  width: min(520px, calc(100% - 2rem)); color: var(--fg);
  box-shadow: 0 10px 30px rgba(0,0,0,.35), 0 0 0 1px rgba(255,255,255,.06) inset;
  outline: none; border: 1px solid rgba(255,255,255,.08);
}
#three #success-overlay .message-box::before { animation: none !important; opacity: .25; }

/* === Contact form: textarea resize bounds === */
#three form textarea {
  resize: none;
  min-height: 8.5rem;
  max-height: min(40vh, 420px);
  overflow: auto;
}

/* Short laptops */
@media screen and (max-height: 900px) {
  #three form textarea {
    min-height: 7rem;
    max-height: min(32vh, 360px);
  }
}

/* Small phones */
@media screen and (max-width: 430px) {
  #three form textarea {
    min-height: 6.5rem;
    max-height: min(35vh, 320px);
  }
}

#three #success-overlay .success-icon {
  width: 64px; height: 64px; margin: 0 auto .9rem; border-radius: 50%;
  display: grid; place-items: center;
  background: radial-gradient(65% 65% at 35% 30%, #1fe0dc, #17BEBB 60%, #119b99);
  box-shadow: 0 8px 24px rgba(23,190,187,.35), 0 0 0 6px rgba(23,190,187,.12);
  transform: scale(.85); animation: pop 380ms cubic-bezier(.2,.8,.2,1) forwards 120ms;
}
#three #success-overlay .success-icon svg { fill: #0c2f2e; }

#three #success-overlay h3 {
  font-family: 'Montserrat', sans-serif; font-weight: 700; font-size: 1.4rem;
  margin: 0 0 .35rem; letter-spacing: .2px;
}
#three #success-overlay p { margin: 0 0 1.1rem; color: #d9f5f3; }

#three #success-overlay .close-overlay.button {
  margin-top: .25rem; height: 3rem; line-height: 3rem; padding: 0 1.25rem;
  letter-spacing: .12em; box-shadow: 0 0 0 0 rgba(23,190,187,0);
  transition: transform .15s ease, box-shadow .2s ease;
}
#three #success-overlay .close-overlay.button:hover {
  transform: translateY(-1px); box-shadow: 0 6px 18px rgba(23,190,187,.35);
}

#three #success-overlay.fade-in .message-box { animation: cardIn 260ms ease-out forwards; }
#three #success-overlay.fade-out .message-box { animation: cardOut 160ms ease-in forwards; }

@keyframes pop { to { transform: scale(1); } }
@keyframes cardIn { from { opacity: 0; transform: translateY(6px) scale(.98); } to { opacity: 1; transform: translateY(0) scale(1); } }
@keyframes cardOut { from { opacity: 1; transform: translateY(0) scale(1); } to { opacity: 0; transform: translateY(6px) scale(.98); } }

@media (prefers-reduced-motion: reduce) {
  #three #success-overlay .success-icon,
  #three #success-overlay.fade-in .message-box,
  #three #success-overlay.fade-out .message-box { animation: none; }
}



/* === Contact Terminal === */
#contact-terminal {
  --teal: #17BEBB; --bg: #121212; --panel: #1a1a1a; --text: #e6f7f6; --muted: #9ccfcd;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
  font-size: clamp(0.9rem, 0.6vw + 0.5rem, 1.08rem);
  border-radius: 12px; overflow: hidden;
  box-shadow: 0 8px 20px rgba(0,0,0,.35), 0 0 0 1px rgba(255,255,255,.06) inset;
  background: var(--panel); color: var(--text);
  width: 100%; max-width: 560px; margin-left: auto; margin-right: auto;
  padding: 12px;
  display: flex;
  flex-direction: column;
  min-height: clamp(240px, 34vh, 320px);
}
#contact-terminal .terminal-header {
  display: flex; align-items: center; gap: .5rem; padding: .6rem .9rem;
  background: linear-gradient(180deg, #222, #1b1b1b);
  border-bottom: 1px solid rgba(255,255,255,.06);
}
#contact-terminal .terminal-header .dot { width: 10px; height: 10px; border-radius: 50%; display: inline-block; opacity: .9; }
#contact-terminal .terminal-header .dot.red { background: #ff5f56; }
#contact-terminal .terminal-header .dot.yellow { background: #ffbd2e; }
#contact-terminal .terminal-header .dot.green { background: #27c93f; }
#contact-terminal .terminal-header .title { margin-left: .25rem; font-size: .85rem; color: #cfcfcf; letter-spacing: .02em; }
#contact-terminal .terminal-body {
  position: relative; padding: 1.1rem 1.25rem 1.35rem;
  background: linear-gradient(180deg, var(--panel), var(--bg));
  overflow: hidden;
  flex: 1 1 auto;
  min-height: 0;
}
#contact-terminal .output {
  margin: 0;
  white-space: pre-wrap;
  word-break: break-word;
  overflow-wrap: anywhere;
  min-height: 100%;
  line-height: 1.65;
  max-width: 100%;
}
#contact-terminal .output > div { margin: .25rem 0; }
#contact-terminal .output > .spacer { height: .6rem; display: block;}
#contact-terminal .prompt { color: var(--muted); }
#contact-terminal a { color: var(--teal); text-decoration: none; border-bottom: 1px dotted rgba(23,190,187,.35); }
#contact-terminal a:hover { color: #15a5a3; border-bottom-color: transparent; }
#contact-terminal .caret {
   position: relative;          
  display: inline-block;
  width: 2px;
  height: 1.1em;
  background: var(--teal);
  vertical-align: -0.2em;       
  animation: blink 1s step-start infinite;
}
@keyframes blink { 50% { opacity: 0; } }
#three #contact-terminal { margin-top: 1.5rem; }
#contact-terminal { contain: layout paint; }

/* Short-laptop tuning (1366x768, 1536x864): slightly denser so it sits neatly beside the form */
@media screen and (max-height: 864px) {
  #contact-terminal { font-size: clamp(0.85rem, 0.7vw + 0.48rem, 1rem); padding-top: 8px; padding-bottom: 8px; max-width: 520px; }
  #contact-terminal .terminal-body { padding: .9rem 1rem 1rem; }
  #contact-terminal .output { line-height: 1.45; min-height: 100%; }
}

/* Very large monitors (2560+): cap growth so it never looks oversized */
@media (min-width: 2560px) {
  #contact-terminal { font-size: clamp(0.95rem, 0.5vw + 0.5rem, 1.15rem); }
}

/* === Split shrink fix === */
.split > * { min-width: 0; }

/* === Contact Terminal — laptop width stretch (1366×768) === */
@media screen and (min-width: 1330px) and (max-width: 1380px) and (max-height: 800px) {
  .split.style1 > :nth-child(2n - 1) { width: calc(58% - 2.5em); }
  .split.style1 > :nth-child(2n)     { width: calc(42% - 2.5em); }
  #contact-terminal { font-size: clamp(0.94rem, 0.35vw + 0.58rem, 1.04rem); }
  #contact-terminal .terminal-header { padding: .5rem .9rem; }
  #contact-terminal .terminal-body   { padding: .85rem 1rem 1rem; }
  #contact-terminal .output { line-height: 1.55; min-height: 100%; }
}

/* === 1440–1560 wide, max-height 920 (covers 1440×900 & 1536×864) === */
@media screen and (min-width: 1400px) and (max-width: 1560px) and (max-height: 920px) {
  .split.style1 > :nth-child(2n - 1),
  .split.style1 > :nth-child(2n) { width: auto; }
  .split.style1 > :nth-child(2n - 1) { flex: 0 1 64%; padding-right: 2.5em; border-right: 1px solid rgba(255,255,255,.15); }
  .split.style1 > :nth-child(2n)     { flex: 0 1 36%; padding-left: 2.5em; }
  #contact-terminal { font-size: clamp(0.88rem, 0.22vw + 0.62rem, 1rem); }
  #contact-terminal .terminal-header { padding: .5rem .85rem; }
  #contact-terminal .terminal-body   { padding: .8rem 1rem 1rem; }
  #contact-terminal .output          { line-height: 1.5; min-height: 100%; }
}

/* === Exact nudge for 1536×864 (optional) === */
@media screen and (width: 1536px) and (height: 864px) {
  .split.style1 > :nth-child(2n - 1) { flex-basis: 62%; }
  .split.style1 > :nth-child(2n)     { flex-basis: 38%; }
}


/* === Meet the Team (static cards) — trimmed === */
#one.wrapper.style2 > .inner { padding-top: 4em; padding-bottom: 4em; }
#one.wrapper.style2 > .inner > h2 { margin-top: 0; }

/* Typography/Palette alignment */
#one.wrapper.style2 h2,
#one .meta .name { font-family: 'Montserrat', sans-serif; color: #eee; }
#one .role,
#one .location { color: #ccc; }

/* Grid */
.team-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 2.9rem;
  margin-top: 1.25rem;
}
@media (max-width: 1024px) { .team-grid { grid-template-columns: 1fr; } }

/* Card */
.member-card {
  text-align: center;
  opacity: 1;
  transform: translateY(0);
  transition: opacity .85s ease, transform .85s ease;
}
#one.inactive .member-card {
  opacity: 0;
  transform: translateY(18px);
}
.team-grid .member-card:nth-child(1) { transition-delay: .08s; }
.team-grid .member-card:nth-child(2) { transition-delay: .2s; }
.team-grid .member-card:nth-child(3) { transition-delay: .32s; }
.team-grid .member-card:nth-child(4) { transition-delay: .44s; }
.member-card .card-inner {
  display: flex; flex-direction: column;
  min-height: 520px;
  padding: 1.25rem 1.2rem 1.1rem;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,.12);
  background: linear-gradient(180deg, #262626, #1f1f1f);
  box-shadow: 0 2px 10px rgba(0,0,0,.25);
  transition: box-shadow .2s ease, border-color .2s ease, transform .18s ease;
  position: relative;
  overflow: hidden;
}
.member-card .card-inner::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(255,255,255,.08), rgba(255,255,255,0) 35%);
  opacity: .6;
}
.member-card:hover .card-inner,
.member-card:focus-within .card-inner {
  transform: translateY(-2px);
  border-color: rgba(23,190,187,.35);
  box-shadow: 0 12px 30px rgba(0,0,0,.35);
}

/* Headshot */
.member-card .headshot {
  display: block;
  width: min(100%, 260px);
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 9999px;
  border: 1px solid rgba(255,255,255,.12);
  background: #242424;
  padding: 4px;
  margin: .35rem auto 1.1rem;
  filter: grayscale(4%) brightness(98%);
}
@media (max-width: 736px) { .member-card .headshot { width: min(100%, 220px); padding: 3px; } }

/* Meta */
.member-card .meta .role,
.member-card .meta .location { margin: 0 0 .28rem; font-size: .96rem; }
.member-card .meta .availability { margin: 0 0 .28rem; font-size: .9rem; color: #c9c9c9; }
.member-card .meta .name { margin: 0 0 .18rem; font-size: 1.32rem; font-weight: 700; }
.member-card .meta .location .icon { margin-right: .4rem; }

/* Tags */
.member-card .tags {
  display: flex; flex-wrap: wrap; justify-content: center;
  gap: .45rem .55rem;
  list-style: none; padding: 0; margin: .7rem 0 .95rem;
  margin: .7rem 0 1.25rem; 
}
.member-card .tags li {
  font-size: .8rem;
  padding: .28rem .6rem;
  border-radius: 999px;
  color: #e4e4e4;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.12);
  transition: transform .2s ease, background-color .2s ease, border-color .2s ease, box-shadow .2s ease, color .2s ease;
}
.member-card .tags li:hover,
.member-card .tags li:focus-visible {
  transform: translateY(-2px);
  background: rgba(23,190,187,.18);
  border-color: rgba(23,190,187,.55);
  color: #fff;
  box-shadow: 0 8px 18px rgba(23,190,187,.22);
}

/* Actions */
.member-card .actions-row { display: flex; justify-content: center; gap: .65rem; margin-top: auto; }
.member-card .actions-row .button,
.member-card .actions-row .button.small {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  height: 2.45rem; line-height: 1; padding: 0 1.05rem; letter-spacing: .12em; text-align: center;
}
.member-card .actions-row .button.icon:before { margin: 0 !important; }
.member-card .actions-row .button .icon { display: inline-grid; place-items: center; width: 1em; height: 1em; line-height: 1; }

/* Responsive tuning (kept minimal but covers your test set) */
@media (max-height: 864px) and (min-width: 1024px) { /* 1366x768, 1536x864 */
  #one .team-grid { gap: 2.4rem; }
  #one .member-card .card-inner { min-height: 480px; }
}
@media (max-height: 768px) and (min-width: 981px) { /* short laptops */
  #one .member-card .card-inner { min-height: 460px; }
}
@media (max-width: 1280px) and (min-width: 1024px) { /* iPad Pro landscape-ish */
  #one.wrapper.style2 > .inner { padding-top: 3.6em; padding-bottom: 3.6em; }
}
@media (max-width: 1024px) { /* tablets portrait & below */
  #one .team-grid { grid-template-columns: 1fr; gap: 2.2rem; }
  #one .member-card .card-inner { min-height: 480px; }
  #contact-terminal { max-width: 460px; }
}
@media screen and (width: 1366px) and (height: 1024px) {
  #contact-terminal { max-width: 620px; }
}
@media (min-width: 1440px) { /* 1080p */
  #one .team-grid { gap: 3.1rem; }
}
@media (min-width: 1920px) { /* 1080p wide / 1440p */
  #one.wrapper.style2 > .inner { padding-left: 5.6em; padding-right: 5.6em; }
  #one .team-grid { gap: 3.25rem; }
}
@media (min-width: 2560px) { /* 1440p/2K */
  #one .team-grid { gap: 3.4rem; }
}
@media (min-width: 3840px) { /* 4K */
  #one .team-grid { gap: 3.6rem; }
  #one .member-card .card-inner { min-height: 540px; }
}
@media (max-width: 430px) { /* phones 360–430 wide */
  #one.wrapper.style2 > .inner { padding-top: 3.2em; padding-bottom: 3.2em; }
  #one .member-card .card-inner { min-height: 420px; }
  #one .headshot { width: min(100%, 210px); }
  #one .tags { gap: .4rem .5rem; }
}
