:root {
  color-scheme: light;
  --ink: #111114;
  --ink-soft: #1c1b21;
  --paper: #fff;
  --mist: #f6f6f8;
  --line: #e7e6eb;
  --muted: #6b6a74;
  --violet: #5d66c8;
  --violet-light: #a6a1ff;
  --green: #3bc29a;
  --width: 1200px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 28px; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 16px/1.55 "Avenir Next", "Segoe UI", sans-serif; -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; text-underline-offset: 4px; }
img { display: block; max-width: 100%; }
h1, h2, h3, p { margin: 0; }
p { text-wrap: pretty; }
em { color: var(--violet-light); font-style: normal; }
.page-width { width: min(var(--width), calc(100% - 88px)); margin-inline: auto; }
.skip-link { position: absolute; z-index: 10; top: -80px; left: 18px; padding: 12px 16px; background: var(--paper); color: var(--ink); }
.skip-link:focus { top: 16px; }
a:focus-visible, summary:focus-visible { outline: 3px solid var(--violet); outline-offset: 4px; }

.site-header { position: relative; z-index: 5; display: flex; align-items: center; justify-content: space-between; height: 82px; padding-inline: max(44px, calc((100vw - var(--width)) / 2)); background: var(--ink); color: var(--paper); }
.brand { display: inline-flex; align-items: center; gap: 11px; font-size: 19px; font-weight: 650; letter-spacing: -.045em; }
.brand-mark { display: grid; width: 34px; height: 34px; place-items: center; border: 1px solid #44434b; border-radius: 10px; color: var(--paper); font-size: 16px; font-weight: 700; letter-spacing: -.09em; }
.brand-mark span { color: var(--violet-light); }
.desktop-nav { display: flex; align-items: center; gap: 34px; color: #c1c0c8; font-size: 14px; }
.desktop-nav a[aria-current="page"] { color: var(--paper); }
.desktop-nav a:focus-visible, .site-footer a:focus-visible { outline-color: var(--violet-light); }
.nav-github { color: var(--paper); }
.nav-github span { margin-left: 4px; color: var(--violet-light); }
.mobile-nav { display: none; }

.hero { position: relative; overflow: hidden; background: var(--ink); color: var(--paper); }
.hero-inner { display: grid; grid-template-columns: 1fr .78fr; align-items: center; gap: 82px; min-height: 620px; padding-block: 72px 104px; }
.hero-copy { max-width: 650px; }
.hero h1, .portfolio-hero h1 { max-width: 760px; font-size: clamp(58px, 7.2vw, 94px); line-height: .99; letter-spacing: -.055em; font-weight: 620; }
.hero h1 em, .portfolio-hero h1 em { display: inline-block; color: var(--violet-light); font-family: "Iowan Old Style", Georgia, serif; font-weight: 400; letter-spacing: -.06em; }
.hero-copy > p { max-width: 520px; margin-top: 26px; color: #b6b5bd; font-size: 17px; line-height: 1.65; }
.hero-actions { display: flex; align-items: center; gap: 25px; margin-top: 34px; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 18px; min-height: 50px; padding: 0 20px; border-radius: 8px; font-size: 14px; font-weight: 650; }
.button-primary { background: var(--violet); color: #fff; }
.button-primary span, .button-dark span { font-size: 17px; }
.button-dark { background: var(--ink); color: #fff; }
.text-link { display: inline-flex; align-items: center; gap: 10px; color: var(--violet); font-size: 14px; font-weight: 650; }
.text-link span { font-size: 17px; }
.text-link-light { color: #d5d3de; }
.text-link-light span { color: var(--violet-light); }
.hero-index { border: 1px solid #38373e; padding: 0 23px; background: #151419; }
.index-top, .index-bottom { display: flex; align-items: center; justify-content: space-between; min-height: 52px; color: #aaa9b2; font-size: 12px; letter-spacing: .045em; text-transform: uppercase; }
.index-top { border-bottom: 1px solid #34333b; }
.index-top span:first-child { color: var(--paper); font-weight: 700; letter-spacing: .12em; }
.index-row { display: grid; grid-template-columns: 36px 1fr auto 16px; align-items: center; min-height: 68px; gap: 12px; border-bottom: 1px solid #34333b; }
.index-number { color: #aaa9b2; font-size: 12px; }
.index-name { color: #f3f2f5; font-size: 15px; font-weight: 600; }
.index-type { color: #aaa9b2; font-size: 12px; }
.index-arrow { color: var(--violet-light); font-size: 15px; }
.index-bottom { justify-content: flex-start; gap: 10px; min-height: 57px; text-transform: none; letter-spacing: 0; }
.index-indicator { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--violet-light); }
.hero-rule { position: absolute; right: max(44px, calc((100vw - var(--width)) / 2)); bottom: 38px; left: max(44px, calc((100vw - var(--width)) / 2)); height: 1px; background: #34333b; }

.work-section { padding-block: 112px 120px; }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 48px; margin-bottom: 54px; }
.section-heading h2, .team-heading h2, .closing-section h2, .github-heading h2, .portfolio-cta h2 { font-size: clamp(40px, 5vw, 62px); line-height: 1.03; letter-spacing: -.065em; font-weight: 590; }
.section-intro { max-width: 310px; margin-bottom: 5px; color: var(--muted); font-size: 15px; }
.project-list { border-top: 1px solid var(--line); }
.project-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(300px, .72fr); align-items: center; gap: clamp(44px, 8vw, 112px); padding-block: 54px; border-bottom: 1px solid var(--line); scroll-margin-top: 26px; }
.project-row-reverse { grid-template-columns: minmax(300px, .72fr) minmax(0, 1fr); }
.project-row-reverse .project-visual { order: 2; }
.project-row-reverse .project-copy { order: 1; }
.project-visual { position: relative; overflow: hidden; aspect-ratio: 1.55; border-radius: 3px; }
.visual-towhats { background: #eeeef2; color: #222128; }
.mini-window-bar { display: flex; align-items: center; justify-content: center; position: absolute; inset: 0 0 auto; height: 28px; background: #e2e1e8; color: #55535e; font-size: 12px; }
.mini-dots { position: absolute; left: 12px; display: flex; gap: 4px; }
.mini-dots i { width: 5px; height: 5px; border-radius: 50%; background: #a6a4af; }
.mini-content { display: grid; grid-template-columns: 27% 1fr; height: 100%; padding-top: 28px; }
.mini-sidebar { display: flex; flex-direction: column; gap: 13px; padding: 19px 14px; background: #19191e; color: #f5f5f8; }
.mini-logo { margin-bottom: 13px; font-size: clamp(12px, 1.2vw, 15px); font-weight: 700; letter-spacing: -.05em; }
.mini-logo span { color: #44c8a1; }
.mini-sidebar i { display: block; width: 70%; height: 5px; border-radius: 5px; background: #49484f; }
.mini-sidebar i:first-of-type { width: 82%; height: 18px; background: #34333b; }
.mini-orders { align-self: stretch; padding: clamp(14px, 2.3vw, 28px); }
.mini-eyeline { display: block; margin-bottom: 4px; color: #62616b; font-size: 12px; letter-spacing: .1em; }
.mini-orders > strong { display: block; margin-bottom: 15px; font-size: clamp(15px, 2.4vw, 27px); letter-spacing: -.06em; }
.mini-order { display: flex; justify-content: space-between; gap: 12px; padding-block: 9px; border-top: 1px solid #d9d8e0; color: #55545e; font-size: 12px; }
.mini-order span:first-child { display: flex; align-items: center; gap: 7px; }
.order-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--violet); }
.order-dot.is-muted { background: #aaa8b2; }
.order-dot.is-pale { background: #d0ced6; }
.visual-nookly { display: flex; align-items: center; justify-content: center; background: #eeecea; }
.visual-nookly img { position: absolute; top: 12px; bottom: 0; left: 50%; height: 105%; width: auto; max-width: none; transform: translateX(-50%); }
.visual-label, .visual-index { position: absolute; z-index: 1; color: #6d6670; font-family: "Iowan Old Style", Georgia, serif; font-size: 16px; font-style: italic; }
.visual-label { top: 19px; left: 22px; }
.visual-index { right: 18px; bottom: 16px; font-family: "Avenir Next", "Segoe UI", sans-serif; font-size: 12px; font-style: normal; letter-spacing: .08em; }
.visual-socialflow { display: grid; place-items: center; padding: clamp(16px, 2.7vw, 32px); background: #151419; color: #f4f3f7; }
.socialflow-window { display: flex; width: 100%; height: 100%; flex-direction: column; justify-content: space-between; padding: clamp(13px, 2.2vw, 24px); border: 1px solid #38373f; }
.socialflow-window-top { display: flex; align-items: center; gap: 10px; color: #e6e5eb; font-size: 12px; font-weight: 650; }
.socialflow-mark { display: grid; width: 32px; height: 32px; place-items: center; border-radius: 8px; background: var(--violet); color: white; font-size: 13px; letter-spacing: -.08em; }
.socialflow-mark span { color: #d7d5ff; }
.socialflow-status { margin-left: auto; color: #aaa9b2; font-size: 12px; font-weight: 500; letter-spacing: .08em; }
.socialflow-headline > span { display: block; margin-bottom: 8px; color: #aaa9b2; font-size: 12px; }
.socialflow-headline strong { display: block; font-size: clamp(27px, 3.2vw, 40px); line-height: .98; letter-spacing: -.055em; font-weight: 600; }
.socialflow-engines { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.socialflow-engines span { display: flex; min-height: 42px; align-items: center; padding: 8px 9px; border: 1px solid #393840; color: #d6d5dd; font-size: 12px; line-height: 1.3; }
.socialflow-footer { display: flex; justify-content: space-between; color: #aaa9b2; font-size: 12px; }
.socialflow-footer span:last-child { color: var(--violet-light); font-size: 16px; }
.visual-bj { display: flex; flex-direction: column; justify-content: space-between; padding: clamp(20px, 3vw, 40px); background: #17171d; color: #ededf1; }
.bj-preview-top, .bj-preview-foot { display: flex; align-items: center; justify-content: space-between; }
.bj-preview-top > span:last-child { color: #aaa9b2; font-size: 12px; letter-spacing: .1em; }
.bj-preview-logo { display: grid; width: 34px; height: 34px; place-items: center; border: 1px solid #585760; border-radius: 50%; font-family: Georgia, serif; font-size: 14px; }
.bj-path { display: flex; align-items: center; justify-content: space-between; gap: 7px; padding-block: 17px; border-block: 1px solid #38373f; color: #c9c8d0; font-size: clamp(12px, 1.2vw, 13px); }
.bj-path b { color: var(--violet-light); font-weight: 400; }
.bj-report { display: flex; align-items: center; gap: 13px; color: #f0eff3; font-size: clamp(12px, 1.3vw, 14px); }
.report-mark { display: flex; align-items: end; gap: 3px; height: 20px; padding: 4px 5px; border: 1px solid #55535f; border-radius: 4px; }
.report-mark i { display: block; width: 3px; height: 8px; background: var(--violet-light); }
.report-mark i:nth-child(2) { height: 12px; }
.report-mark i:nth-child(3) { height: 6px; }
.report-arrow { margin-left: auto; color: var(--violet-light); }
.bj-preview-foot { color: #aaa9b2; font-size: 12px; }
.bj-logo-wrap { display: block; width: 40px; height: 40px; overflow: hidden; border-radius: 50%; }
.bj-logo-wrap img { width: 100%; height: 100%; object-fit: cover; }
.project-meta { display: flex; align-items: center; gap: 13px; color: #6d6c76; font-size: 12px; letter-spacing: .055em; text-transform: uppercase; }
.project-meta span:first-child { color: var(--violet); font-weight: 700; }
.project-copy h3 { margin-top: 22px; font-size: 36px; line-height: 1; letter-spacing: -.065em; font-weight: 600; }
.project-copy p { max-width: 415px; margin-top: 14px; color: var(--muted); font-size: 15px; }
.project-copy > .text-link { margin-top: 21px; }
.all-projects-link { display: flex; align-items: center; justify-content: space-between; width: fit-content; gap: 30px; margin: 36px 0 0 auto; color: var(--ink); font-size: 14px; font-weight: 650; }
.all-projects-link span { color: var(--violet); font-size: 18px; }

.team-section { background: var(--mist); }
.team-inner { display: grid; grid-template-columns: .85fr 1fr; gap: 100px; padding-block: 104px 112px; }
.team-heading h2 em { color: var(--violet); font-family: "Iowan Old Style", Georgia, serif; font-weight: 400; }
.team-content > p { max-width: 460px; color: var(--muted); font-size: 15px; }
.team-list { margin: 27px 0 0; padding: 0; list-style: none; border-top: 1px solid #dedde4; }
.team-list li { display: grid; grid-template-columns: 38px minmax(0, 1fr) auto; align-items: center; gap: 13px; min-height: 64px; border-bottom: 1px solid #dedde4; }
.person-mark { display: grid; width: 32px; height: 32px; place-items: center; border: 1px solid #d2d0da; border-radius: 50%; color: var(--violet); font-size: 11px; font-weight: 700; }
.person-name { color: #242329; font-size: 14px; font-weight: 600; }
.person-nickname { color: #6d6c76; font-size: 13px; }

.closing-section { display: flex; align-items: end; justify-content: space-between; gap: 36px; padding-block: 94px 100px; }
.closing-section h2, .portfolio-cta h2 { font-size: clamp(36px, 4.2vw, 54px); }
.closing-section .button { margin-bottom: 4px; }
.site-footer { display: flex; align-items: center; justify-content: space-between; gap: 22px; min-height: 92px; border-top: 1px solid var(--line); }
.brand-footer { font-size: 16px; }
.brand-footer .brand-mark { width: 29px; height: 29px; border-color: #dedde3; color: var(--ink); font-size: 14px; }
.footer-note { color: #6d6c76; font-size: 12px; }
.site-footer nav { display: flex; gap: 24px; color: var(--muted); font-size: 12px; }

.portfolio-hero { background: var(--ink); color: var(--paper); }
.portfolio-hero-inner { padding-block: 74px 82px; }
.portfolio-hero h1 { max-width: 850px; font-size: clamp(58px, 7vw, 88px); }
.portfolio-lede { max-width: 555px; margin-top: 24px; color: #b6b5bd; font-size: 16px; }
.portfolio-work { padding-block: 52px 88px; }
.portfolio-project { display: grid; grid-template-columns: minmax(0, 1fr) minmax(320px, .72fr); align-items: center; gap: clamp(44px, 8vw, 112px); padding-block: 42px; border-bottom: 1px solid var(--line); scroll-margin-top: 20px; }
.portfolio-project:first-child { padding-top: 0; }
.portfolio-project-reverse { grid-template-columns: minmax(320px, .72fr) minmax(0, 1fr); }
.portfolio-project-reverse .portfolio-visual { order: 2; }
.portfolio-project-reverse .portfolio-copy { order: 1; }
.portfolio-visual { position: relative; overflow: hidden; aspect-ratio: 1.55; border-radius: 3px; }
.portfolio-copy h2 { margin-top: 20px; font-size: 38px; line-height: 1; letter-spacing: -.065em; font-weight: 600; }
.portfolio-copy p { max-width: 430px; margin-top: 14px; color: var(--muted); font-size: 15px; }
.portfolio-copy > .text-link { margin-top: 22px; }
.project-links { display: flex; flex-wrap: wrap; gap: 12px 24px; margin-top: 21px; }
.project-links .text-link { font-size: 14px; }
.portfolio-project .visual-nookly img { height: 110%; }

.github-section { background: var(--mist); padding-block: 94px 100px; }
.github-heading { margin-bottom: 34px; }
.repo-list { border-top: 1px solid #dedde4; }
.repo-row { display: grid; grid-template-columns: 48px minmax(0, 1fr) 165px 28px; align-items: center; gap: 20px; min-height: 124px; border-bottom: 1px solid #dedde4; }
.repo-symbol { display: grid; width: 38px; height: 38px; place-items: center; border: 1px solid #d4d2db; border-radius: 10px; color: var(--violet); font-size: 17px; font-weight: 650; }
.repo-symbol-solvus { border-radius: 50%; }
.repo-copy h3 { font-size: 17px; letter-spacing: -.035em; }
.repo-copy p { max-width: 510px; margin-top: 4px; color: var(--muted); font-size: 13px; }
.repo-kind { color: #6d6c76; font-size: 12px; }
.repo-link { display: grid; width: 28px; height: 28px; place-items: center; border: 1px solid #d4d2db; border-radius: 50%; color: var(--violet); font-size: 15px; }
.portfolio-cta { display: flex; align-items: end; justify-content: space-between; gap: 38px; padding-block: 90px 100px; }

@media (max-width: 850px) {
  .page-width { width: min(var(--width), calc(100% - 52px)); }
  .site-header { padding-inline: 26px; }
  .hero-inner { grid-template-columns: 1fr; gap: 52px; min-height: auto; padding-block: 88px 84px; }
  .hero-copy { max-width: 680px; }
  .hero-index { max-width: 620px; }
  .hero-rule { right: 26px; left: 26px; bottom: 28px; }
  .section-heading { align-items: start; }
  .project-row, .portfolio-project { grid-template-columns: minmax(0, 1fr) minmax(240px, .82fr); gap: 34px; }
  .project-row-reverse, .portfolio-project-reverse { grid-template-columns: minmax(240px, .82fr) minmax(0, 1fr); }
  .team-inner { gap: 52px; }
}

@media (max-width: 620px) {
  body { font-size: 15px; }
  .page-width { width: calc(100% - 40px); }
  .site-header { height: 70px; padding-inline: 20px; }
  .brand { font-size: 17px; }
  .brand-mark { width: 31px; height: 31px; }
  .desktop-nav { display: none; }
  .mobile-nav { display: block; position: relative; color: #f2f1f5; }
  .mobile-nav summary { display: flex; align-items: center; gap: 10px; list-style: none; cursor: pointer; color: #d1d0d7; font-size: 13px; }
  .mobile-nav summary::-webkit-details-marker { display: none; }
  .mobile-nav summary span { color: var(--violet-light); font-size: 16px; }
  .mobile-nav nav { position: absolute; top: 40px; right: 0; display: grid; min-width: 180px; padding: 8px; border: 1px solid #3a3942; background: #19181e; box-shadow: 0 12px 30px #0004; }
  .mobile-nav nav a { padding: 11px 12px; color: #dedde3; font-size: 13px; }
  .hero-inner { gap: 40px; padding-block: 72px 72px; }
  .hero h1, .portfolio-hero h1 { font-size: clamp(48px, 13.4vw, 72px); }
  .hero-copy > p { margin-top: 21px; font-size: 15px; }
  .hero-actions { align-items: start; flex-direction: column; gap: 19px; margin-top: 26px; }
  .hero-index { padding-inline: 14px; }
  .index-row { grid-template-columns: 24px 1fr auto 14px; min-height: 61px; gap: 8px; }
  .index-type { font-size: 12px; }
  .index-name { font-size: 14px; }
  .index-top { font-size: 12px; }
  .index-bottom { font-size: 12px; }
  .hero-rule { right: 20px; left: 20px; bottom: 20px; }
  .work-section { padding-block: 76px 80px; }
  .section-heading { display: block; margin-bottom: 32px; }
  .section-heading h2, .team-heading h2, .closing-section h2, .github-heading h2, .portfolio-cta h2 { font-size: clamp(38px, 10vw, 50px); }
  .section-intro { margin-top: 18px; font-size: 14px; }
  .project-row, .project-row-reverse, .portfolio-project, .portfolio-project-reverse { grid-template-columns: 1fr; gap: 22px; padding-block: 30px; }
  .project-row-reverse .project-visual, .portfolio-project-reverse .portfolio-visual { order: 0; }
  .project-row-reverse .project-copy, .portfolio-project-reverse .portfolio-copy { order: 0; }
  .project-visual, .portfolio-visual { aspect-ratio: 1.35; }
  .mini-content { grid-template-columns: 23% 1fr; }
  .mini-sidebar { padding: 15px 10px; }
  .mini-order { padding-block: 7px; }
  .mini-orders { padding: 16px; }
  .project-copy h3 { margin-top: 16px; font-size: 31px; }
  .project-copy p, .portfolio-copy p { font-size: 14px; }
  .visual-label { top: 15px; left: 16px; font-size: 14px; }
  .visual-nookly img, .portfolio-project .visual-nookly img { top: 7px; height: 112%; }
  .bj-path { justify-content: flex-start; flex-wrap: wrap; gap: 4px 7px; font-size: 12px; }
  .team-inner { grid-template-columns: 1fr; gap: 32px; padding-block: 74px 78px; }
  .team-list li { min-height: 59px; }
  .closing-section, .portfolio-cta { align-items: start; flex-direction: column; padding-block: 72px 78px; }
  .closing-section .button, .portfolio-cta .button { margin-top: 2px; }
  .site-footer { flex-wrap: wrap; justify-content: space-between; min-height: 110px; padding-block: 20px; }
  .footer-note { display: none; }
  .site-footer nav { gap: 15px; }
  .portfolio-hero-inner { padding-block: 62px 64px; }
  .portfolio-lede { margin-top: 21px; font-size: 15px; }
  .portfolio-work { padding-block: 16px 70px; }
  .portfolio-project:first-child { padding-top: 0; }
  .portfolio-copy h2 { font-size: 33px; }
  .project-links { gap: 12px 18px; }
  .github-section { padding-block: 72px 78px; }
  .github-heading { margin-bottom: 25px; }
  .repo-row { grid-template-columns: 40px minmax(0, 1fr) 25px; gap: 12px; padding-block: 18px; }
  .repo-kind { display: none; }
  .repo-copy p { font-size: 13px; }
  .repo-symbol { width: 34px; height: 34px; }
  .portfolio-cta { gap: 28px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
