.process-story {
  display: grid;
  gap: 48px;
}
.process-story .process-step {
  align-items: center;
  background: var(--panel-2);
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: clamp(32px, 6vw, 72px);
  grid-template-columns: minmax(0, 0.85fr) minmax(320px, 1.15fr);
  overflow: hidden;
  padding: clamp(28px, 4vw, 48px);
}
.process-story .process-step.no-media {
  grid-template-columns: 1fr;
}
.process-story .process-step:nth-child(even) .process-step-copy {
  order: 2;
}
.process-story .process-step:nth-child(even) img {
  order: 1;
}
.process-story .process-step span {
  color: var(--blue);
  display: block;
  font-size: 1.15rem;
  font-weight: 900;
  margin-bottom: 18px;
}
.process-story .process-step h3 {
  color: var(--text);
  font-size: 2rem;
  margin-bottom: 16px;
}
.process-story .process-step p {
  color: var(--muted);
  margin: 0;
}
.process-story .process-step img {
  aspect-ratio: 16/10;
  background: var(--panel-2);
  border-radius: 6px;
  height: 100%;
  object-fit: contain;
  width: 100%;
}

.case-gallery {
  display: grid;
  gap: 24px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.case-gallery button {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 6px;
  cursor: zoom-in;
  min-height: 0;
  overflow: hidden;
  padding: 0;
}
.case-gallery button:hover, .case-gallery button:focus-visible {
  border-color: var(--blue);
}
.case-gallery img {
  aspect-ratio: 16/10;
  background: var(--panel-2);
  display: block;
  object-fit: contain;
  transition: transform 180ms ease;
  width: 100%;
}
.case-gallery button:hover img {
  transform: scale(1.02);
}

.resource-links {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.resource-links a {
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 6px;
  display: flex;
  font-weight: 800;
  justify-content: space-between;
  min-height: 72px;
  padding: 18px 22px;
  text-decoration: none;
}
.resource-links a:hover, .resource-links a:focus-visible {
  border-color: var(--blue);
  color: var(--blue);
}
.resource-links a strong {
  font-size: 1.3rem;
}

.gallery-dialog {
  background: transparent;
  border: 0;
  height: 100%;
  max-height: none;
  max-width: none;
  padding: 56px;
  width: 100%;
}
.gallery-dialog::backdrop {
  background: rgba(20, 25, 51, 0.94);
}
.gallery-dialog img {
  height: 100%;
  object-fit: contain;
  width: 100%;
}
.gallery-dialog button {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--text);
  cursor: pointer;
  font-size: 1.7rem;
  height: 44px;
  line-height: 1;
  position: fixed;
  right: 22px;
  top: 22px;
  width: 44px;
}

@media (max-width: 760px) {
  .process-story .process-step {
    grid-template-columns: 1fr;
  }
  .process-story .process-step:nth-child(even) .process-step-copy,
  .process-story .process-step:nth-child(even) img {
    order: initial;
  }
  .case-gallery,
  .resource-links {
    grid-template-columns: 1fr;
  }
  .gallery-dialog {
    padding: 48px 12px 12px;
  }
}
:root {
  --bg: #ffffff;
  --panel: #141933;
  --panel-2: rgba(20, 25, 51, 0.045);
  --line: rgba(20, 25, 51, 0.2);
  --text: #141933;
  --muted: rgba(20, 25, 51, 0.74);
  --blue: #3e55cc;
  --on-dark: #ffffff;
  --shadow: 0 18px 48px rgba(20, 25, 51, 0.12);
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html {
  scroll-behavior: smooth;
}

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

:focus-visible {
  outline: 3px solid var(--blue);
  outline-offset: 3px;
}

.skip-link {
  background: var(--blue);
  color: var(--on-dark);
  font-weight: 800;
  left: 16px;
  padding: 10px 16px;
  position: fixed;
  top: -80px;
  z-index: 100;
}
.skip-link:focus {
  top: 16px;
}

a {
  color: inherit;
}

main,
.site-header,
.site-footer {
  width: min(1280px, 100% - 96px);
  margin-inline: auto;
}

.site-header {
  align-items: center;
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid var(--line);
  border-radius: 8px;
  display: flex;
  justify-content: space-between;
  min-height: 76px;
  padding: 8px 18px;
  position: sticky;
  top: 32px;
  z-index: 20;
  box-shadow: 0 8px 30px rgba(20, 25, 51, 0.08);
}

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

.brand {
  flex: 0 0 auto;
  text-decoration: none;
}

.brand img {
  display: block;
  height: 52px;
  object-fit: contain;
  width: 156px;
}

.brand-fallback {
  color: var(--text);
  font-size: 1.05rem;
  font-weight: 900;
  white-space: nowrap;
}

.site-nav {
  gap: clamp(18px, 3vw, 40px);
}

.site-nav a {
  color: var(--muted);
  font-weight: 700;
  text-decoration: none;
}

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

.site-nav .nav-cta,
.btn-primary {
  background: var(--blue);
  color: var(--on-dark);
}

.site-nav .nav-cta {
  border-radius: 6px;
  color: var(--on-dark);
  font-weight: 900;
  padding: 11px 20px;
}

.nav-toggle {
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 6px;
  display: none;
  height: 44px;
  place-items: center;
  width: 44px;
}

.nav-toggle span {
  background: var(--panel);
  display: block;
  height: 2px;
  width: 18px;
}

.nav-toggle span + span {
  margin-top: 5px;
}

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

h1 {
  font-size: 5.5rem;
  letter-spacing: 0;
  line-height: 0.96;
  margin-bottom: 24px;
}

h2 {
  font-size: 2.8rem;
  letter-spacing: 0;
  line-height: 1.05;
  margin-bottom: 12px;
}

h3 {
  font-size: 1.35rem;
  line-height: 1.25;
  margin-bottom: 10px;
}

p {
  color: var(--muted);
  font-size: 1.08rem;
}

.eyebrow {
  color: var(--blue);
  font-size: 1rem;
  font-weight: 900;
  margin-bottom: 8px;
}

.btn {
  align-items: center;
  border: 1px solid transparent;
  border-radius: 6px;
  display: inline-flex;
  font-weight: 900;
  justify-content: center;
  min-height: 58px;
  padding: 13px 28px;
  text-decoration: none;
  transition: transform 160ms ease, background 160ms ease, border-color 160ms ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-ghost {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.65);
  color: var(--on-dark);
}

.btn-secondary {
  background: var(--on-dark);
  border-color: var(--blue);
  color: var(--blue);
}

.hero-card {
  background: var(--panel);
  border-radius: 8px;
  margin-top: 72px;
  padding: clamp(44px, 6vw, 68px);
}

.hero-copy h1 span {
  display: block;
}

.hero-copy h1 {
  color: var(--on-dark);
  max-width: 900px;
}

.hero-card .eyebrow,
.case-hero .eyebrow {
  color: var(--on-dark);
}

.hero-copy p {
  color: rgba(255, 255, 255, 0.82);
  font-size: 1.4rem;
  max-width: 780px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 46px;
}

.project-card,
.profile-card,
.approach-list article,
.wide-card,
.process-grid article,
.result-card,
.contact-form,
.contact-side article,
.skill-cards article {
  background: var(--panel-2);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.section,
.page-title,
.about-hero,
.case-hero,
.case-block,
.contact-layout,
.big-cta {
  margin-top: clamp(72px, 9vw, 112px);
}

.section-heading {
  margin-bottom: 34px;
}

.section-heading p,
.page-title p {
  max-width: 920px;
}

.project-grid {
  display: grid;
  gap: clamp(28px, 4vw, 52px);
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.project-grid.compact {
  gap: clamp(28px, 4vw, 52px);
}

.project-card {
  display: flex;
  flex-direction: column;
  min-height: 390px;
  padding: 22px;
  text-decoration: none;
  transition: border-color 180ms ease, transform 180ms ease;
}

.project-card:hover {
  border-color: var(--blue);
  transform: translateY(-4px);
}

.project-visual {
  background: var(--blue);
  border-radius: 6px;
  display: block;
  height: 184px;
  margin-bottom: 26px;
  object-fit: cover;
  overflow: hidden;
  width: 100%;
}

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

.project-type {
  color: var(--blue);
  font-size: 0.95rem;
  font-weight: 900;
  margin-bottom: 8px;
}

.project-body h2,
.project-body h3 {
  color: var(--text);
  font-size: 1.5rem;
}

.project-body p:not(.project-type) {
  font-size: 1rem;
}

.skill-cards {
  display: grid;
  gap: 34px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.skill-cards article {
  padding: 28px;
}

.skill-cards p {
  font-size: 1rem;
  margin-bottom: 0;
}

.big-cta {
  background: var(--panel);
  border-radius: 8px;
  color: var(--on-dark);
  padding: clamp(42px, 6vw, 64px);
}

.big-cta p {
  color: rgba(255, 255, 255, 0.8);
  font-size: 1.3rem;
  margin-bottom: 34px;
}

.site-footer {
  align-items: center;
  background: var(--panel);
  display: flex;
  justify-content: space-between;
  margin-top: clamp(86px, 10vw, 120px);
  padding: 38px 0;
  width: 100%;
}

.site-footer > div,
.site-footer > nav {
  width: min(640px, 50% - 48px);
}

.site-footer > div {
  margin-left: max(48px, (100vw - 1280px) / 2);
}

.site-footer > nav {
  display: flex;
  gap: clamp(18px, 4vw, 44px);
  justify-content: flex-end;
  margin-right: max(48px, (100vw - 1280px) / 2);
}

.site-footer strong {
  display: block;
  font-size: 1.45rem;
  margin-bottom: 10px;
}

.site-footer p,
.site-footer span,
.site-footer a {
  color: rgba(255, 255, 255, 0.76);
  text-decoration: none;
}

.site-footer p {
  margin-bottom: 14px;
}

.footer-logo {
  background: var(--on-dark);
  display: block;
  height: 54px;
  margin-bottom: 14px;
  object-fit: contain;
  width: 162px;
}

.page-title h1 {
  margin-bottom: 18px;
}

.filter-bar {
  display: grid;
  gap: 22px;
  grid-template-columns: repeat(6, minmax(110px, 1fr));
  margin-bottom: 74px;
  max-width: 1000px;
}

.availability-note {
  border-left: 4px solid var(--blue);
  margin-top: 38px;
  max-width: 920px;
  padding: 4px 0 4px 24px;
}

.availability-note strong {
  color: var(--text);
  display: block;
  font-size: 1.1rem;
  margin-bottom: 6px;
}

.availability-note p {
  margin: 0;
}

.filter-button {
  background: var(--on-dark);
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--muted);
  cursor: pointer;
  font: inherit;
  font-weight: 900;
  min-height: 54px;
}

.filter-button.active {
  background: var(--blue);
  border-color: var(--blue);
  color: var(--on-dark);
}

.about-hero {
  align-items: center;
  display: grid;
  gap: clamp(44px, 7vw, 80px);
  grid-template-columns: minmax(320px, 0.85fr) minmax(0, 1.15fr);
}

.profile-card {
  display: grid;
  min-height: 540px;
  padding: 64px;
  place-items: center;
}

.profile-orb {
  background: var(--blue);
  border-radius: 999px;
  display: grid;
  height: 260px;
  place-items: center;
  width: 260px;
  overflow: hidden;
}

.profile-orb img {
  height: 100%;
  object-fit: cover;
  width: 100%;
}

.profile-card strong {
  color: var(--text);
  padding: 10px 34px;
}

.about-copy p {
  font-size: 1.6rem;
  margin-bottom: 54px;
  max-width: 760px;
}

.about-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.approach-list {
  display: grid;
  gap: 44px;
}

.approach-list article,
.wide-card {
  padding: clamp(30px, 5vw, 52px);
}

.case-hero {
  align-items: center;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: clamp(36px, 7vw, 90px);
  grid-template-columns: minmax(0, 1.35fr) minmax(320px, 0.7fr);
  overflow: hidden;
  padding: clamp(44px, 6vw, 64px);
}

.case-copy h1 {
  color: var(--on-dark);
}

.case-copy p:not(.eyebrow) {
  color: rgba(255, 255, 255, 0.8);
  font-size: 1.35rem;
}

.tool-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  margin-top: 58px;
}

.tool-pills span {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 6px;
  color: var(--on-dark);
  font-weight: 900;
  min-width: 150px;
  padding: 10px 18px;
  text-align: center;
}

.case-preview {
  background: var(--on-dark);
  border-radius: 6px;
  max-height: 430px;
  object-fit: contain;
  width: 100%;
}

.case-block h2 {
  margin-bottom: 38px;
}

.process-grid {
  display: grid;
  gap: 34px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.process-grid article {
  padding: 30px;
}

.process-grid span {
  color: var(--blue);
  display: block;
  font-size: 1.4rem;
  font-weight: 900;
  margin-bottom: 26px;
}

.process-grid p {
  font-size: 0.98rem;
  margin-bottom: 0;
}

.result-card {
  align-items: flex-start;
  display: flex;
  flex-direction: column;
  gap: 24px;
  padding: 46px;
}

.check-list {
  color: var(--muted);
  margin: 0 0 24px;
  padding-left: 20px;
}

.contact-title {
  margin-top: 62px;
}

.contact-layout {
  display: grid;
  gap: 80px;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 0.9fr);
}

.contact-form {
  display: grid;
  gap: 22px;
  padding: clamp(34px, 5vw, 54px);
}

.contact-form h2,
.contact-side h2 {
  margin-bottom: 20px;
}

.contact-form input,
.contact-form textarea,
.contact-form select,
.admin-form input,
.admin-form textarea,
.admin-form select {
  background: var(--panel-2);
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--text);
  font: inherit;
  padding: 20px 26px;
  width: 100%;
}

.contact-form label,
.admin-form label {
  font-weight: 800;
}

.contact-form input:focus,
.contact-form textarea:focus,
.contact-form select:focus,
.admin-form input:focus,
.admin-form textarea:focus,
.admin-form select:focus {
  border-color: var(--blue);
  outline: 3px solid rgba(62, 85, 204, 0.2);
}

.contact-form textarea {
  resize: vertical;
}

.contact-side {
  display: grid;
  gap: 58px;
}

.contact-side article {
  padding: clamp(34px, 5vw, 52px);
}

.contact-side article > a {
  border: 1px solid var(--line);
  border-radius: 6px;
  display: block;
  font-size: 1.25rem;
  font-weight: 900;
  margin-top: 18px;
  padding: 15px 26px;
  text-decoration: none;
}

.form-status {
  color: var(--blue);
  font-weight: 800;
  min-height: 24px;
}

.form-privacy {
  color: var(--muted);
  font-size: 0.875rem;
  line-height: 1.6;
  margin: 0;
}

.legal-content {
  margin: 0 auto;
  max-width: 820px;
  padding: 0 0 120px;
}

.legal-content section {
  border-top: 1px solid var(--border);
  padding: 28px 0;
}

.legal-content h2 {
  font-size: 1.35rem;
  margin-bottom: 12px;
}

.legal-content p {
  color: var(--muted);
  line-height: 1.75;
  margin: 0 0 12px;
}

.admin-body {
  background: var(--bg);
  color: var(--text);
}

.login-shell {
  display: grid;
  min-height: 100vh;
  padding: 24px;
  place-items: center;
}

.admin-layout {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  min-height: 100vh;
}

.admin-sidebar {
  background: var(--panel);
  color: rgba(255, 255, 255, 0.78);
  display: flex;
  flex-direction: column;
  gap: 26px;
  padding: 24px;
}

.admin-brand,
.admin-sidebar nav {
  display: grid;
  gap: 10px;
}

.admin-brand {
  color: var(--on-dark);
  text-decoration: none;
}

.admin-wordmark {
  color: var(--on-dark);
  font-size: 1.05rem;
  font-weight: 800;
  margin: 0;
}

.admin-sidebar a,
.text-button {
  color: rgba(255, 255, 255, 0.82);
  font-weight: 800;
  text-decoration: none;
}

.admin-main {
  padding: 34px;
}

.admin-panel,
.admin-card,
.login-card {
  background: var(--on-dark);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 24px;
}

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

.admin-form {
  display: grid;
  gap: 16px;
}

.admin-button,
.danger-button,
.text-button {
  border: 0;
  border-radius: 6px;
  cursor: pointer;
  font: inherit;
  font-weight: 900;
  padding: 10px 14px;
}

.admin-button {
  background: var(--blue);
  color: var(--on-dark);
}

.danger-button {
  background: var(--on-dark);
  border: 2px solid var(--blue);
  color: var(--blue);
}

.text-button {
  background: transparent;
  text-align: left;
}

.table-wrap {
  overflow-x: auto;
}

table {
  border-collapse: collapse;
  min-width: 760px;
  width: 100%;
}

th,
td {
  border-bottom: 1px solid var(--line);
  padding: 12px;
  text-align: left;
}

@media (max-width: 980px) {
  h1 {
    font-size: 4.4rem;
  }
  h2 {
    font-size: 2.5rem;
  }
  main,
  .site-header,
  .site-footer {
    width: min(100% - 36px, 1280px);
  }
  .site-header {
    top: 18px;
  }
  .nav-toggle {
    display: grid;
  }
  .site-nav {
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: 18px;
    display: none;
    flex-direction: column;
    left: 18px;
    padding: 20px;
    position: absolute;
    right: 18px;
    top: 88px;
  }
  .site-nav.is-open {
    display: flex;
  }
  .hero-card,
  .about-hero,
  .case-hero,
  .contact-layout,
  .result-card {
    grid-template-columns: 1fr;
  }
  .project-grid,
  .skill-cards,
  .process-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .filter-bar {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .site-footer {
    align-items: flex-start;
    flex-direction: column;
    gap: 24px;
    padding-inline: 18px;
    width: 100%;
  }
  .site-footer > div,
  .site-footer > nav {
    margin: 0;
    width: 100%;
  }
  .site-footer > nav {
    justify-content: flex-start;
  }
  .admin-layout,
  .admin-grid {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 620px) {
  .about-copy p {
    font-size: 1.2rem;
  }
  h1 {
    font-size: 3.2rem;
  }
  .hero-card,
  .case-hero,
  .big-cta,
  .contact-form,
  .contact-side article {
    padding: 28px;
  }
  .project-grid,
  .skill-cards,
  .process-grid,
  .filter-bar {
    grid-template-columns: 1fr;
  }
  .profile-card {
    min-height: 380px;
    padding: 34px;
  }
  .profile-orb {
    height: 210px;
    width: 210px;
  }
  .profile-orb span {
    height: 145px;
    width: 145px;
  }
}
