:root {
  color-scheme: light;
  --page-bg: #eef0f3;
  --card-bg: #ffffff;
  --text: #000000;
  --muted: rgba(0, 0, 0, 0.4);
  --line: rgba(0, 0, 0, 0.1);
  --control-bg: #fafafa;
  --segmented-bg: #e9ebee;
  --control-active: #ffffff;
  --control-hover: #e9ebee;
  --active-control-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
  --blue: #346aff;
  --skeleton-a: #eef0f3;
  --skeleton-b: #f8f9fa;
  --shadow: 0 1px 0 rgba(0, 0, 0, 0.03);
  --frame-width: 1280px;
  --inner-width: 1160px;
  --motion-duration: 0.5s;
  --motion-ease: ease;
}

@font-face {
  font-family: "SF Pro";
  font-display: block;
  src: url("/public/fonts/SF-Pro.ttf") format("truetype");
}

:root[data-theme="dark"] {
  --page-bg: #111316;
  --card-bg: #1c1f24;
  --text: #f6f7f8;
  --muted: rgba(246, 247, 248, 0.56);
  --line: rgba(255, 255, 255, 0.13);
  --control-bg: #272b31;
  --segmented-bg: #272b31;
  --control-active: #f6f7f8;
  --control-hover: #343941;
  --blue: #7da1ff;
  --skeleton-a: #262b32;
  --skeleton-b: #343941;
  --shadow: 0 1px 0 rgba(0, 0, 0, 0);
  --icon-filter: invert(1);
}

* {
  box-sizing: border-box;
}

html {
  background: var(--page-bg);
  color: var(--text);
  font-family: "Onest", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  letter-spacing: 0;
  transition: background-color var(--motion-duration) var(--motion-ease), color var(--motion-duration) var(--motion-ease);
}

body {
  margin: 0;
  min-width: 1320px;
  background: var(--page-bg);
  transition: background-color var(--motion-duration) var(--motion-ease), color var(--motion-duration) var(--motion-ease);
}

#app {
  background: var(--page-bg);
  min-height: 100vh;
  transition: background-color var(--motion-duration) var(--motion-ease);
}

button,
a {
  font: inherit;
}

button {
  color: inherit;
}

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

img {
  display: block;
  max-width: 100%;
}

.topbar-shell {
  background: var(--page-bg);
  transition: background-color var(--motion-duration) var(--motion-ease);
}

.topbar {
  align-items: center;
  display: flex;
  justify-content: space-between;
  margin: 0 auto;
  padding: 20px 0;
  width: var(--frame-width);
}

.page-shell {
  margin: 0 auto 80px;
  transition: opacity 0.2s ease;
  width: var(--frame-width);
}

.card {
  background: var(--card-bg);
  border: 1px solid var(--line);
  border-radius: 40px;
  box-shadow: var(--shadow);
  margin-bottom: 20px;
  overflow: hidden;
  transition:
    background-color var(--motion-duration) var(--motion-ease),
    border-color var(--motion-duration) var(--motion-ease),
    box-shadow var(--motion-duration) var(--motion-ease);
}

.hero {
  min-height: 556px;
  padding: 60px;
}

.eyebrow {
  color: var(--text);
  font-size: 16px;
  font-weight: 400;
  line-height: normal;
  margin: 0 0 20px;
}

h1,
h2,
h3,
h4,
p {
  color: var(--text);
  margin: 0;
  transition: color var(--motion-duration) var(--motion-ease);
}

h1 {
  font-size: 100px;
  font-weight: 700;
  line-height: 1.1;
  max-width: 1160px;
}

.hero-bottom {
  margin-top: 30px;
}

.hero-bottom p {
  color: var(--text);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.5;
  max-width: 773px;
  transition: color var(--motion-duration) var(--motion-ease);
}

.contact-row {
  display: flex;
  gap: 12px;
  margin-top: 30px;
  max-width: 100%;
  width: max-content;
}

.pill-button,
.case-button,
.segmented,
.theme-toggle {
  border-radius: 999px;
  background: var(--control-bg);
  border: 0;
  box-shadow: inset 0 0 0 1px var(--line);
}

.pill-button,
.case-button,
.theme-toggle {
  align-items: center;
  color: var(--text);
  cursor: pointer;
  display: inline-flex;
  font-size: 16px;
  font-weight: 500;
  gap: 10px;
  height: 44px;
  justify-content: center;
  padding: 0 20px;
  transition:
    background-color var(--motion-duration) var(--motion-ease),
    border-color var(--motion-duration) var(--motion-ease),
    box-shadow var(--motion-duration) var(--motion-ease),
    color var(--motion-duration) var(--motion-ease);
  white-space: nowrap;
}

.pill-button:hover,
.case-button:hover {
  background: var(--control-hover);
}

.pill-button img {
  filter: var(--icon-filter, none);
}

.case-button {
  background: var(--blue);
  border-color: var(--blue);
  color: #ffffff;
  min-width: 76px;
}

.case-button:hover {
  background: #245cff;
}

.case-progress {
  align-items: center;
  border-radius: 999px;
  box-shadow: inset 0 0 0 1px var(--line);
  color: var(--muted);
  display: inline-flex;
  font-size: 16px;
  font-weight: 500;
  height: 44px;
  padding: 0 20px;
  transition:
    box-shadow var(--motion-duration) var(--motion-ease),
    color var(--motion-duration) var(--motion-ease);
  white-space: nowrap;
}

.theme-toggle {
  background: var(--segmented-bg);
  gap: 0;
  height: 52px;
  min-width: 0;
  padding: 4px;
  position: relative;
  width: 96px;
}

.theme-option {
  align-items: center;
  border-radius: 999px;
  color: var(--muted);
  display: inline-flex;
  height: 44px;
  justify-content: center;
  position: relative;
  transition: color var(--motion-duration) var(--motion-ease);
  width: 44px;
  z-index: 1;
}

.theme-option.active {
  color: #000000;
}

.segmented {
  background: var(--segmented-bg);
  display: inline-flex;
  height: 52px;
  padding: 4px;
  position: relative;
  transition:
    background-color var(--motion-duration) var(--motion-ease),
    box-shadow var(--motion-duration) var(--motion-ease);
}

.segmented button {
  background: transparent;
  border: 0;
  border-radius: 999px;
  color: var(--muted);
  cursor: pointer;
  font-size: 16px;
  font-weight: 400;
  height: 44px;
  padding: 0 20px;
  position: relative;
  transition: color var(--motion-duration) var(--motion-ease);
  white-space: nowrap;
  z-index: 1;
}

.segmented button.active {
  color: #000000;
}

.thumb {
  background: var(--control-active);
  border-radius: 999px;
  box-shadow: var(--active-control-shadow);
  height: 44px;
  left: 4px;
  position: absolute;
  top: 4px;
  transition:
    transform 0.35s cubic-bezier(0.25, 1, 0.5, 1),
    width 0.35s cubic-bezier(0.25, 1, 0.5, 1),
    background-color var(--motion-duration) var(--motion-ease),
    box-shadow var(--motion-duration) var(--motion-ease);
  width: 44px;
  will-change: transform;
  z-index: 0;
}

@media (prefers-reduced-motion: reduce) {
  .thumb {
    transition: background-color var(--motion-duration) var(--motion-ease), box-shadow var(--motion-duration) var(--motion-ease);
  }
}

.language-switch {
  min-width: 96px;
}

.language-switch button {
  padding: 0 14px;
}

.achievements {
  min-height: 317px;
  padding: 60px;
}

.achievements h2,
.experience h2 {
  font-size: 40px;
  font-weight: 700;
  line-height: normal;
}

.achievement-grid {
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(5, 1fr);
  margin-top: 30px;
}

.achievement-item {
  align-items: flex-start;
  display: flex;
  flex-direction: column;
  gap: 15px;
  min-height: 112px;
}

.sf-symbol {
  font-family: "SF Pro", "Apple Symbols", -apple-system, BlinkMacSystemFont, sans-serif;
  font-style: normal;
  font-weight: 400;
  line-height: 1;
}

.button-symbol,
.theme-symbol {
  font-size: 16px;
}

.button-symbol {
  font-weight: 500;
}

.achievement-icon {
  color: var(--text);
  font-size: 24px;
  height: 29px;
  line-height: normal;
  transition: color var(--motion-duration) var(--motion-ease);
}

.achievement-item p {
  font-size: 16px;
  line-height: 24px;
}

.experience {
  min-height: 601px;
  padding: 60px;
}

.experience-list {
  margin-top: 30px;
}

.experience-row {
  align-items: center;
  border-top: 1px solid var(--line);
  display: grid;
  grid-template-columns: 420px 1fr;
  min-height: 80px;
  transition: border-color var(--motion-duration) var(--motion-ease);
}

.experience-row:first-child {
  border-top: 0;
}

.experience-row h3,
.company-header h3 {
  font-size: 18px;
  font-weight: 500;
  line-height: normal;
}

.experience-row p,
.company-header p {
  color: var(--muted);
  font-size: 16px;
  font-weight: 400;
  line-height: normal;
  margin-top: 4px;
}

.company-header p {
  margin-top: 8px;
}

.experience-row strong {
  font-size: 16px;
  font-weight: 400;
  line-height: normal;
  text-align: right;
  transition: color var(--motion-duration) var(--motion-ease);
}

.experience-company-link {
  align-items: center;
  color: var(--text);
  display: inline-flex;
  gap: 6px;
  transition: color var(--motion-duration) var(--motion-ease);
}

.experience-company-link:hover {
  color: var(--blue);
}

.experience-link-symbol {
  font-size: 14px;
}

.projects {
  overflow: visible;
  padding: 30px 60px 60px;
}

.project-tabs {
  display: flex;
  margin: 0 auto;
  position: sticky;
  top: 20px;
  width: max-content;
  z-index: 5;
}

.project-viewport {
  overflow: hidden;
  transition: height 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

.project-flow {
  margin-top: 30px;
  opacity: 1;
  transform: translateY(0);
  transition:
    opacity 0.28s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.28s cubic-bezier(0.22, 1, 0.36, 1);
}

.project-flow.is-leaving {
  opacity: 0;
  transform: translateY(-10px);
  transition-duration: 0.16s;
  transition-timing-function: ease-in;
}

.project-flow.is-entering {
  opacity: 0;
  transform: translateY(14px);
  transition: none;
}

@media (prefers-reduced-motion: reduce) {
  .project-viewport,
  .project-flow {
    transition: none;
  }
}

.company-block + .company-block {
  margin-top: 30px;
}

.company-header {
  margin-bottom: 20px;
}

.company-projects {
  display: block;
}

.company-projects.has-divider {
  border-left: 1px solid var(--line);
  padding-left: 29px;
  transition: border-color var(--motion-duration) var(--motion-ease);
}

.project-card {
  display: block;
  min-height: 0;
}

.project-card + .project-card {
  margin-top: 30px;
}

.project-header {
  align-items: center;
  display: flex;
  height: 44px;
  justify-content: space-between;
  margin-bottom: 24px;
}

.project-header h4 {
  font-size: 24px;
  font-weight: 600;
  line-height: normal;
}

.project-actions {
  display: flex;
  gap: 8px;
}

.muted-title {
  color: var(--muted);
  transition: color var(--motion-duration) var(--motion-ease);
}

.project-header,
.mockup-strip,
.store-actions {
  margin-left: 0;
}

.mockup-strip {
  display: flex;
  gap: 30px;
  height: var(--mockup-height);
  overflow: hidden;
  scrollbar-color: var(--line) transparent;
  scrollbar-width: thin;
  width: 1130px;
}

.mockup-strip::-webkit-scrollbar {
  height: 6px;
}

.mockup-strip::-webkit-scrollbar-track {
  background: transparent;
}

.mockup-strip::-webkit-scrollbar-thumb {
  background: var(--line);
  border-radius: 999px;
}

.mockup-frame {
  aspect-ratio: var(--asset-ratio);
  border-radius: 0;
  flex: 0 0 var(--mockup-width);
  height: var(--mockup-height);
  overflow: hidden;
  position: relative;
  scroll-snap-align: start;
  width: var(--mockup-width);
}

.mockup-strip.landscape {
  height: calc(var(--mockup-height) + 22px);
  overflow-x: auto;
  overflow-y: hidden;
  padding-bottom: 22px;
  scroll-snap-type: x proximity;
  width: 1130px;
}

.mockup-frame img {
  height: 100%;
  inset: 0;
  object-fit: cover;
  opacity: 0;
  position: absolute;
  transition: opacity var(--motion-duration) var(--motion-ease);
  width: 100%;
}

.mockup-frame.loaded img {
  opacity: 1;
}

.mockup-frame.loaded .image-skeleton {
  opacity: 0;
}

.mockup-frame.image-error {
  border: 1px solid var(--line);
  transition: border-color var(--motion-duration) var(--motion-ease);
}

.image-skeleton {
  animation: shimmer 1.2s linear infinite;
  background: linear-gradient(90deg, var(--skeleton-a), var(--skeleton-b), var(--skeleton-a));
  background-size: 240% 100%;
  height: 100%;
  inset: 0;
  position: absolute;
  transition: opacity var(--motion-duration) var(--motion-ease);
  width: 100%;
}

.store-actions {
  display: flex;
  gap: 12px;
  margin-top: 24px;
}

:root[data-theme="dark"] {
  background-color: #111316;
  color: #f6f7f8;
}

:root[data-theme="dark"] body,
:root[data-theme="dark"] #app,
:root[data-theme="dark"] .topbar-shell {
  background-color: #111316;
}

:root[data-theme="dark"] .card {
  background-color: #1c1f24;
  border-color: rgba(255, 255, 255, 0.13);
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0);
}

:root[data-theme="dark"] .theme-option,
:root[data-theme="dark"] .segmented button {
  color: rgba(246, 247, 248, 0.56);
}

:root[data-theme="dark"] .thumb {
  background-color: #f6f7f8;
}

:root[data-theme="dark"] .theme-option.active,
:root[data-theme="dark"] .segmented button.active {
  color: #111316;
}

:root[data-theme="dark"] .eyebrow,
:root[data-theme="dark"] h1,
:root[data-theme="dark"] h2,
:root[data-theme="dark"] h3,
:root[data-theme="dark"] h4,
:root[data-theme="dark"] .hero-bottom p,
:root[data-theme="dark"] .achievement-icon,
:root[data-theme="dark"] .experience-row strong {
  color: #f6f7f8;
}

:root[data-theme="dark"] .experience-row p,
:root[data-theme="dark"] .company-header p,
:root[data-theme="dark"] .muted-title {
  color: rgba(246, 247, 248, 0.56);
}

:root[data-theme="dark"] .experience-row,
:root[data-theme="dark"] .company-projects.has-divider,
:root[data-theme="dark"] .mockup-frame.image-error {
  border-color: rgba(255, 255, 255, 0.13);
}

.visually-hidden {
  height: 1px;
  margin: -1px;
  overflow: hidden;
  position: absolute;
  white-space: nowrap;
  width: 1px;
}

@keyframes shimmer {
  from {
    background-position: 120% 0;
  }
  to {
    background-position: -120% 0;
  }
}

@media (max-width: 1360px) {
  body {
    min-width: 0;
  }

  .topbar,
  .page-shell {
    width: min(100% - 48px, var(--frame-width));
  }

  .mockup-strip,
  .mockup-strip.landscape {
    overflow-x: auto;
    scroll-snap-type: x proximity;
    width: 100%;
  }

  .mockup-strip {
    height: calc(var(--mockup-height) + 22px);
    padding-bottom: 22px;
  }
}

@media (max-width: 900px) {
  .topbar,
  .page-shell {
    width: min(100% - 32px, var(--frame-width));
  }

  .topbar {
    padding: 16px 0;
  }

  .card {
    border-radius: 28px;
  }

  .hero {
    height: auto;
    padding: 36px 28px;
  }

  h1 {
    font-size: clamp(40px, 7vw, 72px);
    max-width: 100%;
  }

  .hero-bottom p {
    max-width: 100%;
  }

  .contact-row {
    flex-wrap: wrap;
    width: 100%;
  }

  .achievements,
  .experience {
    padding: 32px 28px;
  }

  .achievements h2,
  .experience h2 {
    font-size: 30px;
  }

  .achievement-grid {
    gap: 24px 20px;
    grid-template-columns: repeat(2, 1fr);
  }

  .achievement-item {
    min-height: 0;
  }

  .experience-row {
    align-items: start;
    grid-template-columns: 1fr;
    gap: 4px;
    padding: 14px 0;
  }

  .experience-row strong {
    text-align: left;
  }

  .projects {
    padding: 24px 28px 40px;
  }

  .project-viewport,
  .project-flow {
    overflow: visible;
  }

  .company-projects.has-divider {
    padding-left: 20px;
  }

  .project-header {
    flex-wrap: wrap;
    height: auto;
    row-gap: 12px;
  }

  .mockup-strip {
    gap: 16px;
  }
}

@media (max-width: 600px) {
  .card {
    border-radius: 22px;
  }

  .hero {
    padding: 28px 20px;
  }

  .achievements,
  .experience {
    padding: 28px 20px;
  }

  .projects {
    padding: 20px 20px 32px;
  }

  h1 {
    font-size: clamp(32px, 10vw, 48px);
  }

  .achievement-grid {
    grid-template-columns: 1fr 1fr;
    gap: 20px 16px;
  }

  .company-projects.has-divider {
    border-left: 0;
    padding-left: 0;
  }

  .store-actions {
    flex-wrap: wrap;
  }

  .project-tabs button {
    font-size: 13px;
    padding: 0 12px;
  }
}
