:root {
  color-scheme: dark;
  --bg: #050505;
  --bg-soft: #0a0b0d;
  --panel: rgba(255, 255, 255, 0.055);
  --panel-strong: rgba(255, 255, 255, 0.09);
  --text: #f5f5f2;
  --muted: #a6a6a1;
  --line: rgba(255, 255, 255, 0.13);
  --accent: #d8ff6f;
  --accent-blue: #8fb8ff;
  --max: 1160px;
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  background:
    radial-gradient(circle at 70% 15%, rgba(143, 184, 255, 0.16), transparent 31rem),
    radial-gradient(circle at 12% 70%, rgba(216, 255, 111, 0.1), transparent 30rem),
    var(--bg);
  color: var(--text);
  overflow-x: hidden;
}

body.project-open {
  overflow: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -3;
  background:
    linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: linear-gradient(to bottom, black, transparent 82%);
}

a {
  color: inherit;
  text-decoration: none;
}

.noise {
  position: fixed;
  inset: 0;
  z-index: 20;
  pointer-events: none;
  opacity: 0.12;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.45'/%3E%3C/svg%3E");
}

.linkedin-float {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 24;
  display: grid;
  width: 58px;
  height: 58px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 50%;
  background: linear-gradient(145deg, #9fdcff, #40a9ff);
  box-shadow:
    0 18px 50px rgba(64, 169, 255, 0.28),
    0 0 0 7px rgba(64, 169, 255, 0.08);
  color: #031019;
  transition:
    transform 180ms ease,
    box-shadow 180ms ease;
}

.linkedin-float:hover,
.linkedin-float:focus-visible {
  box-shadow:
    0 22px 64px rgba(64, 169, 255, 0.38),
    0 0 0 9px rgba(64, 169, 255, 0.1);
  transform: translateY(-3px);
}

.linkedin-float svg {
  width: 29px;
  height: 29px;
  fill: currentColor;
}

.site-nav {
  position: fixed;
  top: 18px;
  left: 50%;
  z-index: 10;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 28px;
  width: min(calc(100% - 32px), var(--max));
  padding: 10px 12px 10px 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(7, 8, 10, 0.68);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.32);
  backdrop-filter: blur(24px);
  transform: translateX(-50%);
}

.brand,
.site-nav nav,
.nav-cta {
  display: flex;
  align-items: center;
}

.brand {
  gap: 10px;
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.brand span {
  display: grid;
  width: 32px;
  height: 32px;
  place-items: center;
  border-radius: 50%;
  background: linear-gradient(145deg, #f7f7ef, #9fa8b8);
  color: #06070a;
  font-size: 0.74rem;
}

.site-nav nav {
  justify-content: center;
  gap: 22px;
  color: var(--muted);
  font-size: 0.82rem;
}

.site-nav nav a:hover,
.text-link:hover {
  color: var(--text);
}

.nav-cta {
  min-height: 36px;
  padding: 0 16px;
  border-radius: 999px;
  background: var(--text);
  color: #050505;
  font-size: 0.82rem;
  font-weight: 800;
}

.hero-section {
  position: relative;
  display: grid;
  min-height: 100svh;
  overflow: hidden;
  padding: 128px max(24px, calc((100vw - var(--max)) / 2)) 64px;
}

#hero-canvas,
.canvas-fallback {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

#hero-canvas {
  z-index: -1;
}

.canvas-fallback {
  z-index: -2;
  display: grid;
  place-items: center;
  opacity: 0;
  transition: opacity 240ms ease;
}

.canvas-fallback.is-visible {
  opacity: 1;
}

.fallback-avatar {
  width: min(58vw, 520px);
  aspect-ratio: 1;
  border-radius: 42% 42% 48% 48%;
  background:
    radial-gradient(circle at 50% 22%, #1d1411 0 18%, transparent 19%),
    radial-gradient(circle at 50% 43%, #9b674e 0 19%, transparent 20%),
    radial-gradient(circle at 50% 75%, #111827 0 28%, transparent 29%);
  filter: drop-shadow(0 0 90px rgba(143, 184, 255, 0.34));
}

.hero-copy {
  align-self: end;
  width: min(690px, 100%);
  padding-bottom: 8vh;
}

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

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 780px;
  margin-bottom: 22px;
  font-size: clamp(3.2rem, 7vw, 6.9rem);
  line-height: 0.9;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 18px;
  font-size: clamp(2.2rem, 4.6vw, 4.7rem);
  line-height: 0.96;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 12px;
  font-size: 1.25rem;
  line-height: 1.1;
}

.hero-text,
.section-heading p,
.contact-section p,
.orbital-card p,
.project-card p,
.blog-list p,
.service-grid p {
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.7;
}

.hero-text {
  max-width: 620px;
  font-size: 1.12rem;
}

.hero-actions,
.hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 22px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-weight: 800;
  cursor: pointer;
  font: inherit;
}

.button.primary {
  background: var(--text);
  color: #050505;
}

.form-submit {
  width: 100%;
}

.button.secondary {
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.045);
  color: var(--text);
}

.hero-stats {
  gap: 22px;
  color: var(--muted);
  font-size: 0.88rem;
}

.hero-stats strong {
  display: block;
  color: var(--text);
  font-size: 1rem;
}

.scroll-cue {
  position: absolute;
  right: max(24px, calc((100vw - var(--max)) / 2));
  bottom: 34px;
  color: var(--muted);
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  writing-mode: vertical-rl;
}

.section,
.contact-section {
  width: min(calc(100% - 40px), var(--max));
  margin: 0 auto;
  padding: 120px 0;
}

.section-heading {
  max-width: 820px;
  margin-bottom: 42px;
}

.section-heading.split {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 28px;
  max-width: none;
}

.text-link {
  flex: 0 0 auto;
  border: 0;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font: inherit;
  font-weight: 800;
  padding: 0;
}

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

.service-grid article,
.project-card,
.blog-list article,
.contact-form,
.orbital-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: linear-gradient(145deg, var(--panel-strong), rgba(255, 255, 255, 0.025));
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.18);
  backdrop-filter: blur(18px);
}

.service-grid article {
  min-height: 260px;
  padding: 26px;
}

.service-grid span {
  display: inline-flex;
  margin-bottom: 62px;
  color: var(--accent-blue);
  font-size: 0.82rem;
  font-weight: 900;
}

.sticky-story {
  min-height: 170svh;
  padding: 0 20px;
}

.story-stage {
  position: sticky;
  top: 0;
  display: grid;
  align-items: center;
  width: min(100%, var(--max));
  min-height: 100svh;
  margin: 0 auto;
}

.orbital-card {
  width: min(560px, 100%);
  padding: 34px;
}

.story-steps {
  position: absolute;
  right: 0;
  display: grid;
  gap: 12px;
}

.story-steps span {
  padding: 12px 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  color: var(--muted);
  font-weight: 800;
}

.portfolio-grid {
  align-items: stretch;
}

.project-card {
  display: grid;
  gap: 22px;
  min-height: 410px;
  padding: 14px;
  color: inherit;
  cursor: pointer;
  outline: none;
  position: relative;
  transition:
    border-color 180ms ease,
    box-shadow 180ms ease,
    transform 180ms ease;
}

.project-card::after {
  content: "Abrir caso";
  position: absolute;
  right: 18px;
  bottom: 18px;
  color: rgba(245, 245, 242, 0.46);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.project-card:hover,
.project-card:focus-visible {
  border-color: rgba(216, 255, 111, 0.5);
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.26), 0 0 0 1px rgba(216, 255, 111, 0.08);
  transform: translateY(-4px);
}

.project-card.featured {
  grid-column: span 2;
}

.project-visual {
  display: grid;
  min-height: 220px;
  place-items: end start;
  overflow: hidden;
  padding: 18px;
  border-radius: 6px;
  background:
    linear-gradient(135deg, rgba(216, 255, 111, 0.2), transparent 48%),
    radial-gradient(circle at 75% 30%, rgba(143, 184, 255, 0.36), transparent 34%),
    #0b0d11;
}

.project-visual span,
.tag {
  color: var(--accent);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.project-card > div:last-child {
  padding: 0 10px 10px;
}

.project-expand-layer {
  position: fixed;
  inset: 0;
  z-index: 30;
  pointer-events: none;
}

.project-expand-layer.is-active {
  pointer-events: auto;
}

.project-expand-layer::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0);
  backdrop-filter: blur(0);
  transition:
    background 260ms ease,
    backdrop-filter 260ms ease;
}

.project-expand-layer.is-active::before {
  background: rgba(0, 0, 0, 0.52);
  backdrop-filter: blur(10px);
}

.project-expander {
  position: fixed;
  z-index: 31;
  display: grid;
  gap: 22px;
  overflow: hidden;
  border: 1px solid rgba(216, 255, 111, 0.32);
  border-radius: 8px;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.035));
  box-shadow: 0 40px 120px rgba(0, 0, 0, 0.44);
  opacity: 0;
  pointer-events: none;
  transition:
    top 420ms cubic-bezier(0.22, 1, 0.36, 1),
    right 420ms cubic-bezier(0.22, 1, 0.36, 1),
    bottom 420ms cubic-bezier(0.22, 1, 0.36, 1),
    left 420ms cubic-bezier(0.22, 1, 0.36, 1),
    width 420ms cubic-bezier(0.22, 1, 0.36, 1),
    height 420ms cubic-bezier(0.22, 1, 0.36, 1),
    border-radius 420ms cubic-bezier(0.22, 1, 0.36, 1),
    opacity 140ms ease;
}

.project-expander.is-visible {
  opacity: 1;
}

.project-expander.is-corner {
  top: 18px !important;
  right: 18px !important;
  left: auto !important;
  width: min(360px, calc(100vw - 36px)) !important;
  height: 245px !important;
}

.project-expander.is-full {
  top: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  left: 0 !important;
  width: 100vw !important;
  height: 100svh !important;
  border-radius: 0;
}

.project-modal {
  position: fixed;
  inset: 0;
  z-index: 32;
  display: grid;
  grid-template-rows: auto 1fr;
  overflow: hidden;
  background:
    radial-gradient(circle at 76% 18%, rgba(143, 184, 255, 0.2), transparent 28rem),
    radial-gradient(circle at 18% 78%, rgba(216, 255, 111, 0.12), transparent 26rem),
    #050505;
  opacity: 0;
  pointer-events: none;
  transform: scale(0.985);
  transition:
    opacity 260ms ease,
    transform 260ms ease;
}

.project-expand-layer.show-modal .project-modal {
  opacity: 1;
  pointer-events: auto;
  transform: scale(1);
}

.project-close {
  justify-self: end;
  margin: 22px 24px 0 0;
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--text);
  cursor: pointer;
  font: inherit;
  font-size: 0.82rem;
  font-weight: 900;
  padding: 0 16px;
  backdrop-filter: blur(18px);
}

.project-loading {
  align-self: center;
  justify-self: center;
  display: none;
  align-items: center;
  gap: 12px;
  color: var(--muted);
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.project-expand-layer.is-loading .project-loading {
  display: inline-flex;
}

.project-loading span {
  width: 18px;
  height: 18px;
  border: 2px solid rgba(255, 255, 255, 0.18);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: project-spin 820ms linear infinite;
}

@keyframes project-spin {
  to {
    transform: rotate(360deg);
  }
}

.project-detail {
  display: none;
  overflow-y: auto;
  min-height: 0;
  padding: 24px max(20px, calc((100vw - var(--max)) / 2)) 80px;
  overscroll-behavior: contain;
}

.project-expand-layer.has-detail .project-detail {
  display: block;
}

.project-detail-shell {
  display: grid;
  gap: 18px;
}

.project-detail-hero,
.project-detail-section,
.project-metric,
.project-shot {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: linear-gradient(145deg, var(--panel-strong), rgba(255, 255, 255, 0.025));
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.18);
  backdrop-filter: blur(18px);
}

.project-detail-hero {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 18px;
  min-height: min(680px, calc(100svh - 116px));
  padding: 18px;
}

.project-detail-copy {
  align-self: end;
  padding: clamp(18px, 4vw, 46px);
}

.project-detail-copy h2 {
  max-width: 820px;
}

.project-detail-copy p {
  color: var(--muted);
  font-size: 1.06rem;
  line-height: 1.75;
}

.project-detail-visual {
  display: grid;
  align-content: end;
  overflow: hidden;
  min-height: 360px;
  padding: 22px;
  border-radius: 6px;
  background:
    linear-gradient(135deg, rgba(216, 255, 111, 0.2), transparent 48%),
    radial-gradient(circle at 70% 28%, rgba(143, 184, 255, 0.42), transparent 34%),
    linear-gradient(165deg, #111722, #060709 72%);
}

.project-detail-visual span {
  color: var(--accent);
  font-size: clamp(3rem, 9vw, 7rem);
  font-weight: 900;
  line-height: 0.86;
  letter-spacing: 0;
}

.project-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}

.project-meta span {
  padding: 9px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 900;
}

.project-detail-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 18px;
}

.project-detail-section {
  padding: clamp(22px, 4vw, 42px);
}

.project-detail-section p,
.project-detail-section li {
  color: var(--muted);
  line-height: 1.75;
}

.project-detail-section ul {
  display: grid;
  gap: 12px;
  margin: 18px 0 0;
  padding-left: 18px;
}

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

.project-metric {
  min-height: 150px;
  padding: 22px;
}

.project-metric strong {
  display: block;
  margin-bottom: 12px;
  color: var(--text);
  font-size: clamp(2rem, 4vw, 3.8rem);
  line-height: 0.9;
}

.project-metric span {
  color: var(--muted);
  font-weight: 800;
}

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

.project-shot {
  min-height: 310px;
  padding: 18px;
}

.project-shot div {
  display: grid;
  height: 100%;
  min-height: 250px;
  place-items: end start;
  padding: 20px;
  border-radius: 6px;
  background:
    linear-gradient(135deg, rgba(245, 245, 242, 0.1), transparent),
    radial-gradient(circle at 82% 22%, rgba(216, 255, 111, 0.22), transparent 32%),
    #0a0c10;
}

.project-shot span {
  color: rgba(245, 245, 242, 0.72);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.blog-list {
  display: grid;
  gap: 12px;
}

.blog-list article {
  display: grid;
  grid-template-columns: 150px 1fr 1.1fr;
  gap: 24px;
  align-items: start;
  padding: 24px;
  cursor: pointer;
  outline: none;
  transition:
    border-color 180ms ease,
    background 180ms ease,
    transform 180ms ease;
}

.blog-list article:hover,
.blog-list article:focus-visible {
  border-color: rgba(216, 255, 111, 0.5);
  background: rgba(255, 255, 255, 0.07);
  transform: translateY(-2px);
}

.blog-list time {
  color: var(--accent-blue);
  font-size: 0.82rem;
  font-weight: 900;
}

.blog-expand-layer {
  position: fixed;
  inset: 0;
  z-index: 30;
  pointer-events: none;
}

.blog-expand-layer.is-active {
  pointer-events: auto;
}

.blog-expand-layer::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0);
  backdrop-filter: blur(0);
  transition:
    background 260ms ease,
    backdrop-filter 260ms ease;
}

.blog-expand-layer.is-active::before {
  background: rgba(0, 0, 0, 0.52);
  backdrop-filter: blur(10px);
}

.blog-expander {
  position: fixed;
  left: 50%;
  bottom: 22px;
  z-index: 31;
  display: grid;
  width: min(420px, calc(100vw - 40px));
  height: 76px;
  place-items: center;
  border: 1px solid rgba(216, 255, 111, 0.34);
  border-radius: 999px;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.035));
  box-shadow: 0 40px 120px rgba(0, 0, 0, 0.44);
  color: var(--accent);
  font-size: 0.74rem;
  font-weight: 900;
  letter-spacing: 0.18em;
  opacity: 0;
  pointer-events: none;
  text-transform: uppercase;
  transform: translateX(-50%);
  transition:
    inset 560ms cubic-bezier(0.22, 1, 0.36, 1),
    width 560ms cubic-bezier(0.22, 1, 0.36, 1),
    height 560ms cubic-bezier(0.22, 1, 0.36, 1),
    border-radius 560ms cubic-bezier(0.22, 1, 0.36, 1),
    opacity 140ms ease,
    transform 560ms cubic-bezier(0.22, 1, 0.36, 1);
}

.blog-expander.is-visible {
  opacity: 1;
}

.blog-expander.is-full {
  inset: 0 !important;
  width: 100vw !important;
  height: 100svh !important;
  border-radius: 0;
  transform: none;
}

.blog-modal {
  position: fixed;
  inset: 0;
  z-index: 32;
  display: grid;
  grid-template-rows: auto 1fr;
  overflow: hidden;
  background:
    radial-gradient(circle at 72% 14%, rgba(143, 184, 255, 0.2), transparent 28rem),
    radial-gradient(circle at 14% 80%, rgba(216, 255, 111, 0.12), transparent 26rem),
    #050505;
  opacity: 0;
  pointer-events: none;
  transform: translateY(14px);
  transition:
    opacity 260ms ease,
    transform 260ms ease;
}

.blog-expand-layer.show-modal .blog-modal {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.blog-close {
  justify-self: end;
  margin: 22px 24px 0 0;
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--text);
  cursor: pointer;
  font: inherit;
  font-size: 0.82rem;
  font-weight: 900;
  padding: 0 16px;
  backdrop-filter: blur(18px);
}

.blog-modal-shell {
  display: grid;
  grid-template-columns: 330px 1fr;
  gap: 18px;
  min-height: 0;
  padding: 24px max(20px, calc((100vw - var(--max)) / 2)) 80px;
}

.blog-modal-nav,
.blog-modal-content {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: linear-gradient(145deg, var(--panel-strong), rgba(255, 255, 255, 0.025));
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.18);
  backdrop-filter: blur(18px);
}

.blog-modal-nav {
  display: grid;
  align-content: start;
  gap: 10px;
  overflow-y: auto;
  padding: 14px;
}

.blog-nav-item {
  display: grid;
  gap: 6px;
  width: 100%;
  border: 1px solid transparent;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.035);
  color: var(--text);
  cursor: pointer;
  font: inherit;
  padding: 14px;
  text-align: left;
}

.blog-nav-item:hover,
.blog-nav-item.is-active {
  border-color: rgba(216, 255, 111, 0.42);
  background: rgba(255, 255, 255, 0.075);
}

.blog-nav-item time {
  color: var(--accent-blue);
  font-size: 0.76rem;
  font-weight: 900;
}

.blog-nav-item span {
  color: var(--text);
  font-weight: 900;
  line-height: 1.15;
}

.blog-modal-content {
  overflow-y: auto;
  min-height: 0;
  padding: clamp(24px, 5vw, 58px);
}

.blog-modal-content .eyebrow {
  color: var(--accent-blue);
}

.blog-modal-content h2 {
  max-width: 880px;
}

.blog-modal-content p,
.blog-modal-content li {
  max-width: 760px;
  color: var(--muted);
  font-size: 1.02rem;
  line-height: 1.8;
}

.blog-modal-content ul {
  display: grid;
  gap: 12px;
  margin: 20px 0 30px;
  padding-left: 18px;
}

.blog-content-block {
  margin-top: 34px;
  padding-top: 26px;
  border-top: 1px solid var(--line);
}

.download-panel {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 34px;
  align-items: end;
  padding: clamp(24px, 5vw, 48px);
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    radial-gradient(circle at 82% 20%, rgba(216, 255, 111, 0.14), transparent 26rem),
    linear-gradient(145deg, var(--panel-strong), rgba(255, 255, 255, 0.025));
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.18);
  backdrop-filter: blur(18px);
}

.download-panel p {
  max-width: 720px;
  color: var(--muted);
  line-height: 1.7;
}

.download-actions {
  display: grid;
  gap: 12px;
}

.contact-section {
  display: grid;
  grid-template-columns: 1fr 420px;
  gap: 56px;
  align-items: start;
  padding-bottom: 80px;
}

.contact-links {
  display: grid;
  gap: 10px;
  margin-top: 28px;
}

.contact-links a {
  display: grid;
  gap: 4px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.045);
  color: var(--text);
  line-height: 1.25;
  transition:
    border-color 180ms ease,
    background 180ms ease;
}

.contact-links a:hover {
  border-color: rgba(216, 255, 111, 0.5);
  background: rgba(255, 255, 255, 0.07);
}

.contact-links span {
  color: var(--accent);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.contact-form {
  display: grid;
  gap: 16px;
  padding: 20px;
}

.contact-form label {
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 800;
}

input,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.24);
  color: var(--text);
  font: inherit;
  outline: none;
  padding: 13px 14px;
}

input:focus,
textarea:focus {
  border-color: rgba(216, 255, 111, 0.65);
}

textarea {
  resize: vertical;
}

@media (max-width: 860px) {
  .site-nav {
    grid-template-columns: 1fr auto;
  }

  .site-nav nav {
    display: none;
  }

  .hero-section {
    padding-top: 108px;
  }

  .hero-copy {
    padding-bottom: 12vh;
  }

  h1 {
    font-size: clamp(3rem, 16vw, 5rem);
  }

  .service-grid,
  .portfolio-grid,
  .download-panel,
  .contact-section {
    grid-template-columns: 1fr;
  }

  .section-heading.split {
    display: grid;
    align-items: start;
  }

  .project-card.featured {
    grid-column: auto;
  }

  .project-detail-hero,
  .project-detail-grid,
  .project-metrics,
  .project-shots,
  .blog-modal-shell {
    grid-template-columns: 1fr;
  }

  .blog-modal-shell {
    grid-template-rows: auto 1fr;
  }

  .blog-modal-nav {
    grid-auto-flow: column;
    grid-auto-columns: minmax(220px, 1fr);
    overflow-x: auto;
    overflow-y: hidden;
  }

  .project-detail-hero {
    min-height: auto;
  }

  .story-steps {
    position: static;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-top: 20px;
  }

  .blog-list article {
    grid-template-columns: 1fr;
    gap: 8px;
  }
}

@media (max-width: 560px) {
  .site-nav {
    top: 10px;
    width: min(calc(100% - 20px), var(--max));
  }

  .brand {
    font-size: 0;
  }

  .brand span {
    font-size: 0.72rem;
  }

  .nav-cta {
    padding: 0 12px;
  }

  .hero-section {
    min-height: 112svh;
    padding-inline: 18px;
  }

  .hero-copy {
    align-self: end;
  }

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

  .section,
  .contact-section {
    width: min(calc(100% - 28px), var(--max));
    padding: 82px 0;
  }

  .service-grid article {
    min-height: auto;
  }

  .service-grid span {
    margin-bottom: 36px;
  }

  .scroll-cue {
    display: none;
  }

  .linkedin-float {
    right: 14px;
    bottom: 14px;
    width: 52px;
    height: 52px;
  }

  .linkedin-float svg {
    width: 26px;
    height: 26px;
  }

  .project-expander.is-corner {
    top: 10px !important;
    right: 10px !important;
    width: min(300px, calc(100vw - 20px)) !important;
    height: 210px !important;
  }

  .project-close {
    margin: 12px 12px 0 0;
  }

  .blog-close {
    margin: 12px 12px 0 0;
  }

  .blog-modal-shell {
    padding: 14px 14px 64px;
  }

  .blog-modal-content {
    padding: 22px 18px;
  }

  .project-detail {
    padding: 14px 14px 64px;
  }

  .project-detail-copy {
    padding: 16px;
  }

  .project-detail-visual {
    min-height: 260px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .project-card,
  .project-expander,
  .project-expand-layer::before,
  .project-modal,
  .blog-list article,
  .blog-expander,
  .blog-expand-layer::before,
  .blog-modal {
    transition: none;
  }
}
