:root {
  --bg: #050505;
  --bg-2: #0d0d0f;
  --panel: rgba(255, 255, 255, 0.055);
  --panel-strong: rgba(255, 255, 255, 0.09);
  --line: rgba(255, 255, 255, 0.15);
  --muted: #a7a7ad;
  --text: #f5f5f7;
  --soft: #d9d9df;
  --black: #000;
  --white: #fff;
  --brand-blue: #0090cf;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family:
    Inter,
    ui-sans-serif,
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  overflow-x: hidden;
}

a {
  color: inherit;
}

.jab-shell {
  width: min(100%, 1760px);
  padding-left: clamp(20px, 4vw, 72px);
  padding-right: clamp(20px, 4vw, 72px);
}

.cursor-glow {
  position: fixed;
  top: 0;
  left: 0;
  width: 260px;
  height: 260px;
  pointer-events: none;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.07), rgba(12, 167, 223, 0.035) 34%, rgba(255, 255, 255, 0) 70%);
  transform: translate3d(-50%, -50%, 0);
  opacity: 0;
  transition: opacity 280ms ease;
  z-index: 4;
  mix-blend-mode: screen;
}

body.pointer-active .cursor-glow {
  opacity: 0.72;
}

.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, var(--brand-blue), #41c7ff);
  box-shadow: 0 0 18px rgba(0, 144, 207, 0.55);
  transform: scaleX(0);
  transform-origin: left center;
  z-index: 1040;
  pointer-events: none;
}

.jab-nav {
  padding: 18px 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.68), rgba(0, 0, 0, 0));
  transition:
    padding 260ms ease,
    background 260ms ease,
    border-color 260ms ease;
  border-bottom: 1px solid transparent;
}

.jab-nav.is-scrolled {
  padding: 10px 0;
  background: rgba(5, 5, 5, 0.84);
  border-bottom-color: var(--line);
  backdrop-filter: blur(18px);
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--white);
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0;
}

.brand-logo-symbol {
  width: 30px;
  height: auto;
  flex: 0 0 auto;
}

.brand-mark:hover span,
.brand-mark:focus span {
  color: var(--brand-blue);
}

.navbar-toggler {
  border: 1px solid var(--line);
  color: var(--white);
  border-radius: 4px;
  min-width: 44px;
  min-height: 42px;
}

.nav-link {
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.88rem;
}

.nav-link:hover,
.nav-link:focus {
  color: var(--brand-blue);
}

.btn {
  border-radius: 4px;
  font-weight: 600;
  letter-spacing: 0;
}

.btn-light {
  background: var(--white);
  border-color: var(--white);
  color: var(--black);
}

.btn-brand {
  background: var(--brand-blue);
  border-color: var(--brand-blue);
  color: var(--white);
}

.btn-brand:hover,
.btn-brand:focus {
  background: #007eb6;
  border-color: #007eb6;
  color: var(--white);
}

.btn-outline-light {
  border-color: rgba(255, 255, 255, 0.36);
}

.btn-outline-light:hover,
.btn-outline-light:focus {
  background: transparent;
  border-color: rgba(0, 144, 207, 0.72);
  color: var(--brand-blue);
}

.icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.hero-section {
  position: relative;
  min-height: 100vh;
  overflow: hidden;
  background:
    radial-gradient(circle at 72% 24%, rgba(255, 255, 255, 0.16), transparent 32%),
    linear-gradient(135deg, #030303 0%, #0b0b0c 42%, #1b1b1f 100%);
}

.hero-image,
.hero-image-overlay,
#byteField,
.hero-grid {
  position: absolute;
  inset: 0;
}

.hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(1) contrast(1.12) brightness(0.72);
  transform: scale(1.02);
}

.hero-image-overlay {
  background:
    radial-gradient(circle at 74% 24%, rgba(255, 255, 255, 0.12), transparent 30%),
    linear-gradient(90deg, rgba(0, 0, 0, 0.88), rgba(0, 0, 0, 0.54) 46%, rgba(0, 0, 0, 0.76)),
    linear-gradient(180deg, rgba(0, 0, 0, 0.2), #050505 98%);
  z-index: 1;
}

#byteField {
  width: 100%;
  height: 100%;
  opacity: 0.72;
  z-index: 1;
}

.hero-grid {
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.06) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.86), rgba(0, 0, 0, 0.1) 78%);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  padding-top: 84px;
  padding-bottom: 42px;
}

.hero-row {
  min-height: min(760px, 86vh);
}

.eyebrow {
  color: var(--brand-blue);
  font-size: 0.72rem;
  font-weight: 650;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 18px;
}

.hero-title {
  max-width: 1120px;
  font-size: clamp(3.4rem, 8vw, 8.6rem);
  line-height: 0.94;
  letter-spacing: 0;
  font-weight: 700;
  margin-bottom: 16px;
  padding-bottom: 15px;
}

.hero-brand-line {
  color: var(--white);
  font-size: clamp(1.15rem, 2.2vw, 2.4rem);
  line-height: 1.12;
  font-weight: 600;
  margin: 0 0 28px;
}

.hero-copy {
  max-width: 760px;
  color: rgba(255, 255, 255, 0.76);
  font-size: clamp(1rem, 1.25vw, 1.22rem);
  line-height: 1.65;
  margin-bottom: 34px;
}

.signal-panel,
.service-card,
.showcase,
.stack-list,
.cta-band {
  border: 1px solid var(--line);
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.035));
  backdrop-filter: blur(20px);
}

.signal-panel {
  padding: 28px;
  margin-top: 42px;
  transform-style: preserve-3d;
}

.panel-topline {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #61f28f;
  font-size: 0.86rem;
  margin-bottom: 24px;
}

.status-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #61f28f;
  box-shadow: 0 0 22px rgba(97, 242, 143, 0.86);
}

.metric-row {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 16px 0;
  border-top: 1px solid var(--line);
  color: var(--muted);
}

.metric-row strong {
  color: var(--white);
  text-align: right;
}

.terminal-card {
  display: grid;
  gap: 8px;
  margin-top: 20px;
  padding: 18px;
  background: rgba(0, 0, 0, 0.48);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #bdbdc4;
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 0.82rem;
}

.section-pad {
  position: relative;
  padding: clamp(76px, 9vw, 150px) 0;
  overflow: hidden;
}

.section-pad::before {
  content: "";
  position: absolute;
  top: 0;
  left: clamp(20px, 4vw, 72px);
  right: clamp(20px, 4vw, 72px);
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.28), transparent);
  opacity: 0.72;
}

.section-pad::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 90px;
  pointer-events: none;
  background: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.22));
}

.section-pad > .jab-shell {
  position: relative;
  z-index: 1;
}

#studio {
  background:
    radial-gradient(circle at 12% 16%, rgba(255, 255, 255, 0.075), transparent 28%),
    linear-gradient(180deg, #050505 0%, #0b0b0d 48%, #060606 100%);
}

.surface-section {
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px), linear-gradient(180deg, #111114, #070708);
  background-size:
    112px 112px,
    auto;
}

.process-section {
  background:
    linear-gradient(180deg, rgba(5, 5, 5, 0.9), rgba(8, 8, 8, 0.72) 48%, rgba(5, 5, 5, 0.92)),
    url("../img/process-code-topography-bg.svg");
  background-size: auto, cover;
  background-position: center, center;
}

.section-title {
  max-width: 850px;
  font-size: clamp(1.9rem, 3.8vw, 4.4rem);
  line-height: 1.02;
  font-weight: 650;
  letter-spacing: 0;
  margin: 0;
  padding-bottom: 15px;
}

.section-kicker,
.split-copy {
  color: rgba(255, 255, 255, 0.68);
  font-size: clamp(0.96rem, 1.1vw, 1.08rem);
  line-height: 1.75;
}

.section-kicker {
  max-width: 520px;
  border-left: 2px solid rgba(0, 144, 207, 0.56);
  padding-left: 18px;
}

.split-copy {
  columns: 2;
  column-gap: 46px;
}

.marquee-wrap {
  margin-top: 80px;
  overflow: hidden;
  border-block: 1px solid var(--line);
}

.marquee-track {
  display: flex;
  gap: 42px;
  width: max-content;
  padding: 28px 0;
  animation: marquee 24s linear infinite;
}

.marquee-track span {
  color: rgba(255, 255, 255, 0.72);
  font-size: clamp(0.98rem, 1.4vw, 1.45rem);
  font-weight: 600;
  white-space: nowrap;
}

.service-card {
  min-height: 100%;
  padding: 30px;
  transform-style: preserve-3d;
  transition:
    border-color 220ms ease,
    background 220ms ease,
    transform 220ms ease;
}

.service-card:hover {
  border-color: rgba(0, 144, 207, 0.46);
  background: linear-gradient(145deg, rgba(0, 144, 207, 0.09), rgba(255, 255, 255, 0.055));
}

.service-card-featured {
  border-color: rgba(255, 255, 255, 0.34);
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0.045)), rgba(255, 255, 255, 0.04);
}

.service-card-featured i {
  background: var(--white);
  color: var(--black);
}

.service-card i {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  margin-bottom: 48px;
  border: 1px solid var(--line);
  color: var(--white);
  font-size: 1.15rem;
}

.service-card h3,
.stack-item h3,
.timeline-item h3 {
  color: var(--white);
  font-size: 1.12rem;
  font-weight: 650;
  margin-bottom: 12px;
}

.service-card p,
.stack-item p,
.timeline-item p,
.portfolio-card p {
  color: rgba(255, 255, 255, 0.64);
  line-height: 1.65;
  margin: 0;
}

.portfolio-section {
  background:
    linear-gradient(180deg, rgba(5, 5, 5, 0.88), rgba(7, 8, 8, 0.66) 48%, rgba(5, 5, 5, 0.9)),
    url("../img/portfolio-forest-tech-bg.svg");
  background-size: auto, cover;
  background-position: center, center;
}

.portfolio-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 650px);
  gap: clamp(28px, 5vw, 72px);
  align-items: end;
  margin-bottom: 44px;
}

.portfolio-tabs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  padding: 6px;
  border: 1px solid var(--line);
  background: rgba(0, 0, 0, 0.34);
}

.portfolio-tab {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 10px 12px;
  border: 1px solid transparent;
  border-radius: 4px;
  background: transparent;
  color: rgba(255, 255, 255, 0.68);
  font: inherit;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0;
  text-align: center;
  transition:
    background 180ms ease,
    border-color 180ms ease,
    color 180ms ease;
}

.portfolio-tab:hover,
.portfolio-tab:focus {
  color: var(--brand-blue);
  border-color: rgba(0, 144, 207, 0.38);
}

.portfolio-tab.is-active {
  color: var(--white);
  background: rgba(0, 144, 207, 0.16);
  border-color: rgba(0, 144, 207, 0.72);
}

.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

.portfolio-card {
  min-width: 0;
  min-height: 100%;
  padding: clamp(22px, 3vw, 34px);
  border: 1px solid var(--line);
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.11), rgba(255, 255, 255, 0.035)), rgba(255, 255, 255, 0.04);
  transition:
    opacity 180ms ease,
    transform 180ms ease,
    border-color 180ms ease;
}

.portfolio-card:hover {
  border-color: rgba(0, 144, 207, 0.42);
}

.portfolio-card[hidden] {
  display: none;
}

.portfolio-media,
.portfolio-code,
.portfolio-flow {
  min-height: 210px;
  margin-bottom: 28px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(0, 0, 0, 0.38);
}

.portfolio-media {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  min-height: 0;
}

.portfolio-media::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.06), transparent 24%),
    linear-gradient(90deg, rgba(0, 0, 0, 0.08), transparent 28%, rgba(0, 0, 0, 0.1));
}

.portfolio-media-link {
  display: block;
  position: relative;
  width: 100%;
  height: 100%;
  color: inherit;
}

.portfolio-media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: contrast(1.05);
  transition:
    transform 260ms ease,
    filter 260ms ease;
}

.portfolio-card:hover .portfolio-media img {
  transform: scale(1.035);
  filter: contrast(1.1) brightness(1.04);
}

.portfolio-media img.portfolio-live-mockup {
  filter: grayscale(0.45) saturate(0.76) contrast(1.02) brightness(0.92);
}

.portfolio-card:hover .portfolio-media img.portfolio-live-mockup {
  filter: grayscale(0.18) saturate(0.92) contrast(1.06) brightness(0.98);
}

.portfolio-coming-soon {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: grid;
  place-items: center;
  pointer-events: none;
  background:
    linear-gradient(135deg, rgba(7, 10, 16, 0.36), rgba(7, 10, 16, 0.58)),
    radial-gradient(circle at 50% 42%, rgba(0, 144, 207, 0.22), transparent 42%);
}

.portfolio-coming-soon span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: min(70%, 280px);
  padding: 12px 22px;
  border: 1px solid rgba(0, 144, 207, 0.62);
  background: rgba(7, 10, 16, 0.72);
  color: #f7fbff;
  font-size: clamp(0.78rem, 2.2vw, 1rem);
  font-weight: 800;
  letter-spacing: 0.16em;
  line-height: 1.2;
  text-align: center;
  text-transform: uppercase;
  box-shadow: 0 18px 46px rgba(0, 0, 0, 0.34);
}

.portfolio-visual {
  display: grid;
  grid-template-columns: 1fr 0.62fr;
  grid-template-rows: 0.72fr 1fr;
  gap: 10px;
  padding: 16px;
}

.portfolio-visual span {
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.24), transparent 58%), rgba(255, 255, 255, 0.08);
}

.portfolio-visual span:first-child {
  grid-row: span 2;
}

.portfolio-visual-alt {
  grid-template-columns: 1fr;
  grid-template-rows: 0.62fr 1fr 0.42fr;
}

.portfolio-code {
  display: grid;
  align-content: center;
  gap: 8px;
  padding: 22px;
  color: #bdbdc4;
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: clamp(0.8rem, 1.2vw, 1rem);
}

.portfolio-code-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-content: stretch;
}

.portfolio-code-grid span {
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: var(--white);
  font-weight: 600;
}

.portfolio-flow {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(10px, 2vw, 22px);
  padding: 20px;
}

.portfolio-flow span {
  display: grid;
  place-items: center;
  min-width: 86px;
  min-height: 52px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: var(--white);
  font-weight: 600;
}

.portfolio-flow i {
  color: rgba(255, 255, 255, 0.5);
}

.portfolio-flow-stack {
  display: grid;
  grid-template-columns: 1fr;
  align-content: center;
  justify-items: center;
}

.portfolio-flow-stack span {
  width: min(100%, 260px);
}

.portfolio-meta {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 18px;
  color: rgba(255, 255, 255, 0.44);
  font-size: 0.72rem;
  font-weight: 650;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.portfolio-meta strong {
  color: rgba(255, 255, 255, 0.72);
  text-align: right;
}

.portfolio-meta a {
  color: inherit;
  text-decoration: none;
}

.portfolio-meta a:hover,
.portfolio-meta a:focus {
  color: var(--brand-blue);
}

.portfolio-card h3 {
  color: var(--white);
  font-size: clamp(1.16rem, 1.55vw, 1.5rem);
  font-weight: 650;
  line-height: 1.18;
  margin-bottom: 16px;
}

.testimonials-section {
  background:
    radial-gradient(circle at 18% 0%, rgba(255, 255, 255, 0.08), transparent 32%),
    radial-gradient(circle at 84% 80%, rgba(97, 242, 143, 0.055), transparent 30%),
    linear-gradient(180deg, #0c0c0e, #050505);
}

.testimonial-terminal {
  border: 1px solid var(--line);
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.025)), rgba(0, 0, 0, 0.42);
  box-shadow: 0 28px 90px rgba(0, 0, 0, 0.34);
}

.terminal-window-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 18px 22px;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
}

.terminal-window-bar span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.72);
}

.terminal-window-bar strong {
  margin-left: 10px;
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 0.78rem;
  font-weight: 600;
}

.testimonial-log {
  display: grid;
  gap: 0;
  padding: clamp(20px, 3vw, 34px);
}

.testimonial-line {
  padding: 24px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  font-family: ui-monospace, "SFMono-Regular", Consolas, "Liberation Mono", monospace;
}

.testimonial-line:first-child {
  padding-top: 0;
}

.testimonial-line:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.terminal-prompt {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
  color: #bdbdc4;
  font-size: clamp(0.74rem, 0.9vw, 0.84rem);
}

.prompt-symbol {
  color: var(--white);
  font-weight: 650;
}

.testimonial-line blockquote {
  margin: 0 0 14px;
  color: var(--white);
  font-size: clamp(0.96rem, 1.22vw, 1.12rem);
  font-weight: 500;
  line-height: 1.62;
  letter-spacing: 0.01em;
}

.testimonial-line p {
  margin: 0;
  color: rgba(255, 255, 255, 0.48);
  font-size: 0.74rem;
  font-weight: 650;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.testimonial-line p a {
  color: var(--brand-blue);
  text-decoration: none;
}

.testimonial-line p a:hover,
.testimonial-line p a:focus {
  color: var(--white);
}

.terminal-status {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid var(--line);
}

.terminal-status span {
  padding: 16px 18px;
  border-right: 1px solid var(--line);
  color: rgba(255, 255, 255, 0.7);
  font-family: ui-monospace, "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 0.74rem;
  font-weight: 500;
  letter-spacing: 0.01em;
}

.terminal-status em {
  color: rgba(255, 255, 255, 0.46);
  font-style: normal;
}

.terminal-status strong {
  font-weight: 500;
}

.status-trusted {
  color: #61f28f;
}

.status-blue {
  color: var(--brand-blue);
}

.terminal-status span:last-child {
  border-right: 0;
}

.showcase {
  min-height: 520px;
  overflow: hidden;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.11), transparent 38%), rgba(255, 255, 255, 0.04);
}

.browser-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 18px 22px;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
}

.browser-bar span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.72);
}

.browser-bar strong {
  margin-left: 10px;
  font-size: 0.82rem;
}

.code-stage {
  display: grid;
  align-items: center;
  min-height: 456px;
  padding: clamp(24px, 5vw, 72px);
}

pre {
  margin: 0;
  color: #a9a9b2;
  white-space: pre-wrap;
  font-size: clamp(0.82rem, 1.4vw, 1.36rem);
  line-height: 1.75;
}

.white {
  color: var(--white);
}

.muted {
  color: #777780;
}

.stack-list {
  min-height: 100%;
  padding: 18px;
}

.stack-item {
  display: grid;
  grid-template-columns: 68px 1fr;
  gap: 22px;
  padding: 28px 10px;
  border-bottom: 1px solid var(--line);
}

.stack-item:last-child {
  border-bottom: 0;
}

.stack-item > span,
.timeline-item > span {
  color: rgba(255, 255, 255, 0.42);
  font-weight: 650;
}

.timeline {
  position: relative;
  display: grid;
  gap: 18px;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 13px;
  top: 16px;
  bottom: 16px;
  width: 1px;
  background: linear-gradient(180deg, rgba(0, 144, 207, 0.62), var(--line));
}

.timeline-item {
  position: relative;
  padding: 6px 0 24px 54px;
}

.timeline-item::before {
  content: "";
  position: absolute;
  left: 6px;
  top: 12px;
  width: 15px;
  height: 15px;
  background: var(--brand-blue);
  box-shadow: 0 0 0 7px rgba(0, 144, 207, 0.12);
}

.timeline-item > span {
  display: inline-block;
  margin-bottom: 8px;
  text-transform: uppercase;
  font-size: 0.72rem;
  letter-spacing: 0.1em;
}

.contact-section {
  padding-top: clamp(40px, 7vw, 110px);
  background: linear-gradient(180deg, #111114, #050505 76%), #050505;
}

.contact-panel {
  display: grid;
  grid-template-columns: minmax(0, 0.88fr) minmax(320px, 1.12fr);
  gap: 34px;
  min-width: 0;
  padding: clamp(28px, 5vw, 70px);
  border: 1px solid var(--line);
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.035)), rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(20px);
}

.contact-copy h2 {
  max-width: 760px;
  font-size: clamp(1.9rem, 3.6vw, 4rem);
  font-weight: 650;
  line-height: 1.04;
  margin: 0 0 22px;
}

.contact-copy p {
  max-width: 560px;
  color: rgba(255, 255, 255, 0.66);
  font-size: 1rem;
  line-height: 1.7;
  margin-bottom: 30px;
}

.contact-link-groups {
  display: grid;
  gap: 22px;
}

.contact-link-group-social {
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.contact-link-heading {
  margin-bottom: 10px;
  color: rgba(255, 255, 255, 0.48);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  line-height: 1;
  text-transform: uppercase;
}

.contact-methods {
  display: grid;
  gap: 14px;
}

.contact-methods a {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  width: max-content;
  max-width: 100%;
  color: rgba(255, 255, 255, 0.78);
  text-decoration: none;
  font-weight: 600;
  overflow-wrap: anywhere;
}

.contact-methods a:hover,
.contact-methods a:focus {
  color: var(--brand-blue);
}

.contact-methods a:hover i,
.contact-methods a:focus i {
  border-color: rgba(0, 144, 207, 0.56);
}

.contact-methods i {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 1px solid var(--line);
  flex: 0 0 38px;
}

.contact-form {
  min-width: 0;
  padding: clamp(20px, 3vw, 36px);
  background: rgba(0, 0, 0, 0.36);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.contact-alert {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 22px;
  padding: 14px 46px 14px 16px;
  border-radius: 6px;
  color: rgba(255, 255, 255, 0.86);
  background: rgba(0, 144, 207, 0.1);
  border: 1px solid rgba(0, 144, 207, 0.34);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.22);
}

.contact-alert.alert-success {
  background: rgba(0, 144, 207, 0.12);
  border-color: rgba(0, 144, 207, 0.38);
}

.contact-alert.alert-danger {
  background: rgba(220, 53, 69, 0.12);
  border-color: rgba(220, 53, 69, 0.38);
}

.contact-alert i {
  color: var(--brand-blue);
  margin-top: 3px;
}

.contact-alert.alert-success i {
  color: var(--brand-blue);
}

.contact-alert.alert-danger i {
  color: #ff6b7a;
}

.contact-alert .btn-close {
  filter: invert(1) grayscale(1);
  opacity: 0.58;
}

.form-heading {
  margin-bottom: 24px;
}

.form-heading h3 {
  color: var(--white);
  font-size: 1.2rem;
  font-weight: 650;
  margin-bottom: 8px;
}

.form-heading p {
  color: rgba(255, 255, 255, 0.58);
  margin: 0;
}

.contact-form .form-label {
  color: rgba(255, 255, 255, 0.76);
  font-size: 0.72rem;
  font-weight: 650;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.contact-form .form-control,
.contact-form .form-select {
  min-height: 52px;
  border-radius: 4px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background-color: rgba(255, 255, 255, 0.07);
  color: var(--white);
  box-shadow: none;
}

.contact-form textarea.form-control {
  min-height: 156px;
  resize: vertical;
}

.contact-form .form-control::placeholder {
  color: rgba(255, 255, 255, 0.42);
}

.contact-form .form-control:focus,
.contact-form .form-select:focus {
  border-color: rgba(0, 144, 207, 0.72);
  background-color: rgba(0, 144, 207, 0.08);
  color: var(--white);
  box-shadow: 0 0 0 0.22rem rgba(0, 144, 207, 0.12);
}

.contact-form .form-select {
  --bs-form-select-bg-img: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23ffffff' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m2 5 6 6 6-6'/%3e%3c/svg%3e");
}

.contact-form .form-select option {
  color: #111;
  background: var(--white);
}

.captcha-field {
  display: grid;
  gap: 12px;
  min-width: 0;
  padding: 16px;
  border: 1px solid rgba(0, 144, 207, 0.24);
  border-radius: 6px;
  background:
    linear-gradient(135deg, rgba(0, 144, 207, 0.08), rgba(255, 255, 255, 0.035)),
    rgba(255, 255, 255, 0.04);
}

.captcha-label {
  color: rgba(255, 255, 255, 0.64);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  line-height: 1;
  text-transform: uppercase;
}

.captcha-field .g-recaptcha {
  max-width: 100%;
  transform-origin: left top;
}

.form-actions {
  display: flex;
  justify-content: stretch;
}

.form-actions .btn {
  width: 100%;
}

.contact-submit {
  position: relative;
  overflow: hidden;
}

.contact-submit.is-submitting {
  color: var(--brand-blue);
  pointer-events: none;
}

.contact-submit.is-submitting i {
  animation: submitPlane 780ms ease-in-out infinite;
}

.contact-submit.is-submitting::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(0, 144, 207, 0.18), transparent);
  transform: translateX(-100%);
  animation: submitSweep 1.1s ease-in-out infinite;
}

.site-footer {
  padding: 30px 0;
  border-top: 1px solid var(--line);
  color: rgba(255, 255, 255, 0.56);
  font-size: 0.9rem;
}

.reveal {
  opacity: 0;
  transform: translate3d(0, 36px, 0);
  transition:
    opacity 760ms ease,
    transform 760ms cubic-bezier(0.22, 1, 0.36, 1);
}

.reveal.is-visible {
  opacity: 1;
  transform: translate3d(0, 0, 0);
}

@keyframes marquee {
  from {
    transform: translate3d(0, 0, 0);
  }

  to {
    transform: translate3d(-50%, 0, 0);
  }
}

@keyframes submitPlane {
  0%, 100% {
    transform: translate3d(0, 0, 0) rotate(0deg);
  }

  50% {
    transform: translate3d(6px, -4px, 0) rotate(-8deg);
  }
}

@keyframes submitSweep {
  to {
    transform: translateX(100%);
  }
}

@media (max-width: 991.98px) {
  .jab-nav {
    background: rgba(5, 5, 5, 0.88);
    backdrop-filter: blur(18px);
  }

  .navbar-collapse {
    padding: 18px 0;
  }

  .hero-content {
    padding-top: 76px;
    padding-bottom: 30px;
  }

  .hero-row {
    min-height: auto;
    padding-top: 42px;
  }

  .split-copy {
    columns: 1;
  }

  .contact-panel {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .portfolio-head {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .portfolio-tabs,
  .portfolio-grid {
    grid-template-columns: 1fr;
  }

  .portfolio-tabs {
    width: min(100%, 560px);
  }

  .portfolio-card {
    padding: clamp(18px, 5vw, 28px);
  }

  .portfolio-media {
    aspect-ratio: 4 / 3;
  }

  .portfolio-media img {
    object-fit: contain;
  }

  .portfolio-meta {
    align-items: flex-start;
  }

  .terminal-status {
    grid-template-columns: 1fr;
  }

  .terminal-status span {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .terminal-status span:last-child {
    border-bottom: 0;
  }
}

@media (max-width: 360px) {
  .captcha-field .g-recaptcha {
    transform: scale(0.84);
  }
}

@media (max-width: 575.98px) {
  .brand-mark {
    gap: 9px;
  }

  .brand-logo-symbol {
    width: 28px;
  }

  .hero-title {
    font-size: clamp(2.7rem, 14vw, 4.1rem);
  }

  .hero-brand-line {
    font-size: clamp(1.05rem, 6vw, 1.55rem);
  }

  .hero-copy,
  .section-kicker,
  .split-copy {
    font-size: 1rem;
  }

  .service-card i {
    margin-bottom: 34px;
  }

  .contact-section {
    padding-top: 42px;
  }

  .contact-panel {
    padding: 18px;
    border-left: 0;
    border-right: 0;
    margin-left: calc(clamp(20px, 4vw, 72px) * -1);
    margin-right: calc(clamp(20px, 4vw, 72px) * -1);
  }

  .contact-copy h2 {
    font-size: clamp(2rem, 11vw, 3rem);
    line-height: 1.02;
  }

  .contact-copy p {
    font-size: 0.98rem;
    margin-bottom: 22px;
  }

  .contact-link-groups {
    gap: 18px;
  }

  .contact-link-group-social {
    padding-top: 18px;
  }

  .contact-methods {
    gap: 10px;
  }

  .contact-methods a {
    width: 100%;
    align-items: flex-start;
    gap: 10px;
    font-size: 0.94rem;
  }

  .contact-methods i {
    width: 34px;
    height: 34px;
    flex: 0 0 34px;
  }

  .contact-form {
    padding: 18px;
  }

  .form-heading {
    margin-bottom: 20px;
  }

  .contact-form .form-control,
  .contact-form .form-select {
    min-height: 48px;
  }

  .contact-form textarea.form-control {
    min-height: 132px;
  }

  .captcha-field {
    padding: 14px;
    overflow: hidden;
  }

  .captcha-field .g-recaptcha {
    transform: scale(0.92);
  }

  .portfolio-tab {
    justify-content: flex-start;
    min-height: 46px;
    padding: 10px;
  }

  .portfolio-media,
  .portfolio-visual,
  .portfolio-code,
  .portfolio-flow {
    min-height: 180px;
  }

  .portfolio-flow {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }

  .portfolio-flow span {
    width: 100%;
  }

  .portfolio-flow i {
    transform: rotate(90deg);
  }

  .portfolio-meta {
    display: grid;
    gap: 8px;
  }

  .portfolio-meta strong {
    text-align: left;
  }

  .portfolio-card h3 {
    font-size: 1.08rem;
  }

  .terminal-window-bar,
  .terminal-prompt,
  .terminal-status span {
    overflow-wrap: anywhere;
  }

  .stack-item {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .btn-lg {
    width: 100%;
  }

  .form-actions {
    justify-content: stretch;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 1ms !important;
    scroll-behavior: auto !important;
    transition-duration: 1ms !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}
