:root {
  --home-bg: #0a0e17;
  --home-panel: #12182a;
  --home-panel-2: #182033;
  --home-line: rgba(131, 156, 198, 0.18);
  --home-text: #edf2ff;
  --home-muted: #9aa7c2;
  --home-accent: #6be3ff;
  --home-accent-2: #c9a57a;
  --home-shell: min(1180px, calc(100vw - 40px));
}

body.portfolio-home {
  margin: 0;
  background:
    radial-gradient(circle at top left, rgba(53, 108, 214, 0.18), transparent 28%),
    radial-gradient(circle at bottom right, rgba(107, 227, 255, 0.12), transparent 24%),
    linear-gradient(180deg, #0a0e17 0%, #0d1220 100%);
  color: var(--home-text);
  font-family: "Space Grotesk", sans-serif;
}

.portfolio-home .shell {
  width: var(--home-shell);
  margin: 0 auto;
}

.portfolio-home a {
  color: inherit;
}

.home-header {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(18px);
  background: rgba(10, 14, 23, 0.8);
  border-bottom: 1px solid var(--home-line);
}

.home-header .shell,
.home-footer-inner,
.contact-layout {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.home-header .shell {
  min-height: 78px;
}

.home-brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
}

.home-brand-mark {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(107, 227, 255, 0.35);
  border-radius: 14px;
  color: var(--home-accent);
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.98rem;
  letter-spacing: 0.1em;
  background: linear-gradient(160deg, rgba(107, 227, 255, 0.14), rgba(201, 165, 122, 0.08));
}

.home-brand-copy {
  display: grid;
  gap: 4px;
}

.home-brand-copy strong {
  font-size: 1rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.home-brand-copy small,
.home-nav a,
.eyebrow,
.project-type,
.project-link,
.standard-kicker,
.hero-facts span {
  font-family: "IBM Plex Mono", monospace;
}

.home-brand-copy small,
.home-nav a {
  color: var(--home-muted);
}

.home-nav {
  display: flex;
  align-items: center;
  gap: 22px;
}

.home-nav a {
  text-decoration: none;
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero {
  position: relative;
  overflow: hidden;
  padding: 64px 0 42px;
  border-bottom: 1px solid var(--home-line);
}

.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(107, 227, 255, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(107, 227, 255, 0.06) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: linear-gradient(180deg, rgba(0,0,0,0.85), transparent);
  animation: grid-drift 18s linear infinite;
}

.hero-layout {
  position: relative;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 38px;
  align-items: center;
}

.hero-copy {
  max-width: 640px;
  animation: rise-in 0.75s ease-out both;
}

.hero-logo-lockup {
  max-width: 620px;
  margin-bottom: 18px;
}

.hero-wordmark {
  width: 100%;
  display: block;
  filter: drop-shadow(0 18px 34px rgba(0, 0, 0, 0.24));
}

.eyebrow {
  margin: 0 0 18px;
  color: var(--home-accent);
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.hero h1,
.disciplined-heading h2,
.contact-layout h2,
.logo-band-header h2 {
  margin: 0;
  line-height: 0.98;
  letter-spacing: -0.04em;
}

.hero h1 {
  max-width: 11ch;
  font-size: clamp(3.1rem, 8vw, 6.1rem);
}

.hero-text,
.section-copy,
.standard-grid p,
.project-note,
.contact-rails a {
  color: var(--home-muted);
}

.hero-text {
  max-width: 560px;
  margin: 22px 0 0;
  font-size: 1.08rem;
  line-height: 1.65;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 28px;
}

.hero-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 18px;
  border-radius: 999px;
  text-decoration: none;
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease;
}

.hero-button:hover,
.project-row:hover,
.contact-rails a:hover {
  transform: translateY(-2px);
}

.hero-button-primary {
  background: linear-gradient(135deg, var(--home-accent), #3f8cff);
  color: #07101d;
  font-weight: 700;
}

.hero-button-secondary {
  border: 1px solid rgba(131, 156, 198, 0.3);
  background: rgba(255, 255, 255, 0.03);
}

.hero-facts {
  list-style: none;
  padding: 0;
  margin: 32px 0 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.hero-facts li {
  padding-top: 14px;
  border-top: 1px solid var(--home-line);
}

.hero-facts span,
.project-type,
.project-link,
.standard-kicker {
  display: block;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero-facts strong {
  display: block;
  margin-top: 8px;
  font-size: 0.96rem;
  line-height: 1.45;
}

.hero-visual {
  animation: rise-in 0.85s ease-out 0.08s both;
}

.hero-frame {
  position: relative;
  border: 1px solid rgba(107, 227, 255, 0.2);
  border-radius: 30px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.02);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.35);
}

.hero-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, transparent 35%, rgba(107, 227, 255, 0.16) 50%, transparent 65%);
  transform: translateX(-120%);
  animation: sheen 7s ease-in-out infinite;
}

.hero-frame img {
  width: 100%;
  display: block;
}

.logo-band {
  padding: 18px 0 28px;
  border-bottom: 1px solid var(--home-line);
}

.logo-band-header {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 22px;
  margin-bottom: 18px;
}

.logo-band-copy {
  max-width: 560px;
  margin: 0;
  color: var(--home-muted);
  line-height: 1.6;
}

.logo-band-header h2 {
  max-width: 15ch;
  font-size: clamp(2rem, 4vw, 3.4rem);
}

.logo-band-inner {
  display: grid;
  grid-template-columns: repeat(8, minmax(0, 1fr));
  gap: 14px;
}

.logo-band img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 22px;
  border: 1px solid rgba(131, 156, 198, 0.18);
  background: #10182a;
}

.logo-band img[src$=".svg"] {
  object-fit: contain;
  padding: 10px;
}

.disciplined-section,
.standards-shell,
.contact-shell {
  padding: 68px 0;
}

.disciplined-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 28px;
}

.disciplined-heading h2,
.contact-layout h2 {
  max-width: 14ch;
  font-size: clamp(2rem, 4vw, 3.4rem);
}

.section-copy {
  max-width: 420px;
  margin: 0;
  line-height: 1.65;
}

.project-board {
  border-top: 1px solid var(--home-line);
}

.project-board-rich .project-board-head,
.project-board-rich .project-row {
  grid-template-columns: 1.05fr 1fr 1.15fr 0.45fr;
}

.project-board-head,
.project-row {
  display: grid;
  grid-template-columns: 1.2fr 0.75fr 1.4fr 0.5fr;
  gap: 20px;
  align-items: center;
}

.project-board-head {
  padding: 12px 0;
  color: var(--home-muted);
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.project-row {
  padding: 18px 0;
  border-top: 1px solid var(--home-line);
  text-decoration: none;
  animation: rise-in 0.6s ease-out both;
}

.project-row:nth-child(2) { animation-delay: 0.02s; }
.project-row:nth-child(3) { animation-delay: 0.05s; }
.project-row:nth-child(4) { animation-delay: 0.08s; }
.project-row:nth-child(5) { animation-delay: 0.11s; }
.project-row:nth-child(6) { animation-delay: 0.14s; }
.project-row:nth-child(7) { animation-delay: 0.17s; }
.project-row:nth-child(8) { animation-delay: 0.20s; }
.project-row:nth-child(9) { animation-delay: 0.23s; }

.project-name {
  display: grid;
  grid-template-columns: 66px 1fr;
  gap: 16px;
  align-items: center;
}

.project-name img {
  width: 66px;
  height: 66px;
  border-radius: 18px;
  object-fit: cover;
  border: 1px solid rgba(131, 156, 198, 0.18);
  background: #0f1524;
}

.project-name h3 {
  margin: 0;
  font-size: 1.1rem;
}

.project-name p,
.project-note,
.standard-grid p {
  margin: 6px 0 0;
  line-height: 1.55;
}

.project-link {
  color: var(--home-accent-2);
  text-decoration: none;
}

.project-link:hover {
  color: var(--home-accent);
}

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

.standard-grid article {
  padding-top: 18px;
  border-top: 1px solid var(--home-line);
}

.standard-grid h3 {
  margin: 10px 0 0;
  font-size: 1.35rem;
  line-height: 1.15;
}

.contact-shell {
  border-top: 1px solid var(--home-line);
  border-bottom: 1px solid var(--home-line);
}

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

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

.contact-rails a {
  text-decoration: none;
  transition: transform 160ms ease, color 160ms ease;
}

.home-footer {
  padding: 20px 0 34px;
}

.home-footer-inner {
  color: var(--home-muted);
  font-size: 0.9rem;
}

@keyframes rise-in {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes sheen {
  0%, 100% { transform: translateX(-120%); }
  45%, 55% { transform: translateX(120%); }
}

@keyframes grid-drift {
  from { transform: translateY(0); }
  to { transform: translateY(44px); }
}

@media (max-width: 1040px) {
  .hero-layout,
  .standard-grid,
  .contact-layout,
  .disciplined-heading,
  .logo-band-header {
    grid-template-columns: 1fr;
    display: grid;
  }

  .logo-band-inner {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .project-board-head,
  .project-row {
    grid-template-columns: 1fr;
  }

  .project-board-head {
    display: none;
  }

  .project-row {
    padding: 22px 0;
  }
}

@media (max-width: 720px) {
  .home-header .shell,
  .home-footer-inner {
    flex-direction: column;
    align-items: start;
  }

  .home-nav {
    flex-wrap: wrap;
    gap: 12px 16px;
  }

  .hero {
    padding-top: 34px;
  }

  .hero h1,
  .disciplined-heading h2,
  .contact-layout h2 {
    max-width: none;
  }

  .hero-logo-lockup {
    max-width: 100%;
  }

  .hero-facts {
    grid-template-columns: 1fr;
  }

  .logo-band-inner {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

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

  .project-name img {
    width: 56px;
    height: 56px;
  }
}
