:root {
  color-scheme: light;
  --background: #FCFDFF;
  --foreground: #1e293b;
  --muted-bg: #f8fafc;
  --muted: #64748b;
  --muted-soft: #94a3b8;
  --border: #e2e8f0;
  --surface: #ffffff;
  --primary: #fc5a27;
  --ring: #fc5a27;
  --shadow: 0 1px 4px rgba(0, 0, 0, .10), 0 0 0 1px rgba(0, 0, 0, .06);
  --max: 720px;
  --case-image-max: 656px;
}

:root.dark {
  color-scheme: dark;
  --background: #0f172a;
  --foreground: #f8fafc;
  --muted-bg: #1e293b;
  --muted: #cbd5e1;
  --muted-soft: #94a3b8;
  --border: #334155;
  --surface: #1e293b;
  --primary: #ff7a45;
  --ring: #ff7a45;
  --shadow: 0 2px 8px rgba(0, 0, 0, .5), 0 0 0 1px rgba(255, 255, 255, .07);
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html {
  min-height: 100%;
  background: var(--background);
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  margin: 0;
  display: flex;
  flex-direction: column;
  color: var(--foreground);
  background: var(--background);
  font-family: Geist, Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: geometricPrecision;
}

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

a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--ring);
  outline-offset: 3px;
}

.skip-link {
  position: fixed;
  top: 16px;
  left: 50%;
  z-index: 200;
  padding: 8px 14px;
  border-radius: 6px;
  background: var(--background);
  color: var(--foreground);
  transform: translate(-50%, -180%);
  transition: transform .2s ease;
}

.skip-link:focus {
  transform: translate(-50%, 0);
}

.top-controls {
  position: relative;
  z-index: 10;
  width: min(var(--max), 100%);
  margin: 0 auto;
  display: flex;
  justify-content: flex-start;
  align-items: center;
  gap: 8px;
  padding: 16px 32px 0;
}

.avatar-button,
.theme-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 999px;
  background: var(--surface);
  color: var(--muted);
  box-shadow: var(--shadow);
}

.avatar-button {
  padding: 5px;
}

.avatar-logo {
  display: block;
  width: 34px;
  height: 34px;
  border-radius: 999px;
  object-fit: cover;
  transition: transform .3s ease;
}

.avatar-button:hover .avatar-logo {
  transform: rotate(-10deg);
}

.theme-button {
  position: relative;
  cursor: pointer;
}

.theme-button svg {
  position: absolute;
  transition: opacity .25s ease, transform .25s ease;
}

.sun-icon {
  opacity: 0;
  transform: rotate(-60deg) scale(.5);
}

:root.dark .moon-icon {
  opacity: 0;
  transform: rotate(60deg) scale(.5);
}

:root.dark .sun-icon {
  opacity: 1;
  transform: rotate(0) scale(1);
}

main {
  position: relative;
  z-index: 1;
  flex: 1;
}

.page {
  width: min(var(--max), 100%);
  margin: 0 auto;
  padding: 0 32px;
}

.intro {
  padding: 68px 0 88px;
}

h1 {
  margin: 0;
  color: var(--foreground);
  font-size: clamp(48px, 7.2vw, 72px);
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -0.04em;
}

.intro p {
  max-width: 680px;
  margin: 24px 0 0;
  color: var(--muted);
  font-size: 17px;
  font-weight: 400;
  line-height: 1.6;
}

.intro .intro-kicker {
  max-width: none;
  margin: 0 0 26px;
  color: var(--muted);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.4;
}

.link-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 24px;
  margin-top: 32px;
}

.link-row a {
  padding-bottom: 1px;
  border-bottom: 1px solid var(--border);
  color: var(--muted);
  font-size: 16px;
  transition: color .18s ease, border-color .18s ease;
}

.link-row a:hover {
  color: var(--foreground);
  border-color: var(--muted);
}

.section-block {
  padding: 16px 0;
  margin-bottom: 48px;
}

.section-label {
  display: flex;
  align-items: center;
  gap: 16px;
}

.section-label span {
  flex-shrink: 0;
  color: var(--muted);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.section-label i {
  flex: 1;
  height: 1px;
  background: var(--border);
}

.work-list {
  display: grid;
}

.work-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 24px;
  padding: 16px 0;
  border-bottom: 1px solid var(--border);
  transition: opacity .18s ease;
}

.work-row:hover {
  opacity: .7;
}

.row-main {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.row-title {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 10px;
}

.row-title strong {
  color: var(--foreground);
  font-size: 22px;
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.row-title span,
.experience-list h2 span,
.education-row span {
  color: var(--muted);
  font-weight: 300;
}

.work-row p,
.experience-list p {
  max-width: 480px;
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  font-weight: 300;
  line-height: 1.65;
}

.row-side {
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 6px;
}

.row-side span,
.experience-list time,
.education-row time,
footer span {
  color: var(--muted);
  font-size: 12px;
  letter-spacing: .02em;
  white-space: nowrap;
}

.row-side em {
  color: var(--primary);
  font-size: 12px;
  font-style: normal;
  font-weight: 500;
}

.experience-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.experience-list li {
  display: flex;
  gap: 24px;
  padding: 24px 0;
  border-bottom: 1px solid var(--border);
}

.experience-list li[hidden] {
  display: none;
}

.experience-list li > div {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.experience-list h2 {
  margin: 0;
  color: var(--foreground);
  font-size: 16px;
  font-weight: 500;
  line-height: 1.35;
}

.experience-list h2 span {
  display: inline-block;
  margin-left: 5px;
}

.experience-toggle {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  margin-top: 18px;
  padding: 4px 0;
  border: 0;
  border-bottom: 1px solid currentColor;
  background: transparent;
  color: var(--primary);
  cursor: pointer;
  font: inherit;
  font-size: 13px;
  font-weight: 500;
}

.experience-toggle:hover {
  color: var(--foreground);
}

.tool-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 24px 0;
}

.tool-list span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 26px;
  padding: 3px 12px;
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--muted);
  background: transparent;
  font-size: 14px;
  font-weight: 400;
  white-space: nowrap;
}

.education-row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 24px 0;
}

.education-row div {
  flex: 1;
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 8px;
}

.education-row strong {
  color: var(--foreground);
  font-size: 16px;
  font-weight: 500;
}

footer {
  position: relative;
  z-index: 1;
  margin-top: auto;
  padding: 32px 0;
}

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

footer .link-row {
  margin-top: 0;
}

footer .link-row a {
  font-size: 13px;
}

.fade-up {
  opacity: 0;
  transform: translateY(10px);
  animation: fade-up .55s ease forwards;
  animation-delay: var(--delay, 0s);
}

.experience-extra.is-revealing {
  opacity: 0;
  transform: translateY(10px);
  animation: fade-up .55s ease forwards;
  animation-delay: var(--item-delay, 0s);
}

@keyframes fade-up {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

::view-transition-old(root),
::view-transition-new(root) {
  mix-blend-mode: normal;
  animation-duration: .45s;
}

.case-header {
  padding: 52px 0 34px;
}

.back-home {
  display: inline-flex;
  margin-bottom: 24px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 300;
  transition: color .18s ease;
}

.back-home:hover {
  color: var(--foreground);
}

.case-header h1 {
  max-width: 560px;
  font-size: clamp(36px, 6vw, 52px);
  letter-spacing: -0.03em;
}

.case-summary {
  max-width: 560px;
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 15px;
  font-weight: 300;
  line-height: 1.7;
}

.case-meta {
  display: grid;
  grid-template-columns: 1fr 1.8fr .7fr;
  gap: 24px;
  margin-top: 40px;
  padding-top: 18px;
  border-top: 1px solid var(--border);
}

.case-meta span {
  display: block;
  margin-bottom: 7px;
  color: var(--muted-soft);
  font-family: "Geist Mono", ui-monospace, monospace;
  font-size: 9px;
  font-weight: 500;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.case-meta strong {
  color: var(--foreground);
  font-size: 12px;
  font-weight: 500;
  line-height: 1.4;
}

.case-showcase {
  position: relative;
  z-index: 1;
  width: 100%;
  margin: 18px 0 54px;
  overflow: hidden;
}

.showcase-track {
  display: grid;
  grid-template-columns: minmax(0, var(--case-image-max));
  justify-content: center;
  gap: 32px;
  padding: 0 32px 18px;
}

.showcase-card {
  min-height: 300px;
  opacity: .38;
  transform: scale(.94);
}

.showcase-card.is-active {
  opacity: 1;
  transform: scale(1);
}

.showcase-track > :only-child {
  grid-column: 1;
}

.carousel-controls {
  width: fit-content;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 8px 14px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--muted-bg) 82%, transparent);
}

.carousel-controls i {
  width: 4px;
  height: 4px;
  border-radius: 999px;
  background: var(--muted-soft);
  opacity: .55;
}

.carousel-controls i:first-child {
  width: 24px;
  opacity: 1;
  background: var(--foreground);
}

.carousel-controls button {
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  margin-left: 4px;
  border: 0;
  border-radius: 999px;
  background: color-mix(in srgb, var(--surface) 70%, transparent);
  color: var(--muted);
}

.case-section {
  padding: 18px 0 42px;
}

.case-section .section-label {
  margin-bottom: 18px;
}

.case-copy {
  color: var(--muted);
  font-size: 14px;
  font-weight: 300;
  line-height: 1.75;
}

.case-copy h2 {
  margin: 28px 0 10px;
  color: var(--foreground);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.case-copy p {
  margin: 0 0 18px;
}

.case-copy figure,
.showcase-card figure {
  margin: 0;
}

.case-copy strong {
  color: var(--foreground);
  font-weight: 600;
}

.case-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin: 8px 0 10px;
}

.case-stats div,
.project-list article {
  border: 1px solid var(--border);
  border-radius: 8px;
  background: color-mix(in srgb, var(--surface) 78%, transparent);
}

.case-stats div {
  min-height: 132px;
  padding: 18px;
}

.case-stats strong {
  display: block;
  margin-bottom: 8px;
  color: var(--foreground);
  font-size: 28px;
  line-height: 1;
  letter-spacing: -0.03em;
}

.case-stats span {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.55;
}

.project-list {
  display: grid;
  gap: 14px;
  margin-top: 14px;
}

.project-list article {
  padding: 18px;
}

.project-list h2:first-child {
  margin-top: 0;
}

.project-list p:last-child {
  margin-bottom: 0;
}

.case-image {
  max-width: var(--case-image-max);
  margin: 24px 0 34px;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, .04);
}

.case-image img {
  display: block;
  width: 100%;
  height: auto;
}

img.case-image,
video.case-image {
  display: block;
  width: 100%;
  height: auto;
}

.case-image-hero {
  margin: 0 auto;
}

.case-image-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  max-width: var(--case-image-max);
  margin: 24px auto 34px;
}

.case-image-grid-three {
  grid-template-columns: 2fr 1fr 1fr;
}

.case-image-grid .case-image {
  max-width: none;
  margin: 0;
}

.case-eyebrow {
  margin: 0 0 12px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 400;
}

.compact-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px 18px;
  margin: 18px 0 24px;
  padding-left: 18px;
  color: var(--foreground);
}

.case-placeholder,
.case-placeholder-grid {
  max-width: var(--case-image-max);
}

.case-placeholder {
  display: grid;
  place-items: center;
  min-height: 300px;
  margin: 24px auto 34px;
  padding: 28px;
  border: 1px dashed color-mix(in srgb, var(--muted-soft) 70%, transparent);
  border-radius: 8px;
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--muted-bg) 84%, transparent), color-mix(in srgb, var(--surface) 88%, transparent));
  color: var(--muted);
  text-align: center;
}

.case-placeholder span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 28px;
  padding: 4px 10px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface);
  font-family: "Geist Mono", ui-monospace, monospace;
  font-size: 11px;
  letter-spacing: .04em;
}

.case-placeholder-hero {
  min-height: 360px;
  margin: 0 auto;
}

.case-placeholder-wide {
  min-height: 260px;
}

.case-placeholder-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin: 24px auto 34px;
}

.case-placeholder-grid .case-placeholder {
  min-height: 240px;
  margin: 0;
}

.badge-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(72px, 1fr));
  gap: 14px;
  max-width: var(--case-image-max);
  margin: 24px auto 34px;
  padding: 18px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, .04);
}

.badge-grid img {
  display: block;
  width: 100%;
  max-width: 96px;
  height: auto;
  margin: 0 auto;
}

.case-media {
  margin: 24px 0 34px;
}

.media-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin: 24px 0 34px;
}

.mock-screen {
  position: relative;
  min-height: 300px;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, .04);
}

:root.dark .mock-screen {
  background: #ffffff;
  color: #1e293b;
}

.mock-topbar {
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 16px;
  border-bottom: 1px solid #e2e8f0;
}

.mock-logo {
  color: #fc5a27;
  font-size: 14px;
  font-weight: 600;
}

.mock-heading,
.mock-pill,
.mock-row,
.mock-nav-line,
.mock-widget,
.mock-bar {
  display: block;
}

.mock-search {
  width: 140px;
  height: 18px;
  border: 1px solid #e2e8f0;
  border-radius: 999px;
}

.mock-app {
  display: grid;
  grid-template-columns: 124px 1fr;
  min-height: calc(100% - 42px);
}

.mock-sidebar {
  padding: 18px 14px;
  border-right: 1px solid #e2e8f0;
}

.mock-nav-line {
  height: 12px;
  margin-bottom: 13px;
  border-radius: 4px;
  background: #e2e8f0;
}

.mock-nav-line.active {
  height: 24px;
  background: #fc5a27;
}

.mock-content {
  padding: 18px;
}

.mock-heading {
  width: 140px;
  height: 28px;
  margin-bottom: 18px;
  border-radius: 5px;
  background: #fc5a27;
}

.mock-toolbar {
  display: flex;
  gap: 8px;
  margin-bottom: 12px;
}

.mock-pill {
  width: 92px;
  height: 18px;
  border-radius: 999px;
  background: #f1f5f9;
}

.mock-table {
  display: grid;
  gap: 8px;
}

.mock-row {
  height: 18px;
  border-radius: 4px;
  background: #f1f5f9;
}

.mock-chart {
  display: flex;
  align-items: end;
  gap: 10px;
  height: 170px;
  padding: 20px;
}

.mock-bar {
  flex: 1;
  border-radius: 4px 4px 0 0;
  background: #fc5a27;
}

.mock-field-list {
  display: grid;
  grid-template-columns: 130px 1fr 150px;
  min-height: 360px;
}

.mock-field-list > div {
  padding: 24px 18px;
  border-right: 1px solid #e2e8f0;
}

.mock-field-list > div:last-child {
  border-right: 0;
}

.mock-dashboard {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  padding: 18px;
}

.mock-widget {
  min-height: 92px;
  border: 1px solid #e2e8f0;
  border-radius: 7px;
  background: #ffffff;
}

.case-bottom {
  padding: 16px 0 64px;
  border-top: 1px solid var(--border);
}

@media (max-width: 900px) {
  .showcase-track {
    grid-template-columns: minmax(0, 1fr);
  }

  .showcase-card {
    display: none;
  }

  .showcase-card.is-active {
    display: block;
  }
}

@media (max-width: 700px) {
  .case-meta,
  .case-stats,
  .case-image-grid,
  .case-image-grid-three,
  .case-placeholder-grid,
  .compact-list,
  .media-grid,
  .mock-field-list {
    grid-template-columns: 1fr;
  }

  .mock-field-list > div {
    border-right: 0;
    border-bottom: 1px solid #e2e8f0;
  }

  .mock-field-list > div:last-child {
    border-bottom: 0;
  }
}

@media (max-width: 700px) {
  .top-controls {
    padding: 16px 24px 0;
  }

  .page {
    padding: 0 24px;
  }

  .intro {
    padding-top: 76px;
  }

  .work-row,
  .experience-list li,
  .education-row {
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
  }

  .row-side {
    align-items: flex-start;
  }

  .footer-inner {
    align-items: flex-start;
    flex-direction: column;
    gap: 18px;
  }
}
