:root {
  color-scheme: light;
  --bg: #f7f9fb;
  --surface: #ffffff;
  --surface-soft: #edf4f2;
  --surface-strong: #0d1b2a;
  --text: #112033;
  --text-muted: #556574;
  --line: #dbe3e9;
  --accent: #10b6a6;
  --accent-strong: #087f78;
  --amber: #f2b84b;
  --green: #3fbf7f;
  --blue: #2f74d0;
  --shadow: 0 24px 70px rgba(21, 35, 50, 0.12);
  --shadow-soft: 0 16px 38px rgba(21, 35, 50, 0.08);
  --radius: 8px;
  --radius-sm: 6px;
  --radius-card: 18px;
  --container: min(1180px, calc(100% - 40px));
  --font: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #08111d;
  --surface: #111d2b;
  --surface-soft: #0d2530;
  --surface-strong: #06101c;
  --text: #eef5f8;
  --text-muted: #a9b8c5;
  --line: rgba(221, 232, 238, 0.16);
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.35);
  --shadow-soft: 0 16px 38px rgba(0, 0, 0, 0.24);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  line-height: 1.6;
  overflow-x: hidden;
  text-rendering: optimizeLegibility;
}

body.nav-open {
  overflow: hidden;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
}

button,
input,
textarea {
  font: inherit;
}

::selection {
  background: rgba(16, 182, 166, 0.24);
}

.skip-link {
  position: fixed;
  left: 16px;
  top: 12px;
  z-index: 100;
  transform: translateY(-140%);
  background: var(--surface);
  color: var(--text);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  box-shadow: var(--shadow-soft);
}

.skip-link:focus {
  transform: translateY(0);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.container {
  width: var(--container);
  margin: 0 auto;
}

.section {
  padding: 96px 0;
}

.site-header {
  position: fixed;
  inset: 16px 20px auto;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  padding: 12px 14px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: var(--radius);
  background: rgba(8, 17, 29, 0.74);
  color: #f8fbfd;
  box-shadow: 0 18px 60px rgba(0, 0, 0, 0.22);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  min-width: max-content;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  background: linear-gradient(135deg, var(--accent), var(--amber));
  color: #06101c;
  font-weight: 900;
}

.brand strong,
.brand small {
  display: block;
}

.brand strong {
  font-size: 0.98rem;
  line-height: 1.1;
  letter-spacing: 0;
}

.brand small {
  color: rgba(248, 251, 253, 0.72);
  font-size: 0.73rem;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 4px;
}

.site-nav a,
.theme-toggle {
  min-height: 40px;
  border: 0;
  border-radius: var(--radius-sm);
  background: transparent;
  color: rgba(248, 251, 253, 0.82);
  cursor: pointer;
  text-decoration: none;
  padding: 9px 12px;
  transition: background 180ms ease, color 180ms ease;
}

.site-nav a:hover,
.site-nav a:focus-visible,
.site-nav a.is-active,
.theme-toggle:hover,
.theme-toggle:focus-visible {
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
  outline: none;
}

.theme-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.theme-icon {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 2px solid currentColor;
  box-shadow: inset -5px -5px 0 currentColor;
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
  cursor: pointer;
  padding: 10px;
}

.menu-toggle span:not(.sr-only) {
  display: block;
  height: 2px;
  margin: 5px 0;
  background: currentColor;
}

.hero {
  position: relative;
  min-height: 100svh;
  display: grid;
  align-items: center;
  overflow: hidden;
  padding: 156px 0 74px;
  background: var(--surface-strong);
  color: #f8fbfd;
}

.hero-media,
.hero-overlay {
  position: absolute;
  inset: 0;
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-overlay {
  background:
    linear-gradient(90deg, rgba(5, 12, 20, 0.96) 0%, rgba(5, 12, 20, 0.82) 32%, rgba(5, 12, 20, 0.22) 69%, rgba(5, 12, 20, 0.04) 100%),
    linear-gradient(180deg, rgba(5, 12, 20, 0.3), rgba(5, 12, 20, 0.74));
}

.hero-content {
  position: relative;
  z-index: 1;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero h1,
.section-head h2,
.split-grid h2,
.contact-grid h2 {
  margin: 0;
  letter-spacing: 0;
  line-height: 1.02;
}

.hero h1 {
  max-width: 720px;
  font-size: clamp(3rem, 8vw, 6.75rem);
}

.hero-copy {
  max-width: 680px;
  margin: 24px 0 0;
  color: rgba(248, 251, 253, 0.8);
  font-size: clamp(1.05rem, 2vw, 1.25rem);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 34px 0 0;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  border-radius: 12px;
  padding: 12px 18px;
  font-weight: 800;
  text-decoration: none;
  transition: transform 180ms ease, background 180ms ease, border-color 180ms ease;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-2px);
  outline: none;
}

.button-primary {
  background: var(--accent);
  color: #04131a;
}

.button-primary:hover,
.button-primary:focus-visible {
  background: #34d0c0;
}

.button-secondary {
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: #ffffff;
}

.button-secondary:hover,
.button-secondary:focus-visible {
  border-color: rgba(255, 255, 255, 0.58);
  background: rgba(255, 255, 255, 0.08);
}

.hero-work-preview {
  display: none;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  max-width: 620px;
  margin-top: 20px;
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: var(--radius-card);
  background: rgba(8, 17, 29, 0.62);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.22);
}

.hero-work-preview span,
.hero-work-preview a {
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 850;
  text-transform: uppercase;
  text-decoration: none;
}

.hero-work-preview strong {
  display: block;
  margin-top: 4px;
  color: #ffffff;
  line-height: 1.25;
}

.hero-work-preview a {
  min-width: max-content;
}

.proof-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  max-width: 920px;
  margin: 70px 0 0;
  padding: 1px;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.16);
}

.proof-strip div {
  min-height: 108px;
  padding: 20px;
  background: rgba(8, 17, 29, 0.72);
}

.proof-strip dt {
  color: #ffffff;
  font-weight: 850;
}

.proof-strip dd {
  margin: 6px 0 0;
  color: rgba(248, 251, 253, 0.72);
}

.intro-band,
.industry-section {
  background: var(--surface);
}

.muted-section {
  background: var(--surface-soft);
}

.split-grid,
.contact-grid,
.skills-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 64px;
}

.split-grid h2,
.section-head h2,
.contact-grid h2 {
  font-size: clamp(2rem, 4vw, 4rem);
}

.copy-stack p,
.section-head p,
.contact-grid p {
  color: var(--text-muted);
  font-size: 1.04rem;
}

.copy-stack p:first-child {
  margin-top: 0;
}

.section-head {
  max-width: 760px;
  margin-bottom: 42px;
}

.section-head.compact {
  max-width: 680px;
}

.build-grid,
.benefit-grid,
.feedback-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.build-card,
.benefit-grid article,
.skill-groups article,
.feedback-grid article,
.contact-panel {
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  background: var(--surface);
  box-shadow: var(--shadow-soft);
}

.build-card {
  min-height: 340px;
  padding: 22px;
}

.card-icon {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  margin-bottom: 32px;
  border-radius: var(--radius-sm);
  background: color-mix(in srgb, var(--accent) 14%, transparent);
  color: var(--accent-strong);
  font-size: 0.78rem;
  font-weight: 900;
}

.build-card h3,
.project-card h3,
.benefit-grid h3,
.skill-groups h3 {
  margin: 0 0 14px;
  font-size: 1.15rem;
  line-height: 1.25;
}

.build-card p,
.project-body p,
.benefit-grid p,
.skill-groups p {
  margin: 10px 0 0;
  color: var(--text-muted);
}

.problem-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.problem-grid article {
  min-height: 265px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  background: var(--surface);
  box-shadow: var(--shadow-soft);
}

.problem-grid span {
  display: inline-flex;
  margin-bottom: 18px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--amber) 20%, transparent);
  color: #8b5f00;
  padding: 6px 10px;
  font-size: 0.76rem;
  font-weight: 900;
  text-transform: uppercase;
}

.problem-grid h3 {
  margin: 0 0 14px;
  font-size: 1.2rem;
  line-height: 1.25;
}

.problem-grid p {
  margin: 10px 0 0;
  color: var(--text-muted);
}

.problem-grid strong {
  color: var(--text);
}

.build-card strong,
.project-body strong {
  color: var(--text);
}

.timeline {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 0;
  padding: 0;
  margin: 46px 0 0;
  counter-reset: step;
  list-style: none;
}

.timeline li {
  position: relative;
  min-height: 154px;
  padding: 56px 12px 0 0;
  counter-increment: step;
}

.timeline li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: 0;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--surface);
  border: 1px solid var(--line);
  color: var(--accent-strong);
  font-weight: 900;
  z-index: 1;
}

.timeline li::after {
  content: "";
  position: absolute;
  left: 42px;
  right: 12px;
  top: 21px;
  height: 1px;
  background: var(--line);
}

.timeline li:last-child::after {
  display: none;
}

.timeline span {
  display: block;
  max-width: 140px;
  font-weight: 800;
  line-height: 1.3;
}

#projects .container {
  width: min(1500px, calc(100% - 40px));
}

#projects .section-head {
  max-width: 780px;
}

#projects .section-head h2 {
  font-size: clamp(2.35rem, 4.5vw, 4rem);
}

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

.project-card {
  position: relative;
  display: grid;
  grid-template-columns: minmax(180px, 38%) minmax(0, 1fr);
  min-height: 390px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: linear-gradient(180deg, var(--surface), color-mix(in srgb, var(--surface) 92%, var(--bg)));
  box-shadow: 0 22px 58px rgba(21, 35, 50, 0.1);
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.project-card:hover {
  transform: translateY(-4px);
  border-color: color-mix(in srgb, var(--accent) 38%, var(--line));
  box-shadow: 0 28px 80px rgba(21, 35, 50, 0.16);
}

.project-card:active {
  transform: scale(0.992);
}

.project-media {
  position: relative;
  display: grid;
  min-height: 100%;
  padding: 16px;
  overflow: hidden;
  border-right: 1px solid var(--line);
  background:
    linear-gradient(145deg, color-mix(in srgb, var(--accent) 12%, transparent), transparent 58%),
    var(--surface-soft);
}

.project-visual {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 260px;
  overflow: hidden;
  border: 1px solid color-mix(in srgb, var(--line) 82%, transparent);
  border-radius: 14px;
  background: #ffffff;
  box-shadow: 0 18px 38px rgba(21, 35, 50, 0.1);
}

.project-visual span {
  position: absolute;
  display: block;
}

.visual-sidebar {
  inset: 0 auto 0 0;
  width: 25%;
  background: linear-gradient(180deg, #064d3a, #083524);
}

.visual-sidebar::before,
.visual-sidebar::after {
  content: "";
  position: absolute;
  left: 22%;
  width: 54%;
  height: 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.38);
  box-shadow:
    0 28px 0 rgba(255, 255, 255, 0.24),
    0 56px 0 rgba(255, 255, 255, 0.22),
    0 84px 0 rgba(255, 255, 255, 0.2);
}

.visual-sidebar::before {
  top: 50px;
}

.visual-sidebar::after {
  bottom: 34px;
  opacity: 0.58;
}

.visual-search {
  left: 31%;
  right: 8%;
  top: 28px;
  height: 28px;
  border: 1px solid rgba(219, 227, 233, 0.9);
  border-radius: 999px;
  background: #ffffff;
  box-shadow: 0 10px 22px rgba(21, 35, 50, 0.08);
}

.project-media-map .project-visual {
  background:
    radial-gradient(circle at 66% 52%, rgba(28, 153, 104, 0.44) 0 7%, transparent 8%),
    radial-gradient(circle at 60% 45%, rgba(44, 116, 181, 0.42) 0 20%, transparent 21%),
    radial-gradient(circle at 68% 55%, rgba(31, 117, 86, 0.44) 0 18%, transparent 19%),
    radial-gradient(circle at 72% 42%, rgba(28, 153, 104, 0.3) 0 10%, transparent 11%),
    linear-gradient(145deg, #061827 0%, #092842 60%, #063929 100%);
}

.visual-globe {
  left: 33%;
  top: 28%;
  width: 50%;
  aspect-ratio: 1;
  border-radius: 50%;
  border: 1px solid rgba(119, 229, 170, 0.46);
  background:
    radial-gradient(circle at 42% 38%, rgba(119, 229, 170, 0.62), transparent 12%),
    radial-gradient(circle at 60% 58%, rgba(41, 171, 122, 0.56), transparent 16%),
    radial-gradient(circle at 44% 66%, rgba(35, 97, 164, 0.78), transparent 22%),
    rgba(8, 35, 64, 0.72);
  box-shadow: 0 0 42px rgba(36, 197, 129, 0.28);
}

.visual-route {
  height: 2px;
  border-radius: 999px;
  background: rgba(119, 229, 170, 0.8);
  transform-origin: left center;
}

.route-one {
  left: 47%;
  top: 47%;
  width: 30%;
  transform: rotate(-24deg);
}

.route-two {
  left: 48%;
  top: 58%;
  width: 25%;
  transform: rotate(19deg);
}

.visual-pin {
  width: 11px;
  height: 11px;
  border: 2px solid rgba(255, 255, 255, 0.88);
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 18px rgba(16, 185, 129, 0.72);
}

.pin-one {
  left: 44%;
  top: 45%;
}

.pin-two {
  left: 74%;
  top: 39%;
}

.pin-three {
  left: 69%;
  top: 62%;
}

.project-media-finance .project-visual {
  background: linear-gradient(180deg, #f8fafc, #eef5f2);
}

.visual-card {
  top: 26px;
  width: 19%;
  height: 52px;
  border: 1px solid rgba(219, 227, 233, 0.9);
  border-radius: 10px;
  background: #ffffff;
  box-shadow: 0 10px 20px rgba(21, 35, 50, 0.07);
}

.visual-card::before {
  content: "";
  position: absolute;
  left: 12px;
  top: 12px;
  width: 42%;
  height: 7px;
  border-radius: 999px;
  background: rgba(16, 182, 166, 0.2);
  box-shadow: 0 17px 0 rgba(17, 32, 51, 0.18);
}

.card-one {
  left: 31%;
}

.card-two {
  left: 53%;
}

.card-three {
  left: 75%;
}

.visual-chart {
  left: 31%;
  right: 8%;
  top: 100px;
  height: 36%;
  border: 1px solid rgba(219, 227, 233, 0.9);
  border-radius: 12px;
  background:
    linear-gradient(145deg, transparent 45%, rgba(16, 182, 166, 0.45) 46% 48%, transparent 49%),
    linear-gradient(25deg, transparent 48%, rgba(237, 86, 91, 0.42) 49% 51%, transparent 52%),
    repeating-linear-gradient(0deg, transparent 0 24%, rgba(219, 227, 233, 0.55) 25% 26%),
    #ffffff;
}

.visual-table {
  left: 31%;
  right: 8%;
  height: 12px;
  border-radius: 999px;
  background: rgba(17, 32, 51, 0.12);
}

.row-one {
  bottom: 58px;
}

.row-two {
  bottom: 34px;
}

.row-three {
  bottom: 10px;
}

.project-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 30px;
}

.project-body .project-category {
  display: inline-flex;
  margin: 0 0 14px;
  border-radius: 999px;
  background: rgba(223, 242, 235, 0.92);
  color: #06724d;
  padding: 8px 13px;
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.project-card h3 {
  margin-bottom: 18px;
  color: #112033;
  font-size: clamp(1.35rem, 1.7vw, 1.75rem);
}

.project-title-link {
  color: inherit;
  text-decoration: none;
}

.project-title-link:hover {
  color: #087f54;
}

.project-title-link:focus-visible,
.project-link:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--accent) 62%, white);
  outline-offset: 4px;
}

.stretched-link::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
}

.project-summary {
  color: #46576a;
  font-size: 1rem;
  line-height: 1.62;
}

.project-tech,
.tech-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.project-tech {
  margin: 20px 0 24px;
}

.project-tech span,
.tech-chips span {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  border: 1px solid rgba(208, 219, 226, 0.92);
  border-radius: 999px;
  background: rgba(248, 250, 252, 0.84);
  color: #112033;
  padding: 6px 11px;
  font-size: 0.82rem;
  font-weight: 800;
}

.project-link {
  position: relative;
  z-index: 2;
  display: inline-flex;
  align-self: flex-start;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  border-radius: 12px;
  background: #087f54;
  color: #ffffff;
  padding: 11px 16px;
  font-weight: 850;
  margin-top: auto;
  text-decoration: none;
  box-shadow: 0 12px 26px rgba(8, 127, 84, 0.22);
  transition: transform 180ms ease, background 180ms ease, box-shadow 180ms ease;
}

.project-link:hover,
.project-link:focus-visible {
  background: #066f49;
  box-shadow: 0 16px 32px rgba(8, 127, 84, 0.28);
  outline: none;
  transform: translateY(-2px);
}

.external-icon {
  display: inline-grid;
  place-items: center;
  width: 1.1em;
  height: 1.1em;
  font-size: 1.02em;
  line-height: 1;
}

.tech-chips {
  margin-top: 28px;
  padding-top: 26px;
  border-top: 1px solid var(--line);
}

.skills-layout {
  align-items: start;
}

.sticky-head {
  position: sticky;
  top: 124px;
}

.skill-groups {
  display: grid;
  gap: 14px;
}

.skill-groups article,
.benefit-grid article {
  padding: 24px;
}

.benefit-grid article {
  min-height: 190px;
}

.industry-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 34px;
}

.industry-list span {
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--bg);
  color: var(--text);
  padding: 11px 16px;
  font-weight: 800;
}

.feedback-grid article {
  margin: 0;
  padding: 26px;
}

.feedback-grid h3 {
  margin: 0 0 12px;
  font-size: 1.15rem;
  line-height: 1.25;
}

.feedback-grid p {
  margin: 0;
  color: var(--text);
  font-size: 1.05rem;
}

.feedback-action {
  margin-top: 22px;
}

.mobile-sticky-cta {
  display: none;
}

.contact-section {
  background: var(--surface-strong);
  color: #f8fbfd;
}

.contact-section .eyebrow,
.contact-section .contact-grid > div > p {
  color: rgba(248, 251, 253, 0.74);
}

.contact-section .eyebrow {
  color: var(--accent);
}

.contact-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  padding: 24px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.06);
  box-shadow: var(--shadow);
}

.form-row {
  display: grid;
  gap: 8px;
}

.form-row.full,
.submit-button,
.form-status {
  grid-column: 1 / -1;
}

.form-row label {
  color: #ffffff;
  font-size: 0.92rem;
  font-weight: 800;
}

.form-row label span {
  color: rgba(248, 251, 253, 0.6);
  font-weight: 700;
}

.form-row input,
.form-row textarea {
  width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.92);
  color: #06101c;
  padding: 13px 14px;
  outline: none;
  transition: border-color 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.form-row textarea {
  min-height: 168px;
  resize: vertical;
}

.form-row input:focus,
.form-row textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 4px rgba(16, 182, 166, 0.2);
  background: #ffffff;
}

.form-row input[aria-invalid="true"],
.form-row textarea[aria-invalid="true"] {
  border-color: #f59d9d;
}

.field-error {
  min-height: 20px;
  margin: 0;
  color: #ffd0d0;
  font-size: 0.88rem;
}

.spam-field {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.submit-button {
  justify-self: start;
  border: 0;
  cursor: pointer;
}

.submit-button:disabled {
  cursor: wait;
  opacity: 0.7;
  transform: none;
}

.form-status {
  min-height: 24px;
  margin: 0;
  color: rgba(248, 251, 253, 0.8);
  font-weight: 750;
}

.form-status.success {
  color: #9ef3cd;
}

.form-status.error {
  color: #ffd0d0;
}

.site-footer {
  background: #06101c;
  color: #f8fbfd;
  padding: 28px 0;
}

.footer-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.footer-content p {
  color: rgba(248, 251, 253, 0.66);
  margin: 0;
}

.js-enabled [data-reveal] {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 600ms ease, transform 600ms ease;
}

.js-enabled [data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}

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

  .js-enabled [data-reveal] {
    opacity: 1;
    transform: none;
  }
}

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

  .project-card {
    grid-template-columns: minmax(220px, 36%) minmax(0, 1fr);
    min-height: 330px;
  }

  .project-body {
    padding: 28px;
  }
}

@media (max-width: 1060px) {
  .build-grid,
  .problem-grid,
  .benefit-grid,
  .feedback-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .project-grid {
    grid-template-columns: 1fr;
  }

  .project-card {
    grid-template-columns: minmax(220px, 36%) minmax(0, 1fr);
    min-height: 330px;
  }

  .project-body {
    padding: 28px;
  }

  .project-link {
    min-height: 52px;
  }

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

  .timeline li {
    min-height: auto;
    padding: 0 0 0 58px;
  }

  .timeline li::after {
    left: 21px;
    top: 42px;
    bottom: -20px;
    width: 1px;
    height: auto;
  }
}

@media (max-width: 820px) {
  body {
    padding-bottom: 86px;
  }

  .site-header {
    inset: 10px 12px auto;
    width: calc(100% - 24px);
    padding: 10px;
    border-radius: 16px;
  }

  .menu-toggle {
    display: block;
    width: 48px;
    height: 48px;
    border-radius: 12px;
  }

  .site-nav {
    position: fixed;
    inset: 74px 12px auto;
    display: grid;
    gap: 8px;
    padding: 12px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: var(--radius);
    background: rgba(8, 17, 29, 0.96);
    box-shadow: var(--shadow);
    opacity: 0;
    pointer-events: none;
    transform: translateY(-8px);
    transition: opacity 180ms ease, transform 180ms ease;
  }

  .site-nav.is-open {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }

  .site-nav a,
  .theme-toggle {
    justify-content: flex-start;
    width: 100%;
    min-height: 52px;
    border-radius: 12px;
    font-size: 1rem;
  }

  .hero {
    min-height: 100svh;
    align-items: start;
    padding: 104px 0 28px;
  }

  .hero-overlay {
    background:
      linear-gradient(180deg, rgba(5, 12, 20, 0.92) 0%, rgba(5, 12, 20, 0.78) 48%, rgba(5, 12, 20, 0.86) 100%);
  }

  .proof-strip,
  .split-grid,
  .contact-grid,
  .skills-layout {
    grid-template-columns: 1fr;
  }

  .sticky-head {
    position: static;
  }

  .hero-work-preview {
    display: flex;
  }

  .build-grid {
    display: flex;
    grid-template-columns: none;
    gap: 14px;
    margin-inline: 0;
    padding: 2px 0 14px;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scroll-padding-inline: 0;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
  }

  .build-card {
    flex: 0 0 min(82vw, 340px);
    min-height: 330px;
    scroll-snap-align: start;
  }

  .mobile-sticky-cta {
    position: fixed;
    left: 12px;
    right: 12px;
    bottom: 12px;
    z-index: 60;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 10px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 18px;
    background: rgba(8, 17, 29, 0.92);
    color: #ffffff;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.34);
    backdrop-filter: blur(18px);
  }

  .mobile-sticky-cta span {
    padding-left: 6px;
    font-weight: 850;
    line-height: 1.1;
  }

  .mobile-sticky-cta a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    border-radius: 14px;
    background: var(--accent);
    color: #04131a;
    padding: 10px 16px;
    font-weight: 900;
    text-decoration: none;
    white-space: nowrap;
  }
}

@media (max-width: 640px) {
  :root {
    --container: min(100% - 28px, 1180px);
  }

  .section {
    padding: 58px 0;
  }

  .brand small,
  .theme-label {
    display: none;
  }

  .hero h1 {
    font-size: clamp(2.15rem, 10vw, 2.35rem);
    line-height: 1.04;
  }

  .hero-copy {
    margin-top: 16px;
    font-size: 1.05rem;
    line-height: 1.55;
  }

  .hero-actions,
  .button {
    width: 100%;
  }

  .hero-actions {
    gap: 10px;
    margin-top: 22px;
  }

  .button {
    min-height: 56px;
    border-radius: 16px;
    font-size: 1rem;
  }

  .proof-strip {
    display: flex;
    gap: 10px;
    margin-top: 16px;
    padding: 0 0 10px;
    overflow-x: auto;
    background: transparent;
    scroll-snap-type: x mandatory;
  }

  .proof-strip div {
    flex: 0 0 78%;
    min-height: 82px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 16px;
    scroll-snap-align: start;
  }

  .hero-work-preview {
    margin-top: 14px;
    padding: 14px;
  }

  .hero-work-preview a {
    display: none;
  }

  .section-head {
    margin-bottom: 26px;
  }

  .section-head h2,
  .split-grid h2,
  .contact-grid h2 {
    font-size: clamp(2rem, 9vw, 2.25rem);
    line-height: 1.08;
  }

  .section-head p,
  .copy-stack p,
  .contact-grid p,
  .problem-grid p,
  .build-card p,
  .project-body p {
    font-size: 1.04rem;
    line-height: 1.58;
  }

  .proof-strip,
  .problem-grid,
  .benefit-grid,
  .feedback-grid,
  .project-grid,
  .timeline {
    grid-template-columns: 1fr;
  }

  .build-card {
    min-height: auto;
  }

  .problem-grid article {
    min-height: auto;
    padding: 20px;
  }

  .problem-grid h3,
  .project-card h3,
  .build-card h3,
  .feedback-grid h3 {
    font-size: 1.28rem;
  }

  .card-icon {
    margin-bottom: 28px;
  }

  .project-card {
    grid-template-columns: 1fr;
    min-height: auto;
    border-radius: 20px;
  }

  .project-media {
    min-height: auto;
    padding: 14px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .project-visual {
    min-height: clamp(180px, 52vw, 220px);
  }

  .project-card:hover {
    transform: none;
  }

  .project-body,
  .skill-groups article,
  .benefit-grid article,
  .feedback-grid article {
    padding: 20px;
  }

  .project-body {
    padding: 20px;
  }

  #projects .container {
    width: min(100% - 28px, 1180px);
  }

  #projects .section-head h2 {
    font-size: clamp(2.05rem, 10vw, 2.4rem);
  }

  .project-link {
    align-self: stretch;
    width: 100%;
    min-height: 56px;
    border-radius: 16px;
  }

  .tech-chips {
    margin-top: 20px;
  }

  .tech-chips span {
    min-height: 38px;
    font-size: 0.9rem;
  }

  .footer-content {
    align-items: flex-start;
    flex-direction: column;
  }

  .contact-form {
    grid-template-columns: 1fr;
    padding: 18px;
  }

  .submit-button {
    justify-self: stretch;
  }
}
