:root {
  --bg: #f7f5f0;
  --surface: #ffffff;
  --surface-alt: #eef1fa;
  --accent: #0f8cff;
  --text: #1a1f2b;
  --muted: #5b6074;
  --border: #d9dce7;
  --gradient: linear-gradient(135deg, #0f8cff, #2ed7a5 60%, #ffd26a);
  font-size: 16px;
}

* {
  box-sizing: border-box;
}

html {
  background: var(--bg);
}

body {
  margin: 0;
  font-family: 'Space Grotesk', 'Inter', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
}

img {
  max-width: 100%;
  height: auto;
}

a {
  color: var(--accent);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

main {
  padding: 0 5vw 6rem;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-size: 0.8rem;
  color: var(--muted);
  margin-bottom: 0.5rem;
}

.section {
  padding: 4.5rem 0;
  border-bottom: 1px solid var(--border);
}

.read-more {
  display: inline-flex;
  margin-top: 1.5rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text);
}

.read-more a {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  color: inherit;
}

.read-more a:hover {
  color: var(--accent);
}

.section__header {
  max-width: 780px;
  margin-bottom: 2rem;
}

.section__header h2 {
  font-size: clamp(2rem, 3vw, 2.8rem);
  line-height: 1.2;
}

.section__grid {
  display: grid;
  gap: 2rem;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.about__grid {
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  align-items: center;
}

.about__copy {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.about__visual {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  padding: 2.5rem;
  border-radius: 28px;
  background: transparent;
  border: none;
  box-shadow: none;
  overflow: visible;
  isolation: initial;
  perspective: 1200px;
}

.logo-carousel {
  position: relative;
  width: clamp(220px, 22vw, 320px);
  aspect-ratio: 1 / 1;
  transform-origin: 50% 50%;
  animation: slow-spin 14s linear infinite;
  padding: clamp(0.5rem, 3vw, 1.5rem);
  box-sizing: border-box;
}

.logo-icon {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 0.4s ease;
  animation: logo-cycle 32s linear infinite;
  padding: clamp(0.5rem, 3vw, 1.5rem);
  transform-origin: 50% 50%;
  box-sizing: border-box;
  transform: scale(0.9);
}

.logo-icon--google {
  animation-delay: 0s;
}

.logo-icon--wordpress {
  animation-delay: 8s;
}

.logo-icon--javascript {
  animation-delay: 16s;
}

.logo-icon--php {
  animation-delay: 24s;
}

.about__visual figcaption {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--muted);
}

.about__halo {
  display: none;
}

.media-showcase__shell {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: clamp(1.4rem, 3vw, 3rem);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 32px;
  color: #f8f6ef;
  background:
    radial-gradient(circle at 96% 4%, rgba(206, 173, 108, 0.2), transparent 27rem),
    linear-gradient(145deg, #111b24 0%, #081017 58%, #101b22 100%);
  box-shadow: 0 30px 80px rgba(14, 26, 44, 0.18);
}

.media-showcase__shell::before {
  position: absolute;
  z-index: -1;
  inset: 0;
  content: '';
  pointer-events: none;
  opacity: 0.16;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.12) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.12) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: linear-gradient(to bottom, black, transparent 38%);
}

.media-showcase__shell.media-showcase__shell--match-projects {
  overflow: visible;
  margin-inline: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  color: var(--text);
  background: transparent;
  box-shadow: none;
}

.media-showcase__shell--match-projects::before {
  display: none;
}

.media-showcase__shell--match-projects .eyebrow {
  color: var(--muted);
}

.media-showcase__shell--match-projects .media-showcase__summary {
  color: var(--muted);
}

.media-showcase__header {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(260px, 0.8fr);
  gap: clamp(2rem, 6vw, 6rem);
  align-items: end;
}

.media-showcase .eyebrow {
  margin-top: 0;
  color: #ddc18a;
}

.media-showcase__header h2 {
  max-width: 720px;
  margin: 0;
  font-size: clamp(2rem, 3.2vw, 3.5rem);
  line-height: 1.02;
  letter-spacing: -0.04em;
}

.media-showcase__summary {
  max-width: 570px;
  margin: 0 0 0.3rem;
  color: rgba(248, 246, 239, 0.68);
  font-size: clamp(1rem, 1.25vw, 1.15rem);
}

/* Shared, Instagram-style media library used on home and projects. */
.media-library {
  --media-library-line: rgba(22, 31, 44, 0.14);
  --media-library-tab: var(--muted);
  --media-library-tab-active: var(--text);
  --media-library-accent: var(--accent);
  margin-top: clamp(1.25rem, 2.5vw, 2rem);
}

.media-library--dark {
  --media-library-line: rgba(255, 255, 255, 0.14);
  --media-library-tab: rgba(248, 246, 239, 0.58);
  --media-library-tab-active: #f8f6ef;
  --media-library-accent: #ddc18a;
}

.media-library__tabs {
  display: flex;
  gap: clamp(1rem, 2.5vw, 2rem);
  overflow-x: auto;
  margin-bottom: clamp(0.75rem, 1.5vw, 1rem);
  border-bottom: 1px solid var(--media-library-line);
  scrollbar-width: none;
}

.media-library__tabs::-webkit-scrollbar {
  display: none;
}

.media-library__tab {
  position: relative;
  flex: 0 0 auto;
  padding: 0.6rem 0 0.75rem;
  border: 0;
  color: var(--media-library-tab);
  background: transparent;
  font: inherit;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.045em;
  text-transform: uppercase;
  white-space: nowrap;
  cursor: pointer;
  transition: color 0.2s ease;
}

.media-library__tab::after {
  position: absolute;
  right: 0;
  bottom: -1px;
  left: 0;
  height: 2px;
  content: '';
  background: var(--media-library-accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.2s ease;
}

.media-library__tab:is(:hover, :focus-visible),
.media-library__tab.is-active {
  color: var(--media-library-tab-active);
}

.media-library__tab:is(:hover, :focus-visible)::after,
.media-library__tab.is-active::after {
  transform: scaleX(1);
}

.media-library__tab:focus-visible {
  outline: 2px solid var(--media-library-accent);
  outline-offset: 4px;
}

.media-library__panel[hidden] {
  display: none;
}

.media-showcase__tabs[hidden],
.media-showcase__panels[hidden],
.project-media-tabs[hidden],
.project-media-panels[hidden] {
  display: none !important;
}

.media-library__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 4px;
}

.media-library__process {
  width: min(100%, 760px);
  margin: clamp(1rem, 2.5vw, 1.75rem) auto 0;
  color: var(--muted);
  font-size: clamp(0.82rem, 1.4vw, 0.96rem);
  line-height: 1.7;
  text-align: center;
}

.media-library--dark .media-library__process {
  color: rgba(248, 246, 239, 0.68);
}

.media-library__item {
  min-width: 0;
  margin: 0;
  overflow: hidden;
  background: transparent;
}

.media-library__preview {
  position: relative;
  display: block;
  width: 100%;
  padding: 0;
  overflow: hidden;
  aspect-ratio: 1;
  border: 0;
  background: #111923;
  cursor: zoom-in;
}

.media-library__preview img,
.media-library__preview video,
.media-library__preview iframe {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.media-library__preview iframe {
  border: 0;
  background: transparent;
  pointer-events: none;
}

.media-library__preview--top img,
.media-library__preview--top video,
.media-library__preview--top iframe {
  object-position: center top;
}

.media-library__panel[data-media-panel="real-estate"] .media-library__preview {
  aspect-ratio: 4 / 5;
  background: #ece9e0;
}

.media-library__overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: clamp(0.7rem, 2vw, 1.15rem);
  color: #fff;
  opacity: 0;
  background: linear-gradient(to top, rgba(5, 10, 17, 0.9), rgba(5, 10, 17, 0.04) 68%);
  text-align: left;
  transition: opacity 0.25s ease;
}

.media-library__overlay small {
  color: #ddc18a;
  font-size: 0.58rem;
  font-style: normal;
  font-weight: 700;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.media-library__overlay strong {
  margin-top: 0.15rem;
  font-size: clamp(0.85rem, 1.6vw, 1.15rem);
}

.media-library__overlay em {
  margin-top: 0.2rem;
  color: rgba(255, 255, 255, 0.68);
  font-size: 0.66rem;
  font-style: normal;
}

.media-library__preview:is(:hover, :focus-visible) img,
.media-library__preview:is(:hover, :focus-visible) video {
  transform: scale(1.025);
}

.media-library__preview:is(:hover, :focus-visible) .media-library__overlay {
  opacity: 1;
}

.media-library__preview:focus-visible {
  z-index: 1;
  outline: 3px solid var(--media-library-accent);
  outline-offset: -3px;
}

.media-showcase__tabs {
  display: flex;
  gap: clamp(1rem, 2.5vw, 2rem);
  margin: clamp(1.25rem, 2.5vw, 2rem) 0 1.25rem;
  padding: 0;
  overflow-x: auto;
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
  scrollbar-width: none;
}

.media-showcase__tabs::-webkit-scrollbar {
  display: none;
}

.media-showcase__tab {
  position: relative;
  flex: 0 0 auto;
  padding: 0.65rem 0 0.7rem;
  border: 0;
  color: rgba(248, 246, 239, 0.58);
  background: transparent;
  font: inherit;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  white-space: nowrap;
  cursor: pointer;
  transition: color 0.2s ease;
}

.media-showcase__tab::after {
  position: absolute;
  right: 0;
  bottom: -1px;
  left: 0;
  height: 2px;
  content: '';
  background: #ddc18a;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.22s ease;
}

.media-showcase__tab:is(:hover, :focus-visible),
.media-showcase__tab.is-active {
  color: #f8f6ef;
}

.media-showcase__tab:is(:hover, :focus-visible)::after,
.media-showcase__tab.is-active::after {
  transform: scaleX(1);
}

.media-showcase__tab:focus-visible {
  outline: 2px solid #ddc18a;
  outline-offset: 4px;
}

.media-showcase__panel[hidden] {
  display: none;
}

.media-showcase__empty {
  display: grid;
  min-height: 210px;
  margin: 0;
  place-items: center;
  border: 1px dashed rgba(255, 255, 255, 0.18);
  border-radius: 18px;
  color: rgba(248, 246, 239, 0.46);
  background: rgba(255, 255, 255, 0.025);
  font-size: 0.85rem;
}

.media-showcase__gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 220px), 260px));
  gap: clamp(1rem, 2vw, 1.5rem);
}

.media-template {
  min-width: 0;
  margin: 0;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.045);
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.2);
}

.media-template__preview {
  position: relative;
  display: block;
  width: 100%;
  padding: 0;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  border: 0;
  background: #0b141b;
  cursor: zoom-in;
}

.media-template__preview::after {
  position: absolute;
  inset: 0;
  content: '';
  pointer-events: none;
  opacity: 0;
  background: rgba(7, 13, 18, 0.3);
  transition: opacity 0.35s ease;
}

.media-template__preview img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.55s cubic-bezier(0.22, 1, 0.36, 1);
}

.media-template__preview--top img {
  object-fit: cover;
  object-position: center top;
  background: #f5f2ea;
}

.media-template__preview > span {
  position: absolute;
  z-index: 1;
  right: 50%;
  bottom: 1rem;
  padding: 0.55rem 0.8rem;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 999px;
  color: #fff;
  opacity: 0;
  background: rgba(7, 13, 18, 0.76);
  font: 700 0.68rem/1 'Space Grotesk', sans-serif;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
  transform: translate(50%, 0.45rem);
  transition: opacity 0.3s ease, transform 0.3s ease;
  backdrop-filter: blur(12px);
}

.media-template__preview:is(:hover, :focus-visible) img {
  transform: scale(1.025);
}

.media-template__preview:is(:hover, :focus-visible)::after,
.media-template__preview:is(:hover, :focus-visible) > span {
  opacity: 1;
}

.media-template__preview:is(:hover, :focus-visible) > span {
  transform: translate(50%, 0);
}

.media-template__preview:focus-visible {
  outline: 3px solid #ddc18a;
  outline-offset: -3px;
}

.media-template figcaption {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.15rem 0.75rem;
  padding: 0.9rem 1rem 1rem;
}

.media-template figcaption span {
  grid-column: 1 / -1;
  color: #ddc18a;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.media-template figcaption strong {
  font-size: clamp(1rem, 1.5vw, 1.25rem);
}

.media-template figcaption small {
  align-self: center;
  color: rgba(248, 246, 239, 0.48);
  font-size: 0.68rem;
}

.media-showcase__footer {
  display: flex;
  justify-content: space-between;
  gap: 1.5rem;
  align-items: center;
  margin-top: 1.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(255, 255, 255, 0.11);
}

.media-showcase__footer p {
  margin: 0;
  color: rgba(248, 246, 239, 0.56);
  font-size: 0.8rem;
}

.media-showcase__footer p span {
  margin-right: 0.55rem;
  color: #f8f6ef;
  font-weight: 700;
}

.media-showcase__footer a {
  flex: 0 0 auto;
  color: #f0d8a7;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

@media (max-width: 980px) {
  .media-showcase__header {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }
}

.section--accent {
  background: var(--surface);
  border-radius: 20px;
  padding: 4rem;
  margin: 4rem 0;
  box-shadow: 0 25px 70px rgba(15, 51, 120, 0.1);
}

.hero {
  padding: 4rem 5vw 3rem;
  border-bottom: 1px solid var(--border);
  background: radial-gradient(circle at top right, rgba(15, 140, 255, 0.15), transparent 40%), var(--bg);
}

.hero__badge {
  display: inline-flex;
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 0.35rem 1rem;
  font-size: 0.75rem;
  letter-spacing: 0.2em;
  color: var(--muted);
  margin-bottom: 2rem;
}

.hero__content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 3rem;
  align-items: start;
}

.hero__text {
  min-width: 0;
}

.hero__aside {
  --hero-media-width: clamp(300px, 88%, 480px);
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  align-items: center;
}

.hero__portrait {
  margin: 0;
  border-radius: 24px;
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--surface-alt);
  width: var(--hero-media-width);
}

.hero__portrait img {
  width: 100%;
  display: block;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  filter: grayscale(100%);
}

.hero__portrait figcaption {
  padding: 0.8rem 1.25rem 1.1rem;
  font-size: 0.85rem;
  color: var(--muted);
  border-top: 1px solid var(--border);
}

.hero h1 {
  font-size: clamp(2.75rem, 5vw, 4rem);
  margin-top: 0;
  margin-bottom: 1rem;
  line-height: 1.1;
  max-width: 100%;
  overflow-wrap: break-word;
}

.lede {
  font-size: 1.1rem;
  color: var(--muted);
  margin-bottom: 1.5rem;
  max-width: 100%;
  overflow-wrap: break-word;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.hero__link {
  font-weight: 600;
  color: #0c1016;
  text-decoration: none;
  padding: 0.75rem 0;
}

.hero__link:hover {
  text-decoration: underline;
}

.hero__nav {
  display: flex;
  gap: 2rem;
  margin-top: 2.5rem;
  flex-wrap: wrap;
}

.hero__nav a {
  color: var(--muted);
  font-weight: 500;
  text-decoration: none;
}

.hero__nav a:hover {
  color: var(--text);
}

.section__grid p {
  margin: 0;
  color: #364056;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
}

.card {
  background: var(--surface-alt);
  border-radius: 18px;
  padding: 1.75rem;
  border: 1px solid var(--border);
  box-shadow: 0 12px 30px rgba(20, 48, 105, 0.1);
}

.card h3 {
  margin-top: 0;
  margin-bottom: 0.8rem;
}

.career-preview {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
}

.career-preview article {
  min-height: 260px;
  display: flex;
  flex-direction: column;
  padding: 1.75rem;
  border: 1px solid var(--border);
  border-radius: 20px;
  background: var(--surface-alt);
  box-shadow: 0 16px 36px rgba(20, 52, 120, 0.09);
}

.career-preview span {
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.career-preview h3 {
  margin: 1rem 0;
  font-size: 1.4rem;
  line-height: 1.2;
}

.career-preview p {
  margin: 0;
  color: var(--muted);
}

.timeline {
  display: grid;
  gap: 2.5rem;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.timeline article {
  padding: 2rem;
  border-radius: 20px;
  border: 1px solid var(--border);
  background: var(--surface-alt);
  box-shadow: 0 20px 40px rgba(25, 61, 120, 0.1);
}

.timeline__date {
  font-size: 0.85rem;
  letter-spacing: 0.2em;
  color: var(--muted);
}

.timeline h3 {
  margin: 0.5rem 0 1rem;
}

.timeline ul {
  padding-left: 1.2rem;
  margin: 0;
  color: #434a63;
}

.experience-panel__body {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem 2.5rem;
  align-items: flex-start;
}

.experience-panel__text {
  flex: 1 1 280px;
  min-width: 260px;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.projects {
  display: grid;
  gap: 1.8rem;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.experience-details {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
  margin-top: 1.5rem;
}

.detail-card {
  background: var(--surface);
  border-radius: 16px;
  border: 1px solid var(--border);
  padding: 1.25rem;
  box-shadow: 0 8px 24px rgba(11, 33, 80, 0.08);
}

.detail-card__label {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.4rem;
}

.detail-card__icon {
  width: 20px;
  height: 20px;
  fill: var(--accent);
}

.detail-card h4 {
  margin: 0;
  font-size: 0.85rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--muted);
}

.detail-card p {
  margin: 0;
  color: #2a3145;
  line-height: 1.4;
}

.detail-card p:first-of-type {
  font-weight: 600;
  font-size: 1.05rem;
}

.detail-card p + p {
  margin-top: 0.25rem;
  font-weight: 400;
}

.detail-card__cta {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: 0.8rem;
  font-weight: 600;
  color: var(--accent);
  text-decoration: none;
}

.detail-card__cta:hover {
  text-decoration: underline;
}

.project {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding: 2rem;
  border-radius: 20px;
  background: var(--surface-alt);
  border: 1px solid var(--border);
  box-shadow: 0 5px 16px rgba(32, 42, 53, 0.045);
}

.project__icon {
  width: 72px;
  height: 72px;
  border-radius: 20px;
  background: rgba(20, 58, 170, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
}

.project__icon svg {
  width: 42px;
  height: 42px;
  fill: currentColor;
}

.project p {
  margin: 0;
  color: #2a3145;
  line-height: 1.6;
  font-size: 1rem;
}

.project p + p {
  margin-top: 0.5rem;
}

.project ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  color: var(--muted);
}

.project li {
  background: rgba(15, 140, 255, 0.1);
  padding: 0.4rem 0.8rem;
  border-radius: 999px;
  font-size: 0.85rem;
}

.project-media-gallery {
  margin-top: 1.25rem;
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.project-carousel-grid {
  margin-top: 1.25rem;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.25rem;
  align-items: start;
}

.project-carousel-grid--media .project-carousel__track .project-media-card video,
.project-carousel-grid--media .project-carousel__track .project-media-card img {
  height: clamp(620px, 72vh, 820px);
  object-fit: contain;
  background: #111827;
}

.project-carousel-grid--media .project-carousel__track .project-media-card__trigger {
  background: #111827;
}

.project-carousel {
  min-width: 0;
}

.project-carousel--wide {
  margin-top: 1.25rem;
}

.project-carousel__header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.75rem;
}

.project-carousel__header > div:first-child {
  min-width: 0;
}

.project-carousel__header h4 {
  margin: 0;
  font-size: 1rem;
}

.project-carousel__header p {
  margin: 0.35rem 0 0;
  color: #434a63;
  font-size: 0.95rem;
}

.project-carousel__controls {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  flex: 0 0 auto;
}

.project-carousel__button {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  display: grid;
  place-items: center;
  font: inherit;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
  transition: border-color 0.2s ease, color 0.2s ease, transform 0.2s ease, opacity 0.2s ease;
}

.project-carousel__button:is(:hover, :focus-visible) {
  border-color: var(--accent);
  color: var(--accent);
  transform: translateY(-1px);
}

.project-carousel__button:disabled {
  opacity: 0.38;
  cursor: default;
  transform: none;
}

.project-carousel__status {
  min-width: 3.2rem;
  text-align: center;
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 700;
}

.project-carousel__track {
  display: flex;
  gap: 1rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  scrollbar-width: none;
  padding-bottom: 0.75rem;
}

.project-carousel__track::-webkit-scrollbar {
  display: none;
}

.project-carousel__track .project-media-card {
  flex: 0 0 100%;
  min-width: 0;
  scroll-snap-align: start;
}

.project-carousel__track .project-media-card--wide {
  grid-column: auto;
}

.project-carousel__track .project-media-card video,
.project-carousel__track .project-media-card img {
  aspect-ratio: auto;
  height: clamp(300px, 42vh, 460px);
  object-fit: cover;
}

.project-carousel__track .project-media-card--contain img {
  object-fit: contain;
  padding: 0.4rem;
  background: linear-gradient(135deg, rgba(11, 28, 58, 0.08), rgba(11, 28, 58, 0.2));
}

.project-carousel--wide .project-carousel__track .project-media-card img {
  height: clamp(340px, 58vh, 620px);
}

.project-carousel--wide .project-carousel__track .project-media-card--contain img {
  object-fit: contain;
}

.project-carousel__dots {
  min-height: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
}

.project-carousel__dot {
  width: 8px;
  height: 8px;
  border: 0;
  border-radius: 999px;
  padding: 0;
  background: rgba(91, 96, 116, 0.34);
  cursor: pointer;
  transition: background 0.2s ease, width 0.2s ease;
}

.project-carousel__dot.is-active {
  width: 24px;
  background: var(--accent);
}

.project-carousel__dot:is(:hover, :focus-visible) {
  background: var(--accent);
}

.project-media-card {
  margin: 0;
  background: var(--surface);
  border-radius: 16px;
  border: 1px solid var(--border);
  overflow: hidden;
  box-shadow: 0 12px 30px rgba(16, 36, 86, 0.12);
  display: flex;
  flex-direction: column;
}

.project-media-card video {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  display: block;
  background: #0b1c3a;
}

.project-media-card__trigger {
  border: none;
  padding: 0;
  margin: 0;
  background: none;
  cursor: zoom-in;
  display: block;
  width: 100%;
}

.project-media-card img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  display: block;
  background: #0b1c3a;
}

.project-media-card--contain img {
  object-fit: contain;
  padding: 0.4rem;
  aspect-ratio: 21 / 9;
  background: linear-gradient(135deg, rgba(11, 28, 58, 0.08), rgba(11, 28, 58, 0.2));
}

.project-media-card--wide {
  grid-column: 1 / -1;
}

.project-media-card--wide img {
  aspect-ratio: 16 / 9;
}

.project-media-card--portrait img {
  aspect-ratio: 4 / 5;
  object-fit: cover;
}

.project-media-card figcaption {
  padding: 0.75rem 1rem 1rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--muted);
}

.lightbox {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  padding: clamp(0.75rem, 2vw, 1.5rem);
  z-index: 2000;
}

.lightbox.is-active {
  display: flex;
}

.lightbox__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(6, 14, 32, 0.72);
}

.lightbox__content {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.65fr) minmax(280px, 0.65fr);
  gap: clamp(1rem, 2vw, 1.5rem);
  width: min(96vw, 1400px);
  max-width: 1400px;
  max-height: 92vh;
  overflow: auto;
  background: #0b1c3a;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: clamp(0.75rem, 1.5vw, 1.1rem);
  box-shadow: 0 18px 44px rgba(4, 10, 22, 0.32);
}

.lightbox__media {
  display: grid;
  min-width: 0;
  min-height: 280px;
  place-items: center;
  overflow: hidden;
  border-radius: 12px;
  background: #071326;
}

.lightbox__media img {
  width: 100%;
  height: auto;
  max-height: 86vh;
  object-fit: contain;
  display: block;
}

.lightbox__media--document {
  display: block;
  max-height: 86vh;
  overflow-y: auto;
  background: #f6f3ec;
  scrollbar-color: rgba(11, 28, 58, 0.42) transparent;
  scrollbar-width: thin;
}

.lightbox__media--document img {
  max-height: none;
}

.lightbox__media video {
  display: block;
  width: auto;
  max-width: 100%;
  height: auto;
  max-height: 86vh;
  margin-inline: auto;
  background: #05080d;
}

.lightbox__media iframe {
  display: block;
  width: min(100%, 688px);
  height: auto;
  max-height: 86vh;
  aspect-ratio: 4 / 5;
  border: 0;
  background: #f2efe7;
}

.lightbox__details {
  align-self: center;
  padding: clamp(0.5rem, 1.5vw, 1rem) clamp(0.35rem, 1vw, 0.75rem);
  color: #fff;
}

.lightbox__details-header {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: center;
  margin-bottom: 0.55rem;
}

.lightbox__eyebrow {
  margin: 0;
  color: #d4b777;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.lightbox__carousel {
  display: flex;
  gap: 0.45rem;
  align-items: center;
}

.lightbox__carousel button {
  display: grid;
  width: 2rem;
  height: 2rem;
  padding: 0;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
  font: inherit;
  cursor: pointer;
}

.lightbox__carousel button:is(:hover, :focus-visible) {
  border-color: rgba(212, 183, 119, 0.7);
  background: rgba(212, 183, 119, 0.14);
}

.lightbox__counter {
  min-width: 2.7rem;
  color: rgba(255, 255, 255, 0.64);
  font-size: 0.68rem;
  font-weight: 700;
  text-align: center;
}

.lightbox__title {
  margin: 0;
  padding-right: 2.25rem;
  color: #fff;
  font-size: clamp(1.35rem, 2vw, 2rem);
  line-height: 1.15;
}

.lightbox__description {
  margin: 0.85rem 0 1.15rem;
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.84rem;
  line-height: 1.6;
}

.lightbox__guide {
  display: grid;
  gap: 0;
  margin: 0;
}

.lightbox__guide > div {
  padding: 0.9rem 0;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.lightbox__guide dt {
  margin-bottom: 0.3rem;
  color: rgba(255, 255, 255, 0.48);
  font-size: 0.64rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.lightbox__guide dd {
  margin: 0;
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.78rem;
  line-height: 1.55;
}

.lightbox__content [hidden] {
  display: none;
}

.lightbox__close {
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  border: none;
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  font-size: 1.2rem;
  cursor: pointer;
}

.lightbox__close:is(:hover, :focus-visible) {
  background: rgba(255, 255, 255, 0.2);
}

body.lightbox-open {
  overflow: hidden;
}

@media (max-width: 800px) {
  .lightbox__content {
    grid-template-columns: 1fr;
    width: min(96vw, 760px);
  }

  .lightbox__media {
    min-height: 180px;
    max-height: 58vh;
  }

  .lightbox__media img,
  .lightbox__media video,
  .lightbox__media iframe {
    max-height: 58vh;
  }

  .lightbox__media--document img {
    max-height: none;
  }

  .lightbox__details {
    padding: 0.35rem;
  }
}

.crm-diagram {
  margin-top: 1.25rem;
  padding: 1rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.6rem;
}

.crm-diagram__node {
  background: rgba(15, 140, 255, 0.08);
  border: 1px solid rgba(15, 140, 255, 0.2);
  border-radius: 12px;
  padding: 0.65rem 0.9rem;
  min-width: 150px;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  color: #1b2a48;
}

.crm-diagram__node span {
  font-weight: 700;
  font-size: 0.95rem;
}

.crm-diagram__node small {
  font-size: 0.8rem;
  color: var(--muted);
}

.crm-diagram__arrow {
  font-size: 1.3rem;
  color: var(--accent);
  font-weight: 700;
}

.crm-diagram__arrow:last-of-type {
  display: none;
}

@media (max-width: 720px) {
  .crm-diagram {
    justify-content: center;
  }

  .crm-diagram__arrow {
    display: none;
  }
}

.project--contact {
  margin-top: 2rem;
}

.blog-grid {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.blog-grid--stacked {
  grid-template-columns: 1fr;
}

.blog-layout {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
}

.blog-layout__content {
  flex: 1 1 520px;
}

.blog-sidebar {
  flex: 0 0 280px;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.blog-sidebar__card {
  background: var(--surface);
  border-radius: 18px;
  border: 1px solid var(--border);
  box-shadow: 0 12px 30px rgba(20, 48, 105, 0.08);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.blog-sidebar__card h4 {
  margin: 0;
  font-size: 0.95rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

.blog-sidebar__card ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.blog-sidebar__card a {
  color: var(--accent);
  text-decoration: none;
}

.blog-sidebar__card a:hover {
  text-decoration: underline;
}

@media (max-width: 900px) {
  .project-carousel-grid {
    grid-template-columns: 1fr;
  }

  .blog-layout {
    flex-direction: column;
  }
  .blog-sidebar {
    flex-basis: 100%;
  }
}

.blog-card {
  background: var(--surface);
  border-radius: 18px;
  padding: 1.75rem;
  border: 1px solid var(--border);
  box-shadow: 0 12px 30px rgba(20, 48, 105, 0.12);
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.blog-card__meta {
  font-size: 0.8rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0;
}

.blog-card__link {
  margin-top: auto;
  font-weight: 600;
  color: var(--accent);
  text-decoration: none;
}

.blog-card__link:hover {
  text-decoration: underline;
}

.experience-media {
  margin: 1.5rem 0;
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: 0 16px 40px rgba(13, 33, 80, 0.15);
  max-width: 520px;
  width: 100%;
  aspect-ratio: 6 / 6;
}

.experience-panel__body .experience-media {
  margin: 0;
  flex: 0 0 auto;
}

.experience-media--wide {
  max-width: 760px;
  aspect-ratio: 16 / 10;
}

.experience-media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.article-live-preview {
  max-width: 480px;
  aspect-ratio: 4 / 5;
  overflow: visible;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.article-live-preview iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
}

.article-live-preview figcaption {
  margin-top: 0.65rem;
  color: var(--muted);
  font-size: 0.75rem;
}

.article-layout {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem 2rem;
  align-items: flex-start;
}

.article-layout__text {
  flex: 1 1 320px;
  min-width: 280px;
}

.blog-nav {
  margin-top: 2rem;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.blog-nav a {
  font-weight: 600;
  color: var(--accent);
  text-decoration: none;
}

.blog-nav a:hover {
  text-decoration: underline;
}

@media (min-width: 900px) {
  .experience-tabs__panels .experience-media {
    margin-left: auto;
    margin-right: auto;
  }
  .article-layout .experience-media {
    margin-left: auto;
  }
}

.contact {
  background: var(--surface-alt);
  border-radius: 20px;
  padding: 2.5rem;
  border: 1px solid var(--border);
  box-shadow: 0 25px 55px rgba(24, 54, 110, 0.12);
}

.contact__links {
  margin-top: 1.5rem;
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.contact__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 1.5rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.9rem 1.6rem;
  border-radius: 999px;
  background: var(--gradient);
  color: #04111a;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn:hover {
  transform: translateY(-2px);
  text-decoration: none;
  box-shadow: 0 15px 35px rgba(15, 140, 255, 0.25);
}

.btn--ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
}

.footer {
  padding: 2rem 5vw 4rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--muted);
  font-size: 0.9rem;
  border-top: 1px solid var(--border);
  background: var(--bg);
}

.footer a {
  color: var(--accent);
}

/* Compact project portfolio */
.project-showcase-list,
.project-system-list {
  display: grid;
  gap: 2rem;
}

.project-showcase-list {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.25rem;
  min-width: 0;
}

.project-showcase-list__divider,
.project-system-list {
  grid-column: 1 / -1;
}

.project-showcase-list > *,
.project-system-list,
.project-system-list > *,
.system-showcase,
.crm-product {
  min-width: 0;
}

.case-study,
.project--showcase {
  scroll-margin-top: 6rem;
}

.case-study {
  --case-bg: #eef1fa;
  --case-text: #1a1f2b;
  --case-muted: #5b6074;
  --case-accent: #0f8cff;
  --case-line: rgba(26, 31, 43, 0.16);
  --case-chip: rgba(15, 140, 255, 0.1);
  --case-frame: rgba(255, 255, 255, 0.72);
  --case-shadow: rgba(15, 140, 255, 0.38);
  min-height: 0;
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
  padding: clamp(1.2rem, 2.25vw, 2rem);
  border: 1px solid var(--case-line);
  border-radius: 22px;
  background: var(--case-bg);
  color: var(--case-text);
  box-shadow: 0 5px 16px rgba(32, 42, 53, 0.045);
  overflow: hidden;
}

.case-study--sky {
  --case-bg: #eeece6;
  --case-text: #202a35;
  --case-muted: #656b70;
  --case-accent: #5c6f78;
  --case-line: rgba(32, 42, 53, 0.14);
  --case-chip: rgba(92, 111, 120, 0.11);
  --case-frame: rgba(255, 255, 255, 0.92);
  --case-shadow: #d6d0c4;
}

.case-study--reverse .case-study__copy {
  order: initial;
}

.case-study__number {
  margin: 0 0 0.65rem;
  color: var(--case-accent);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.case-study h3 {
  margin: 0;
  font-size: clamp(1.55rem, 2.2vw, 2rem);
  letter-spacing: -0.025em;
  line-height: 1.05;
  overflow-wrap: break-word;
}

.case-study__lede {
  margin: 0.65rem 0;
  color: var(--case-text);
  font-size: clamp(1rem, 1.25vw, 1.12rem);
  font-weight: 600;
  line-height: 1.4;
}

.case-study__copy > p:not([class]) {
  color: var(--case-muted);
  font-size: 0.9rem;
  line-height: 1.55;
}

.case-study__facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
  margin: 0.85rem 0;
  padding-block: 0.7rem;
  border-block: 1px solid var(--case-line);
}

.case-study__facts div {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.case-study__facts span {
  color: var(--case-muted);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.career-role__outcomes span {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.case-study__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 0 0 1rem;
  padding: 0;
  list-style: none;
}

.case-study__tags li {
  padding: 0.4rem 0.75rem;
  border-radius: 999px;
  background: var(--case-chip);
  color: var(--case-text);
  font-size: 0.8rem;
  font-weight: 600;
}

.case-study__link,
.career-role__link,
.role-card__link {
  display: inline-flex;
  font-weight: 700;
}

.case-study__link {
  color: var(--case-accent);
}

.case-study__media {
  position: relative;
  min-width: 0;
  margin: 0;
  border: 7px solid var(--case-frame);
  border-radius: 18px;
  background: #101722;
  box-shadow: 0 6px 16px rgba(38, 54, 72, 0.08);
  overflow: hidden;
  order: -1;
}

.case-study__media img {
  display: block;
  width: 100%;
  height: clamp(180px, 22vw, 250px);
  aspect-ratio: auto;
  object-fit: cover;
}

.case-study__media figcaption {
  position: absolute;
  left: 1rem;
  bottom: 1rem;
  max-width: calc(100% - 2rem);
  padding: 0.55rem 0.8rem;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  background: rgba(8, 16, 28, 0.78);
  color: #ffffff;
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  backdrop-filter: blur(10px);
}

.project-showcase-list__divider {
  padding: 3rem 0 1rem;
  max-width: 780px;
}

.project-showcase-list__divider h2 {
  margin: 0;
  font-size: clamp(2rem, 4vw, 3.3rem);
  line-height: 1.15;
}

.project-system-list {
  gap: 1.5rem;
}

.project--showcase {
  padding: clamp(1.4rem, 3vw, 2.75rem);
}

.project.system-showcase--flush {
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.project--showcase h3 {
  margin: 0.25rem 0 1rem;
  font-size: clamp(1.9rem, 3vw, 2.7rem);
}

.system-showcase {
  gap: clamp(1.25rem, 2.5vw, 2rem);
}

.system-showcase__header {
  display: grid;
  grid-template-columns: minmax(260px, 0.8fr) minmax(320px, 1.2fr);
  gap: 1.5rem 3rem;
  align-items: end;
}

.system-showcase__header .eyebrow,
.system-subhead .eyebrow {
  margin: 0 0 0.35rem;
}

.system-showcase__header h3 {
  margin: 0;
}

.system-showcase__header > p {
  max-width: 700px;
  color: var(--muted);
}

.project .system-showcase__types {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem 0.8rem;
  padding: 0.75rem 0;
  border-block: 1px solid var(--border);
}

.project .system-showcase__types li {
  padding: 0 0.8rem 0 0;
  border-right: 1px solid var(--border);
  border-radius: 0;
  color: var(--muted);
  background: transparent;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.project .system-showcase__types li:last-child {
  border-right: 0;
}

.project-media-tabs {
  display: flex;
  gap: clamp(1.1rem, 2.5vw, 2rem);
  overflow-x: auto;
  border-bottom: 1px solid var(--border);
  scrollbar-width: none;
}

.project-media-tabs::-webkit-scrollbar {
  display: none;
}

.project-media-tab {
  position: relative;
  flex: 0 0 auto;
  padding: 0.25rem 0 0.75rem;
  border: 0;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
}

.project-media-tab::after {
  position: absolute;
  right: 0;
  bottom: -1px;
  left: 0;
  height: 2px;
  background: var(--accent);
  content: '';
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.2s ease;
}

.project-media-tab:is(:hover, :focus-visible),
.project-media-tab.is-active {
  color: var(--text);
}

.project-media-tab:is(:hover, :focus-visible)::after,
.project-media-tab.is-active::after {
  transform: scaleX(1);
}

.project-media-tab:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
}

.project-media-panel[hidden] {
  display: none;
}

.media-tile-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.media-tile {
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: var(--surface);
  box-shadow: 0 4px 12px rgba(32, 42, 53, 0.04);
}

.media-tile__preview {
  position: relative;
  display: block;
  width: 100%;
  padding: 0;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  border: 0;
  background: #0b1c3a;
  cursor: zoom-in;
}

.media-tile__preview::after {
  position: absolute;
  inset: 0;
  content: '';
  opacity: 0;
  background: linear-gradient(to top, rgba(5, 12, 22, 0.74), rgba(5, 12, 22, 0.08));
  transition: opacity 0.22s ease;
}

.media-tile__preview img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.media-tile__preview--top img {
  object-position: center top;
}

.media-tile__preview > span {
  position: absolute;
  z-index: 1;
  right: 0.8rem;
  bottom: 0.7rem;
  color: #fff;
  opacity: 0;
  font-size: 0.72rem;
  font-weight: 700;
  transform: translateY(0.25rem);
  transition: opacity 0.22s ease, transform 0.22s ease;
}

.media-tile__preview:is(:hover, :focus-visible)::after,
.media-tile__preview:is(:hover, :focus-visible) > span {
  opacity: 1;
}

.media-tile__preview:is(:hover, :focus-visible) img {
  transform: scale(1.025);
}

.media-tile__preview:is(:hover, :focus-visible) > span {
  transform: translateY(0);
}

.media-tile__preview:focus-visible,
.crm-view-grid button:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: -3px;
}

.media-tile > div {
  padding: 0.85rem 1rem 1rem;
}

.media-tile small {
  color: var(--accent);
  font-size: 0.67rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.media-tile h4 {
  margin: 0.2rem 0 0;
  font-size: 1rem;
}

.crm-hero {
  position: relative;
  display: block;
  width: 100%;
  padding: 0;
  overflow: hidden;
  aspect-ratio: 16 / 7;
  border: 0;
  border-radius: 16px;
  background: #0b1c3a;
  cursor: zoom-in;
}

.crm-hero::after {
  position: absolute;
  inset: 0;
  content: '';
  background: linear-gradient(to top, rgba(4, 13, 28, 0.88), transparent 48%);
}

.crm-hero img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  transition: transform 0.35s ease;
}

.crm-hero > span {
  position: absolute;
  z-index: 1;
  right: clamp(1rem, 2vw, 1.5rem);
  bottom: clamp(0.9rem, 2vw, 1.4rem);
  left: clamp(1rem, 2vw, 1.5rem);
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: end;
  gap: 0.1rem 1rem;
  color: #fff;
  text-align: left;
}

.crm-hero small {
  grid-column: 1 / -1;
  color: #d4b777;
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.crm-hero strong {
  font-size: clamp(1rem, 2.1vw, 1.45rem);
}

.crm-hero em {
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.72rem;
  font-style: normal;
  font-weight: 700;
}

.crm-hero:is(:hover, :focus-visible) img {
  transform: scale(1.015);
}

.crm-hero:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
}

.crm-product {
  display: grid;
  grid-template-columns: 205px minmax(0, 1fr);
  overflow: hidden;
  border: 1px solid rgba(27, 52, 89, 0.18);
  border-radius: 20px;
  background: #0b1c3a;
  box-shadow: 0 6px 18px rgba(32, 42, 53, 0.07);
}

.crm-product__sidebar {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  padding: 1.25rem 0.9rem;
  color: rgba(255, 255, 255, 0.62);
}

.crm-product__sidebar strong {
  margin: 0 0.45rem 0.8rem;
  color: #fff;
  font-size: 0.92rem;
  letter-spacing: 0.01em;
}

.crm-product__sidebar strong span {
  color: #d4b777;
}

.crm-product__sidebar button {
  width: 100%;
  padding: 0.55rem 0.7rem;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: rgba(255, 255, 255, 0.62);
  font: inherit;
  font-size: 0.78rem;
  text-align: left;
  cursor: pointer;
  transition: color 0.18s ease, background 0.18s ease;
}

.crm-product__sidebar button:is(:hover, :focus-visible),
.crm-product__sidebar button.is-active {
  color: #fff;
  background: rgba(255, 255, 255, 0.12);
}

.crm-product__sidebar button:focus-visible {
  outline: 2px solid #d4b777;
  outline-offset: -2px;
}

.crm-product__workspace {
  min-width: 0;
  padding: clamp(1rem, 2vw, 1.5rem);
  background: #f3f6fb;
}

.crm-product__topbar {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: center;
}

.crm-product__topbar small,
.crm-product__stats small,
.crm-product__pipeline article small {
  color: #78849a;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.crm-product__topbar h4 {
  margin: 0.15rem 0 0;
  color: #17253b;
  font-size: 1.25rem;
}

.crm-product__topbar > span {
  color: #28886b;
  font-size: 0.72rem;
  font-weight: 700;
}

.crm-product__view[hidden] {
  display: none;
}

.crm-product__description {
  max-width: 780px;
  margin: 0.65rem 0 1rem;
  color: #627089;
  font-size: 0.78rem;
  line-height: 1.55;
}

.crm-product__stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
  margin: 1rem 0;
}

.crm-product__stats > div {
  display: grid;
  gap: 0.2rem;
  padding: 0.8rem;
  border: 1px solid #dce3ee;
  border-radius: 12px;
  background: #fff;
}

.crm-product__stats strong {
  color: #17253b;
  font-size: 1.55rem;
}

.crm-product__stats span {
  color: #627089;
  font-size: 0.7rem;
}

.crm-product__pipeline {
  display: grid;
  grid-template-columns: repeat(5, minmax(145px, 1fr));
  gap: 0.75rem;
  overflow-x: auto;
  padding-bottom: 0.15rem;
}

.crm-product__pipeline section {
  min-width: 0;
  padding: 0.6rem;
  border-radius: 12px;
  background: #e9eef6;
}

.crm-product__pipeline section > header {
  display: flex;
  justify-content: space-between;
  padding: 0.25rem 0.25rem 0.65rem;
  color: #3d4b61;
  font-size: 0.76rem;
}

.crm-product__pipeline section > header span {
  display: grid;
  min-width: 1.35rem;
  height: 1.35rem;
  place-items: center;
  border-radius: 6px;
  background: #d6dfed;
  font-size: 0.67rem;
}

.crm-product__pipeline article {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  padding: 0.7rem;
  border: 1px solid #dce3ee;
  border-radius: 9px;
  background: #fff;
  box-shadow: 0 5px 12px rgba(40, 61, 91, 0.06);
}

.crm-product__pipeline article + article {
  margin-top: 0.5rem;
}

.crm-product__pipeline article strong {
  overflow: hidden;
  color: #17253b;
  font-size: 0.78rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.crm-product__pipeline article > span {
  color: #627089;
  font-size: 0.68rem;
}

.crm-activity-list,
.crm-automation-list {
  display: grid;
  gap: 0.6rem;
}

.crm-activity-list article,
.crm-automation-list article {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 0.8rem;
  align-items: center;
  padding: 0.75rem;
  border: 1px solid #dce3ee;
  border-radius: 10px;
  background: #fff;
}

.crm-activity-list article > div,
.crm-automation-list article > div {
  display: grid;
  gap: 0.15rem;
}

.crm-activity-list strong,
.crm-automation-list strong,
.crm-table strong,
.crm-record-grid strong {
  color: #17253b;
  font-size: 0.78rem;
}

.crm-activity-list small,
.crm-automation-list small,
.crm-record-grid span {
  color: #627089;
  font-size: 0.68rem;
  line-height: 1.4;
}

.crm-activity-list time {
  color: #78849a;
  font-size: 0.67rem;
  font-weight: 700;
}

.crm-status {
  width: max-content;
  padding: 0.25rem 0.4rem;
  border-radius: 6px;
  font-size: 0.62rem !important;
  font-weight: 700;
}

.crm-status--gold {
  color: #765c20 !important;
  background: #f3e8c9;
}

.crm-status--blue {
  color: #365f80 !important;
  background: #deebf5;
}

.crm-status--green {
  color: #247158 !important;
  background: #dcefe8;
}

.crm-table {
  overflow: hidden;
  border: 1px solid #dce3ee;
  border-radius: 12px;
  background: #fff;
}

.crm-table > div {
  display: grid;
  grid-template-columns: 1.1fr 1.25fr 0.85fr 1fr;
  gap: 0.75rem;
  padding: 0.7rem 0.8rem;
  border-top: 1px solid #e6ebf2;
  color: #627089;
  font-size: 0.7rem;
}

.crm-table > div:first-child {
  border-top: 0;
}

.crm-table .crm-table__head {
  color: #78849a;
  background: #e9eef6;
  font-size: 0.63rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.crm-record-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
}

.crm-record-grid article {
  display: grid;
  gap: 0.5rem;
  padding: 0.9rem;
  border: 1px solid #dce3ee;
  border-radius: 12px;
  background: #fff;
}

.crm-record-grid article > small {
  color: #78849a;
  font-size: 0.64rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.crm-record-grid progress {
  width: 100%;
  height: 5px;
  overflow: hidden;
  border: 0;
  border-radius: 999px;
  accent-color: #5c758b;
}

.crm-record-grid--media article {
  min-height: 122px;
  align-content: space-between;
  background: linear-gradient(145deg, #ffffff, #edf1f6);
}

.crm-automation-list article > span {
  display: grid;
  width: 2rem;
  height: 2rem;
  place-items: center;
  border-radius: 8px;
  color: #4e6478;
  background: #e9eef6;
  font-size: 0.7rem;
  font-weight: 800;
}

.crm-automation-list b {
  color: #28886b;
  font-size: 0.65rem;
}

.crm-inbox {
  display: grid;
  grid-template-columns: 116px minmax(0, 1fr);
  overflow: hidden;
  border: 1px solid #dce3ee;
  border-radius: 12px;
  background: #fff;
}

.crm-inbox__folders {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  padding: 0.7rem;
  border-right: 1px solid #e3e8f0;
  background: #edf1f6;
}

.crm-inbox__folders > * {
  padding: 0.38rem 0.45rem;
  color: #657188;
  font-size: 0.67rem;
  font-weight: 600;
}

.crm-inbox__folders strong {
  display: flex;
  justify-content: space-between;
  border-radius: 7px;
  color: #17253b;
  background: #fff;
}

.crm-inbox__folders b {
  color: #9a6b22;
}

.crm-inbox__messages article {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 0.7rem;
  align-items: start;
  padding: 0.75rem;
  border-top: 1px solid #e7ebf1;
}

.crm-inbox__messages article:first-child {
  border-top: 0;
}

.crm-inbox__messages article.is-unread {
  background: #f8fbff;
}

.crm-inbox__avatar {
  display: grid;
  width: 2rem;
  height: 2rem;
  place-items: center;
  border-radius: 50%;
  color: #315c80;
  background: #deebf5;
  font-size: 0.62rem;
  font-weight: 800;
}

.crm-inbox__messages article > div {
  display: grid;
  gap: 0.12rem;
}

.crm-inbox__messages small,
.crm-inbox__messages time {
  color: #7a8699;
  font-size: 0.61rem;
}

.crm-inbox__messages strong {
  color: #17253b;
  font-size: 0.73rem;
}

.crm-inbox__messages p {
  overflow: hidden;
  margin: 0 !important;
  color: #627089;
  font-size: 0.66rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.crm-inbox__messages article > div > div {
  display: flex;
  gap: 0.35rem;
  margin-top: 0.3rem;
}

.crm-inbox__messages button,
.crm-dispatch-board button,
.crm-social-queue button {
  padding: 0.3rem 0.5rem;
  border: 1px solid #ccd5e2;
  border-radius: 6px;
  color: #40516a;
  background: #fff;
  font: inherit;
  font-size: 0.61rem;
  font-weight: 700;
  cursor: pointer;
}

.crm-dispatch-board {
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr);
  overflow: hidden;
  border: 1px solid #dce3ee;
  border-radius: 12px;
  background: #fff;
}

.crm-dispatch-board > nav {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  padding: 0.8rem;
  border-right: 1px solid #e3e8f0;
  background: #edf1f6;
}

.crm-dispatch-board > nav button {
  display: flex;
  gap: 0.55rem;
  align-items: center;
  padding: 0.55rem;
  border: 0;
  background: transparent;
  text-align: left;
}

.crm-dispatch-board > nav button.is-active {
  color: #17253b;
  background: #fff;
}

.crm-dispatch-board > nav span {
  color: #8590a2;
  font-size: 0.58rem;
}

.crm-dispatch-board > section {
  padding: 0.85rem;
}

.crm-dispatch-board__heading,
.crm-dispatch-board article,
.crm-dispatch-board footer {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  align-items: center;
}

.crm-dispatch-board__heading {
  margin-bottom: 0.65rem;
}

.crm-dispatch-board__heading > div {
  display: grid;
}

.crm-dispatch-board__heading small,
.crm-dispatch-board article > span {
  color: #7a8699;
  font-size: 0.61rem;
  font-weight: 700;
  text-transform: uppercase;
}

.crm-dispatch-board__heading strong,
.crm-dispatch-board article strong,
.crm-social-queue strong {
  color: #17253b;
  font-size: 0.73rem;
}

.crm-dispatch-board article {
  display: grid;
  grid-template-columns: 86px minmax(0, 1fr) auto;
  padding: 0.65rem 0;
  border-top: 1px solid #e7ebf1;
}

.crm-dispatch-board article > div,
.crm-social-queue article > div:first-child > div {
  display: grid;
  gap: 0.1rem;
}

.crm-dispatch-board article small,
.crm-social-queue small,
.crm-social-queue time {
  color: #6f7c91;
  font-size: 0.62rem;
}

.crm-dispatch-board footer {
  justify-content: flex-end;
  padding-top: 0.7rem;
  border-top: 1px solid #e7ebf1;
}

.crm-dispatch-board button.is-primary,
.crm-social-queue article > button {
  border-color: #17253b;
  color: #fff;
  background: #17253b;
}

.crm-social-queue {
  overflow-x: auto;
  border: 1px solid #dce3ee;
  border-radius: 12px;
  background: #fff;
}

.crm-social-queue > header,
.crm-social-queue > article {
  display: grid;
  grid-template-columns: minmax(220px, 1.5fr) 0.65fr 0.8fr 0.65fr auto;
  gap: 0.65rem;
  align-items: center;
  min-width: 720px;
  padding: 0.65rem 0.75rem;
}

.crm-social-queue > header {
  color: #7a8699;
  background: #edf1f6;
  font-size: 0.59rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.crm-social-queue > article {
  border-top: 1px solid #e7ebf1;
}

.crm-social-queue article > div:first-child {
  display: flex;
  gap: 0.55rem;
  align-items: center;
}

.crm-social-queue__thumb {
  display: grid;
  flex: 0 0 auto;
  width: 2.25rem;
  height: 2.25rem;
  place-items: center;
  border-radius: 7px;
  color: #3e5a53;
  background: #dcefe8;
  font-size: 0.65rem;
  font-weight: 800;
}

.crm-social-queue__thumb--blue {
  color: #365f80;
  background: #deebf5;
}

.crm-social-queue__thumb--gold {
  color: #765c20;
  background: #f3e8c9;
}

.crm-channel-list {
  display: flex;
  gap: 0.22rem;
}

.crm-channel-list span {
  display: grid;
  width: 1.45rem;
  height: 1.45rem;
  place-items: center;
  border-radius: 5px;
  color: #53647c;
  background: #edf1f6;
  font-size: 0.53rem;
  font-weight: 800;
}

.crm-support-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(300px, 0.95fr);
  gap: 1rem;
}

.crm-support-grid > *,
.crm-workflow-views {
  min-width: 0;
}

.crm-workflow-views,
.crm-integrations {
  padding: 1.15rem;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: var(--surface);
}

.system-subhead {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: end;
  margin-bottom: 0.9rem;
}

.system-subhead h4 {
  margin: 0;
  font-size: 1.05rem;
}

.system-subhead > p {
  max-width: 310px;
  color: var(--muted);
  font-size: 0.78rem;
}

.crm-view-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.65rem;
}

.crm-view-grid button {
  position: relative;
  min-width: 0;
  padding: 0;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: #e9eef6;
  cursor: zoom-in;
}

.crm-view-grid img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: left top;
}

.crm-view-grid button span {
  position: absolute;
  right: 0.45rem;
  bottom: 0.45rem;
  padding: 0.3rem 0.45rem;
  border-radius: 6px;
  color: #fff;
  background: rgba(11, 28, 58, 0.86);
  font-size: 0.65rem;
  font-weight: 700;
}

.project .crm-integrations ul {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.55rem;
}

.project .crm-integrations li {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  padding: 0.65rem;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: #f7f9fc;
}

.crm-integrations li strong {
  color: var(--text);
  font-size: 0.78rem;
}

.crm-integrations li span {
  color: var(--muted);
  font-size: 0.68rem;
  line-height: 1.35;
}

@media (max-width: 980px) {
  .system-showcase__header,
  .crm-support-grid {
    grid-template-columns: 1fr;
  }

  .media-tile-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .crm-product {
    grid-template-columns: 1fr;
  }

  .crm-product__sidebar {
    flex-direction: row;
    overflow-x: auto;
  }

  .crm-product__sidebar strong {
    margin: 0;
    padding: 0.55rem 0.7rem;
    white-space: nowrap;
  }

  .crm-product__sidebar button {
    flex: 0 0 auto;
    width: auto;
    white-space: nowrap;
  }

  .crm-inbox,
  .crm-dispatch-board {
    grid-template-columns: 1fr;
  }

  .crm-inbox__folders,
  .crm-dispatch-board > nav {
    flex-direction: row;
    overflow-x: auto;
    border-right: 0;
    border-bottom: 1px solid #e3e8f0;
  }

  .crm-inbox__folders > *,
  .crm-dispatch-board > nav button {
    flex: 0 0 auto;
    white-space: nowrap;
  }
}

/* Career-focused experience page */
.experience-intro {
  display: grid;
  grid-template-columns: minmax(280px, 0.9fr) minmax(320px, 1.1fr);
  gap: 2rem 5rem;
  align-items: start;
}

.experience-intro h2,
.experience-close h2,
.role-fit h2 {
  margin: 0;
  font-size: clamp(2rem, 4vw, 3.3rem);
  line-height: 1.15;
}

.experience-intro__copy {
  color: var(--muted);
  font-size: 1.08rem;
}

.experience-intro__copy p:first-child {
  margin-top: 0;
}

.experience-stats {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 1rem;
}

.experience-stats div {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  padding: 1.5rem;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: var(--surface);
}

.experience-stats strong {
  font-size: 1.3rem;
}

.experience-stats span {
  color: var(--muted);
}

.career-timeline {
  position: relative;
}

.career-timeline::before {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  left: calc(220px + 1.5rem);
  width: 1px;
  background: var(--border);
}

.career-role {
  position: relative;
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 3rem;
  padding: 2.5rem 0;
}

.career-role__meta {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.35rem;
  padding-top: 0.4rem;
  text-align: right;
}

.career-role__meta::after {
  content: '';
  position: absolute;
  top: 0.65rem;
  right: -1.88rem;
  width: 11px;
  height: 11px;
  border: 4px solid var(--bg);
  border-radius: 50%;
  background: var(--accent);
}

.career-role__year {
  font-weight: 700;
}

.career-role__type {
  color: var(--muted);
  font-size: 0.82rem;
}

.career-role__content {
  padding: clamp(1.75rem, 4vw, 3.25rem);
  border: 1px solid var(--border);
  border-radius: 24px;
  background: var(--surface-alt);
  box-shadow: 0 18px 45px rgba(20, 52, 120, 0.09);
}

.career-role__content h3 {
  margin: 0 0 0.6rem;
  font-size: clamp(1.6rem, 3vw, 2.5rem);
  line-height: 1.15;
}

.career-role__content > p:not(.eyebrow) {
  color: var(--muted);
}

.career-role__content .career-role__lead {
  color: var(--text);
  font-weight: 700;
}

.career-role__outcomes {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  margin: 1.5rem 0;
}

.career-role__outcomes div {
  padding: 1rem;
  border-left: 3px solid var(--accent);
  background: var(--surface);
}

.career-role__outcomes p {
  margin: 0.35rem 0 0;
  color: var(--muted);
}

.experience-close {
  max-width: 900px;
}

.experience-close > p:not(.eyebrow) {
  max-width: 720px;
  color: var(--muted);
  font-size: 1.1rem;
}

/* Recruiter-readable skills by role */
.role-grid {
  display: grid;
  gap: clamp(1rem, 2vw, 1.5rem);
}

.role-card {
  display: grid;
  grid-template-columns: minmax(260px, 0.72fr) minmax(420px, 1.28fr);
  grid-template-areas:
    "heading details"
    "summary details"
    "link details";
  gap: 0.65rem clamp(2rem, 5vw, 5rem);
  align-items: start;
  padding: clamp(1.25rem, 2.5vw, 2rem) clamp(1.25rem, 3vw, 2.5rem);
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.role-card:nth-child(even) {
  background: var(--surface-alt);
}

.role-card__header {
  grid-area: heading;
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  gap: 0.85rem;
  align-items: start;
}

.role-card__number {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 12px;
  background: var(--gradient);
  color: #04111a;
  font-size: 0.78rem;
  font-weight: 700;
}

.role-card h3 {
  margin: 0;
  font-size: clamp(1.35rem, 2.2vw, 2rem);
  line-height: 1.15;
}

.role-card__summary {
  grid-area: summary;
  max-width: 560px;
  margin: 0.35rem 0 0;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.55;
}

.role-card__columns {
  grid-area: details;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(1.25rem, 3vw, 2.5rem);
  margin: 0;
}

.role-card__columns > div {
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
}

.role-card__columns h4 {
  margin: 0 0 0.75rem;
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.role-card__columns ul {
  margin: 0;
  padding-left: 1.15rem;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.5;
}

.role-card__columns p {
  margin: 0;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.55;
}

.role-card__link {
  grid-area: link;
  align-self: end;
  margin-top: 0.5rem;
  font-size: 0.82rem;
}

.skills-page #roles {
  padding-block: clamp(2.75rem, 5vw, 4rem) 2rem;
  border-bottom: 0;
}

.skills-page .section__header {
  margin-bottom: 1rem;
}

.skills-page .role-fit {
  padding-block: clamp(2.5rem, 5vw, 4rem);
  border-bottom: 0;
}

@media (max-width: 760px) {
  .role-card,
  .role-card:nth-child(even) {
    grid-template-columns: 1fr;
    grid-template-areas:
      "heading"
      "summary"
      "details"
      "link";
    gap: 0.8rem;
  }
}

.role-fit {
  display: grid;
  grid-template-columns: minmax(280px, 0.9fr) minmax(320px, 1.1fr);
  gap: 3rem 5rem;
  align-items: start;
}

.role-fit > div:last-child > p {
  margin-top: 0;
  color: var(--muted);
  font-size: 1.1rem;
}

@media (max-width: 980px) {
  .project-showcase-list {
    grid-template-columns: 1fr;
  }

  .case-study {
    grid-template-columns: 1fr;
    min-height: 0;
  }

  .case-study--reverse .case-study__copy {
    order: initial;
  }

  .case-study__media {
    width: 100%;
  }

  .career-preview {
    grid-template-columns: 1fr;
  }

  .career-preview article {
    min-height: 0;
  }
}

@keyframes slow-spin {
  from {
    transform: rotateY(0deg);
  }
  to {
    transform: rotateY(360deg);
  }
}

@keyframes logo-cycle {
  0% {
    opacity: 0;
    transform: scale(0.8);
  }
  4% {
    opacity: 1;
    transform: scale(0.95);
  }
  18% {
    opacity: 1;
    transform: scale(1);
  }
  25% {
    opacity: 0;
    transform: scale(1.05);
  }
  100% {
    opacity: 0;
    transform: scale(0.85);
  }
}


@media (max-width: 640px) {
  .hero {
    padding: 3rem 6vw 2.5rem;
  }

  .hero__content {
    grid-template-columns: minmax(0, 1fr);
    gap: 2rem;
  }

  .hero__badge {
    max-width: 100%;
    letter-spacing: 0.14em;
    text-align: center;
  }

  .hero h1 {
    font-size: clamp(2rem, 10vw, 2.4rem);
  }

  .lede {
    font-size: 1rem;
  }

  .hero__nav {
    gap: 1rem;
  }

  .project-carousel__header {
    align-items: flex-start;
    flex-direction: column;
  }

  .project-carousel__controls {
    align-self: flex-end;
  }

  .media-tile-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.75rem;
  }

  .media-tile > div {
    padding: 0.7rem;
  }

  .media-tile h4 {
    font-size: 0.88rem;
  }

  .crm-hero {
    aspect-ratio: 4 / 3;
  }

  .crm-hero > span {
    grid-template-columns: 1fr;
  }

  .crm-hero em {
    display: none;
  }

  .crm-product__stats,
  .crm-product__pipeline,
  .crm-record-grid,
  .project .crm-integrations ul {
    grid-template-columns: 1fr;
  }

  .crm-table {
    overflow-x: auto;
  }

  .crm-table > div {
    min-width: 580px;
  }

  .crm-inbox__messages article {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .crm-inbox__messages time {
    display: none;
  }

  .crm-dispatch-board article {
    grid-template-columns: 1fr auto;
  }

  .crm-dispatch-board article > span {
    grid-column: 1 / -1;
  }

  .crm-social-queue > header {
    display: none;
  }

  .crm-social-queue > article {
    grid-template-columns: minmax(0, 1fr) auto;
    min-width: 0;
  }

  .crm-social-queue article > div:first-child {
    grid-column: 1 / -1;
  }

  .crm-social-queue article > time {
    text-align: right;
  }

  .crm-view-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .system-subhead {
    align-items: flex-start;
    flex-direction: column;
  }

  .media-showcase__shell {
    margin-inline: -2vw;
    padding: 1.15rem;
    border-radius: 24px;
  }

  .media-showcase__header h2 {
    font-size: clamp(2.15rem, 11vw, 3.4rem);
  }

  .media-showcase__gallery {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.75rem;
  }

  .media-template figcaption {
    grid-template-columns: 1fr;
    padding: 0.75rem;
  }

  .media-showcase__footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .section--accent {
    padding: 3rem 1.5rem;
  }

  .footer {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }

  .case-study {
    grid-template-columns: 1fr;
    min-height: 0;
    padding: 1.5rem;
  }

  .case-study--reverse .case-study__copy {
    order: initial;
  }

  .case-study__media img {
    height: min(75vw, 440px);
  }

  .case-study__facts,
  .experience-stats,
  .career-role__outcomes,
  .role-card__columns,
  .role-fit,
  .experience-intro {
    grid-template-columns: 1fr;
  }

  .experience-stats {
    grid-column: auto;
  }

  .career-timeline::before {
    left: 5px;
  }

  .career-role {
    grid-template-columns: 1fr;
    gap: 1rem;
    padding-left: 1.5rem;
  }

  .career-role__meta {
    align-items: flex-start;
    text-align: left;
  }

  .career-role__meta::after {
    left: -1.78rem;
    right: auto;
  }

  .role-card__header {
    grid-template-columns: 42px minmax(0, 1fr);
  }
}
