/* ============================================================
   FOHOK · official site
   Pure white / black · aligned grid · blur motion
   ============================================================ */
.skip-link { position: fixed; top: 10px; left: 10px; z-index: 2000; padding: 10px 14px; background: var(--ink); color: var(--bg); font-family: var(--mono); font-size: 10px; letter-spacing: .06em; transform: translateY(-160%); transition: transform .2s var(--ease); }
.skip-link:focus { transform: none; }
.scroll-progress { position: fixed; top: 0; left: 0; right: 0; z-index: 1400; height: 2px; pointer-events: none; }
.scroll-progress span { display: block; height: 100%; background: var(--ink); transform: scaleX(var(--progress, 0)); transform-origin: left; transition: transform .08s linear; }
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-h);
  background: var(--bg);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; gap: 40px; height: 100%; }
.brand { display: flex; align-items: center; gap: 14px; min-width: 0; flex-shrink: 0; }
.brand-logo {
  width: 56px;
  height: 56px;
  color: var(--ink);
  display: grid;
  place-items: center;
  overflow: visible;
  flex-shrink: 0;
  font-size: 18px;
  font-weight: 800;
}
.brand-logo img { display: block; width: 100%; height: 100%; object-fit: contain; transition: transform .35s var(--ease); }
.brand:hover .brand-logo img { transform: scale(1.06); }
.brand-text { display: flex; flex-direction: column; min-width: 0; line-height: 1.1; }
.brand-name { display: block; max-width: min(360px, 36vw); overflow: hidden; white-space: nowrap; text-overflow: ellipsis; font-size: 18px; font-weight: 800; letter-spacing: -.03em; }
.brand-name-short { display: none; }
.brand-sub { margin-top: 4px; font-family: var(--mono); font-size: 9px; letter-spacing: .16em; color: var(--muted); }

.desktop-nav { display: flex; align-items: center; gap: 28px; }
.desktop-nav a { position: relative; padding: 6px 0; font-size: 12.5px; color: var(--muted); transition: color .2s; }
.desktop-nav a::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: var(--ink); transform: scaleX(0); transform-origin: left; transition: transform .3s var(--ease); }
.desktop-nav a:hover { color: var(--ink); }
.desktop-nav a:hover::after { transform: scaleX(1); }
.desktop-nav a.is-active { color: var(--ink); }
.desktop-nav a.is-active::after { transform: scaleX(1); }

.header-actions { display: flex; align-items: center; gap: 10px; margin-left: auto; }
.header-cta { display: inline-flex; align-items: center; gap: 5px; padding: 8px 0; font-size: 12px; font-weight: 600; border-bottom: 1px solid var(--ink); }
.header-cta .icon { transition: transform .25s var(--ease); }
.header-cta:hover .icon { transform: translate(2px, -2px); }
.menu-btn { display: none; align-items: center; gap: 8px; height: 42px; padding: 0 12px; border: 1px solid var(--line); color: var(--ink); }
.menu-btn-lines { display: flex; flex-direction: column; gap: 5px; width: 14px; }
.menu-btn-lines i { display: block; width: 100%; height: 1px; background: currentColor; }
.menu-btn-text { font-family: var(--mono); font-size: 9px; letter-spacing: .1em; text-transform: uppercase; }

/* ---------- mobile menu ---------- */
.mobile-menu { position: fixed; inset: 0; z-index: 500; background: var(--bg); opacity: 0; transition: opacity .3s var(--ease); overflow-y: auto; }
.mobile-menu.is-open { opacity: 1; }
.mobile-menu-inner { min-height: 100%; display: flex; flex-direction: column; }
.mobile-menu-top { display: flex; align-items: center; justify-content: space-between; height: var(--header-h); border-bottom: 1px solid var(--line); }
.mobile-menu-brand { display: flex; flex-direction: column; line-height: 1.1; font-size: 14px; font-weight: 800; }
.mobile-menu-brand small { margin-top: 3px; font-family: var(--mono); font-size: 8px; font-weight: 400; letter-spacing: .14em; color: var(--muted); }
.mobile-menu-close { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border: 1px solid var(--line); }
.mobile-nav { border-top: 1px solid var(--line); margin-top: 40px; }
.mobile-nav a { display: flex; align-items: center; gap: 16px; padding: 22px 0; border-bottom: 1px solid var(--line); opacity: 0; filter: blur(10px); transform: translateY(12px); }
.mobile-menu.is-open .mobile-nav a { animation: menuLinkIn .6s var(--ease) forwards; animation-delay: calc(var(--i) * 60ms + 80ms); }
@keyframes menuLinkIn { to { opacity: 1; filter: blur(0); transform: none; } }
.mobile-nav-index { font-family: var(--mono); font-size: 10px; color: var(--muted-2); }
.mobile-nav-label { font-size: clamp(28px, 8vw, 40px); font-weight: 700; letter-spacing: -.05em; line-height: 1; }
.mobile-nav a .icon { margin-left: auto; color: var(--muted); }
.mobile-menu-foot { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; padding: 24px 0 30px; margin-top: auto; font-size: 12px; color: var(--muted); }
.mobile-menu-foot a { border-bottom: 1px solid var(--line); }
.mobile-menu-foot .icon-btn { margin-left: auto; }

/* ---------- hero ---------- */
.hero { padding: calc(var(--header-h) + 74px) 0 0; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 72px; align-items: start; }
.hero-eyebrow { opacity: 0; animation: heroEyebrowIn .9s var(--ease) .05s both; }
.hero-eyebrow .eyebrow-dot { animation: dotPulse 2.6s ease-in-out infinite; }
.hero-title { margin-top: 26px; font-size: clamp(3.2rem, 7.8vw, 7.2rem); line-height: .98; letter-spacing: -.06em; font-weight: 700; }
.hero-line { display: block; opacity: 0; animation: heroLineIn 1.1s var(--ease) both; }
.hero-line:nth-child(1) { animation-delay: .12s; }
.hero-line:nth-child(2) { animation-delay: .24s; }
.hero-line:nth-child(3) { animation-delay: .36s; }
.hero-line.is-muted { color: var(--muted); font-weight: 400; }
.hero-desc { max-width: 620px; margin-top: 30px; font-size: 15px; line-height: 1.85; color: var(--muted); opacity: 0; animation: heroIn .95s var(--ease) .44s both; }
.hero-actions { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: 32px; opacity: 0; animation: heroIn .9s var(--ease) .56s both; }
.hero-meta { border-top: 1px solid var(--line); opacity: 0; animation: metaIn 1s var(--ease) .34s both; }
.hero-meta-row { transition: background-color .25s var(--ease), padding-left .25s var(--ease); }
.hero-meta-row:hover { background: var(--surface); padding-left: 12px; }
.hero-meta-row { display: flex; align-items: baseline; justify-content: space-between; gap: 18px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.hero-meta-row span { font-family: var(--mono); font-size: 9px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted-2); }
.hero-meta-row strong, .hero-meta-row a { font-size: 12px; font-weight: 500; text-align: right; color: var(--ink-soft); word-break: break-word; }
.hero-meta-row a:hover { text-decoration: underline; text-underline-offset: 3px; }
.status-inline { display: inline-flex; align-items: center; gap: 7px; }
.status-inline i { width: 5px; height: 5px; background: var(--ink); display: inline-block; }
.hero-stats { position: relative; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)) auto; align-items: end; gap: 0; margin-top: 64px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.hero-stats::before { content: ''; position: absolute; top: -1px; left: 0; right: 0; height: 1px; background: var(--ink); transform: scaleX(0); transform-origin: left; animation: lineIn 1.2s var(--ease) .5s forwards; }
.hero-stat { animation: statIn .9s var(--ease) both; }
.hero-stat:nth-child(1) { animation-delay: .58s; }
.hero-stat:nth-child(2) { animation-delay: .66s; }
.hero-stat:nth-child(3) { animation-delay: .74s; }
.hero-stat { display: grid; grid-template-columns: auto 1fr; align-items: baseline; gap: 4px 16px; padding: 22px 24px 22px 0; border-right: 1px solid var(--line); }
.hero-stat .stat-no { grid-column: 1 / -1; font-family: var(--mono); font-size: 9px; color: var(--muted-2); }
.hero-stat strong { font-size: 30px; line-height: 1; letter-spacing: -.04em; font-weight: 700; }
.hero-stat > span:last-child { font-family: var(--mono); font-size: 9px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.hero-scroll { display: flex; align-items: center; gap: 10px; padding-bottom: 24px; font-family: var(--mono); font-size: 9px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted-2); }
.hero-scroll .icon { animation: arrowFloat 2.4s ease-in-out infinite; }
@keyframes heroLineIn { from { opacity: 0; filter: blur(16px); transform: translate3d(0, 42px, 0); } to { opacity: 1; filter: blur(0); transform: none; } }
@keyframes heroEyebrowIn { from { opacity: 0; filter: blur(6px); transform: translate3d(-18px, 0, 0); } to { opacity: 1; filter: blur(0); transform: none; } }
@keyframes heroIn { from { opacity: 0; filter: blur(18px); transform: translateY(22px); } to { opacity: 1; filter: blur(0); transform: none; } }
@keyframes metaIn { from { opacity: 0; filter: blur(12px); transform: translate3d(26px, 0, 0); } to { opacity: 1; filter: blur(0); transform: none; } }
@keyframes statIn { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes lineIn { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes dotPulse { 0%, 100% { opacity: 1; transform: scale(1); } 50% { opacity: .45; transform: scale(.72); } }
@keyframes arrowFloat { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(4px); } }

/* ---------- sections ---------- */
.section { padding: 108px 0; border-top: 1px solid var(--line); }
.section.products { border-top: 0; }
.section-head { display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-rows: auto auto; column-gap: 32px; row-gap: 18px; align-items: start; margin-bottom: 48px; }
.section-head .section-kicker, .section-head .section-heading, .section-head .section-side { opacity: 0; transform: translateY(16px); transition: opacity .75s var(--ease), transform .85s var(--ease); }
.section-head.in .section-kicker { opacity: 1; transform: none; transition-delay: .08s; }
.section-head.in .section-heading { opacity: 1; transform: none; transition-delay: .16s; }
.section-head.in .section-side { opacity: 1; transform: none; transition-delay: .24s; }
html:not(.js) .section-head > * { opacity: 1; transform: none; }
.section-kicker { grid-column: 1; grid-row: 1; }
.section-heading { grid-column: 1 / -1; grid-row: 2; }
.section-side { grid-column: 2; grid-row: 1; }
.section-kicker { display: flex; align-items: flex-start; gap: 10px; font-family: var(--mono); font-size: 9px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.section-kicker span:first-child { display: inline-flex; align-items: center; justify-content: center; width: 26px; height: 26px; border: 1px solid var(--line); color: var(--ink); letter-spacing: 0; }
.section-heading { min-width: 0; }
.section-title { font-size: clamp(2.4rem, 4.4vw, 4.1rem); line-height: .98; letter-spacing: -.055em; font-weight: 700; }
.section-desc { max-width: 520px; margin-top: 16px; font-size: 13px; line-height: 1.8; color: var(--muted); }
.section-side { display: flex; flex-direction: column; align-items: flex-end; gap: 12px; padding-top: 6px; }
.section-count { font-family: var(--mono); font-size: 10px; letter-spacing: .08em; color: var(--muted); white-space: nowrap; }
.section-count b { color: var(--ink); font-weight: 600; }

/* ---------- products ---------- */
.filter-bar { display: grid; grid-template-columns: minmax(220px, 2.1fr) repeat(3, minmax(120px, 1fr)) auto; gap: 12px; align-items: end; padding: 22px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.filter-search { position: relative; display: flex; align-items: center; }
.filter-search > .icon { position: absolute; left: 14px; color: var(--muted); pointer-events: none; }
.filter-search .input { height: 46px; padding-left: 42px; padding-right: 46px; }
.search-submit { position: absolute; right: 6px; width: 34px; height: 34px; display: grid; place-items: center; background: var(--ink); color: var(--bg); }
.search-submit:hover { background: var(--bg); color: var(--ink); border: 1px solid var(--ink); }
.filter-field { display: flex; flex-direction: column; gap: 6px; }
.filter-field > label { font-family: var(--mono); font-size: 9px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.filter-field .ui-select-trigger { height: 46px; min-height: 46px; }
.filter-actions { display: flex; align-items: center; height: 46px; padding-left: 4px; }
.products-bar { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.tabs { display: flex; align-items: center; gap: 22px; }
.tab { position: relative; padding: 2px 0 8px; font-size: 12px; color: var(--muted); transition: color .2s; }
.tab::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: var(--ink); transform: scaleX(0); transform-origin: left; transition: transform .28s var(--ease); }
.tab:hover { color: var(--ink); }
.tab.is-active { color: var(--ink); font-weight: 600; }
.tab.is-active::after { transform: scaleX(1); }
.products-note { font-family: var(--mono); font-size: 9px; letter-spacing: .06em; color: var(--muted-2); }

.product-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; background: var(--line); border-bottom: 1px solid var(--line); transition: filter .25s, opacity .25s; }
.product-grid.is-busy { filter: blur(7px); opacity: .45; pointer-events: none; }
.product-card { position: relative; display: flex; flex-direction: column; min-width: 0; background: var(--bg); cursor: pointer; animation: cardIn .7s var(--ease) both; animation-delay: calc(var(--i, 0) * 45ms); transition: background-color .25s, transform .4s var(--ease); }
.product-card:hover { background: var(--surface); transform: translateY(-4px); z-index: 2; }
.product-card::after { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 2px; background: var(--ink); transform: scaleX(0); transform-origin: left; transition: transform .4s var(--ease); }
.product-card:hover::after { transform: scaleX(1); }
@keyframes cardIn { from { opacity: 0; filter: blur(10px); transform: translateY(14px); } to { opacity: 1; filter: blur(0); transform: none; } }
.product-media { position: relative; display: grid; place-items: center; aspect-ratio: 16 / 10; overflow: hidden; background: var(--surface); border-bottom: 1px solid var(--line); }
.product-media.has-cover { background: var(--surface-2); }
.product-cover { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--ease), filter .6s var(--ease); }
.product-card:hover .product-cover { transform: scale(1.05); }
.media-icon { display: grid; place-items: center; width: 58px; height: 58px; border: 1px solid var(--line); color: var(--ink); background: var(--bg); }
.media-icon .icon { width: 25px; height: 25px; }
.media-index { position: absolute; top: 14px; left: 14px; font-family: var(--mono); font-size: 9px; letter-spacing: .08em; color: var(--muted); }
.media-cat { position: absolute; bottom: 14px; left: 14px; font-family: var(--mono); font-size: 9px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.has-cover .media-index, .has-cover .media-cat { color: var(--bg); mix-blend-mode: difference; }
.media-badge { position: absolute; top: 12px; right: 12px; padding: 4px 7px; background: var(--ink); color: var(--bg); font-family: var(--mono); font-size: 8px; letter-spacing: .1em; text-transform: uppercase; }
.product-body { display: flex; flex-direction: column; flex: 1; gap: 10px; padding: 18px 18px 17px; }
.product-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.product-name { font-size: 17px; line-height: 1.35; letter-spacing: -.02em; font-weight: 600; }
.product-arrow { display: flex; color: var(--muted); transition: color .2s, transform .3s var(--ease); }
.product-arrow .icon { width: 16px; height: 16px; }
.product-card:hover .product-arrow { color: var(--ink); transform: translate(2px, -2px); }
.product-summary { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; font-size: 12px; line-height: 1.7; color: var(--muted); }
.product-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: auto; padding-top: 10px; border-top: 1px solid var(--line); }
.product-code { font-family: var(--mono); font-size: 8.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted-2); }
.grid-empty { grid-column: 1 / -1; display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 72px 20px; background: var(--bg); text-align: center; }
.grid-empty-index { font-family: var(--mono); font-size: 36px; color: var(--line); }
.grid-empty p { font-size: 13px; color: var(--muted); }
.load-more-wrap { display: flex; justify-content: center; padding-top: 28px; }

/* ---------- projects ---------- */
.project-grid { display: flex; flex-direction: column; gap: 0; border-top: 1px solid var(--line); }
.project-card { display: grid; grid-template-columns: minmax(220px, 300px) minmax(0, 1fr); border: 0; border-bottom: 1px solid var(--line); background: transparent; cursor: pointer; transition: background-color .3s; }
.project-card:hover { background: var(--surface); }
.project-media { position: relative; aspect-ratio: auto; min-height: 200px; overflow: hidden; background: var(--surface); border-right: 1px solid var(--line); }
.project-cover { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.project-card:hover .project-cover { transform: scale(1.045); }
.project-placeholder-year { position: absolute; left: 18px; bottom: 8px; font-size: clamp(44px, 6vw, 82px); line-height: 1; font-weight: 700; letter-spacing: -.06em; color: var(--line); }
.project-placeholder-mark { position: absolute; right: 20px; bottom: 10px; font-size: 64px; line-height: 1; font-weight: 700; letter-spacing: -.06em; color: var(--line); }
.project-placeholder-label { position: absolute; left: 20px; top: 20px; font-family: var(--mono); font-size: 9px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.project-badge { position: absolute; top: 12px; right: 12px; padding: 4px 7px; background: var(--ink); color: var(--bg); font-family: var(--mono); font-size: 8px; letter-spacing: .1em; text-transform: uppercase; }
.project-body { display: flex; flex-direction: column; justify-content: center; padding: 28px 0 28px 32px; }
.project-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; font-family: var(--mono); font-size: 9px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.project-title-row { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; margin-top: 12px; }
.project-title { font-size: clamp(20px, 2.2vw, 28px); line-height: 1.15; letter-spacing: -.035em; font-weight: 700; }
.project-arrow { color: var(--muted); transition: color .2s, transform .3s var(--ease); }
.project-card:hover .project-arrow { color: var(--ink); transform: translate(2px, -2px); }
.project-summary { margin-top: 10px; font-size: 12.5px; line-height: 1.75; color: var(--muted); }
.tag-row { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 16px; }
.tag-row span { padding: 4px 7px; border: 1px solid var(--line); font-family: var(--mono); font-size: 8.5px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }

/* ---------- open source ---------- */
.repo-table { border-top: 1px solid var(--line); }
.repo-head, .repo-row { display: grid; grid-template-columns: minmax(0, 1fr) 120px 90px 110px 34px; gap: 16px; align-items: center; }
.repo-head { padding: 10px 0; border-bottom: 1px solid var(--line); font-family: var(--mono); font-size: 8.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted-2); }
.repo-row { padding: 18px 0; border-bottom: 1px solid var(--line); transition: background-color .25s, padding-left .3s var(--ease); }
.repo-row:hover { background: var(--surface); padding-left: 12px; }
.repo-main { display: flex; align-items: flex-start; gap: 16px; min-width: 0; }
.repo-index { font-family: var(--mono); font-size: 9px; color: var(--muted-2); padding-top: 4px; }
.repo-text { display: flex; flex-direction: column; gap: 5px; min-width: 0; }
.repo-text strong { display: inline-flex; align-items: center; gap: 8px; font-size: 16px; font-weight: 600; letter-spacing: -.015em; }
.repo-featured { font-family: var(--mono); font-size: 7px; font-style: normal; letter-spacing: .08em; text-transform: uppercase; padding: 2px 5px; background: var(--ink); color: var(--bg); }
.repo-text small { font-size: 12px; line-height: 1.6; color: var(--muted); }
.repo-lang { display: flex; align-items: center; gap: 7px; font-family: var(--mono); font-size: 10px; color: var(--muted); }
.repo-lang i { width: 6px; height: 6px; background: var(--ink); display: inline-block; }
.repo-stars { display: inline-flex; align-items: center; gap: 5px; font-family: var(--mono); font-size: 11px; color: var(--muted); }
.repo-stars em { font-style: normal; color: var(--muted-2); }
.repo-license { font-family: var(--mono); font-size: 10px; color: var(--muted); }
.repo-arrow { display: flex; justify-content: flex-end; color: var(--muted-2); transition: color .2s, transform .25s var(--ease); }
.repo-row:hover .repo-arrow { color: var(--ink); transform: translate(2px, -2px); }

/* ---------- about ---------- */
.about-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr); gap: 80px; align-items: start; }
.about-copy { max-width: 760px; }
.about-copy p { margin-bottom: 1.1em; font-size: clamp(16px, 1.7vw, 20px); line-height: 1.8; color: var(--ink-soft); }
.about-copy p:last-child { margin-bottom: 0; }
.about-copy p:first-child { font-size: clamp(17px, 1.9vw, 22px); color: var(--ink); }
.about-contact { border-top: 1px solid var(--line); }
.contact-row { display: flex; align-items: baseline; justify-content: space-between; gap: 18px; padding: 15px 0; border-bottom: 1px solid var(--line); transition: padding-left .3s var(--ease); }
a.contact-row:hover { padding-left: 8px; }
.contact-row span { font-family: var(--mono); font-size: 9px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted-2); }
.contact-row strong { font-size: 13px; font-weight: 500; text-align: right; color: var(--ink-soft); }
a.contact-row:hover strong { text-decoration: underline; text-underline-offset: 3px; }
.about-cta { padding-top: 18px; }

/* ---------- footer ---------- */
.site-footer { border-top: 1px solid var(--line); padding: 46px 0 24px; }
.footer-top { display: grid; grid-template-columns: 52px minmax(0, 1fr) auto; gap: 24px; align-items: center; padding-bottom: 30px; }
.footer-mark { display: grid; place-items: center; width: 48px; height: 48px; color: var(--ink); }
.footer-mark img { display: block; width: 100%; height: 100%; object-fit: contain; transition: transform .35s var(--ease); }
.footer-mark:hover img { transform: scale(1.06); }
.footer-note { max-width: 560px; font-size: 12px; line-height: 1.75; color: var(--muted); }
.footer-links { display: flex; align-items: center; gap: 18px; font-family: var(--mono); font-size: 9px; letter-spacing: .1em; text-transform: uppercase; }
.footer-links a { padding-bottom: 3px; border-bottom: 1px solid var(--line); color: var(--ink-soft); }
.footer-links a:hover { border-color: var(--ink); color: var(--ink); }
.footer-bottom { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding-top: 18px; border-top: 1px solid var(--line); font-family: var(--mono); font-size: 9px; letter-spacing: .04em; color: var(--muted-2); }
.footer-legal { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.footer-legal a:hover { color: var(--ink); }

/* ---------- responsive ---------- */
@media (max-width: 1120px) {
  .desktop-nav { display: none; }
  .menu-btn { display: inline-flex; }
  .brand-name { max-width: 260px; }
  .hero-grid { grid-template-columns: minmax(0, 1fr) 280px; gap: 48px; }
  .filter-bar { grid-template-columns: minmax(200px, 2fr) repeat(3, minmax(120px, 1fr)) auto; }
  .filter-actions { justify-content: flex-end; }
  .section-head { column-gap: 24px; }
}
@media (max-width: 900px) {
  .filter-bar { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .filter-search { grid-column: 1 / -1; }
  .filter-actions { justify-content: flex-end; }
  .section { padding: 84px 0; }
  .hero { padding-top: calc(var(--header-h) + 48px); }
  .hero-grid { grid-template-columns: 1fr; gap: 42px; }
  .hero-meta { max-width: 520px; }
  .hero-stats { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .hero-scroll { display: none; }
  .section-head { grid-template-columns: 1fr; grid-template-rows: auto; gap: 16px; margin-bottom: 34px; }
  .section-kicker, .section-heading, .section-side { grid-column: 1; grid-row: auto; }
  .section-side { flex-direction: row; align-items: center; justify-content: space-between; padding-top: 0; }
  .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .project-grid { gap: 0; }
  .project-card { grid-template-columns: minmax(180px, 230px) minmax(0, 1fr); }
  .project-media { min-height: 180px; }
  .project-body { padding: 24px 0 24px 24px; }
  .about-grid { grid-template-columns: 1fr; gap: 36px; }
  .footer-top { grid-template-columns: 52px minmax(0, 1fr); gap: 20px; padding-bottom: 26px; }
  .footer-links { grid-column: 2; justify-content: flex-start; }
  .footer-note { max-width: 600px; }
  .repo-head { display: none; }
  .repo-row { grid-template-columns: auto 1fr auto; gap: 8px 16px; padding: 18px 0; }
  .repo-main { grid-column: 1 / -1; }
  .repo-arrow { display: none; }
  .repo-lang, .repo-stars, .repo-license { padding-top: 4px; }
  .repo-lang { grid-column: 1; }
  .repo-license { grid-column: 2; justify-self: start; }
  .repo-stars { grid-column: 3; justify-self: end; }
}
@media (max-width: 720px) {
  :root { --header-h: 64px; }
  .container { padding: 0 20px; }
  .header-inner { gap: 16px; }
  .brand { gap: 10px; }
  .brand-logo { width: 42px; height: 42px; }
  .brand-name-full { display: none; }
  .brand-name-short { display: block; }
  .brand-name { max-width: calc(100vw - 286px); font-size: 15px; }
  .brand-sub { display: none; }
  .header-cta { display: none; }
  .hero { padding-top: calc(var(--header-h) + 40px); }
  .hero-title { margin-top: 22px; font-size: clamp(2.8rem, 12vw, 4.4rem); }
  .hero-desc { margin-top: 22px; font-size: 14px; }
  .hero-actions { margin-top: 24px; }
  .hero-actions .btn { flex: 1; min-width: 140px; }
  .hero-stats { margin-top: 42px; }
  .hero-stat { padding: 16px 12px 16px 0; grid-template-columns: 1fr; gap: 4px; }
  .hero-stat strong { font-size: 24px; }
  .hero-stat > span:last-child { font-size: 8px; }
  .section { padding: 68px 0; }
  .section-head { margin-bottom: 28px; }
  .section-title { font-size: clamp(2.2rem, 10vw, 3rem); }
  .section-desc { font-size: 12px; }
  .filter-bar { grid-template-columns: 1fr 1fr; gap: 10px; padding: 18px 0; }
  .filter-search { grid-column: 1 / -1; }
  .filter-actions { grid-column: 1 / -1; justify-content: flex-end; height: auto; padding-top: 4px; }
  .products-bar { align-items: flex-start; flex-direction: column; gap: 8px; }
  .product-grid { grid-template-columns: 1fr; }
  .project-placeholder-mark { font-size: 56px; }
  .project-card { grid-template-columns: 1fr; }
  .project-media { min-height: 0; aspect-ratio: 16 / 9; border-right: 0; border-bottom: 1px solid var(--line); }
  .project-body { padding: 18px 0 22px; }
  .about-copy p { font-size: 15px; }
  .about-copy p:first-child { font-size: 17px; }
  .footer-top { grid-template-columns: 44px minmax(0, 1fr); gap: 16px; }
  .footer-mark { width: 40px; height: 40px; }
  .footer-links { gap: 14px; font-size: 8px; }
  .footer-bottom { font-size: 8px; }
  .mobile-menu-top { height: 64px; }
  .mobile-nav { margin-top: 24px; }
  .mobile-nav a { padding: 18px 0; }
}
@media (max-width: 420px) {
  .brand-text { display: none; }
  .hero-title { font-size: 2.65rem; }
  .section-title { font-size: 2.35rem; }
  .footer-top { grid-template-columns: 40px minmax(0, 1fr); }
  .footer-links { flex-wrap: wrap; }
}



/* ---------- global search ---------- */
.search-overlay {
  position: fixed;
  inset: 0;
  z-index: 1200;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 10vh 24px 24px;
}
.search-scrim { position: absolute; inset: 0; background: rgba(0, 0, 0, .62); opacity: 0; transition: opacity .25s var(--ease); }
.search-panel {
  position: relative;
  display: flex;
  flex-direction: column;
  width: min(760px, 100%);
  max-height: min(72vh, 760px);
  background: var(--bg);
  border: 1px solid var(--ink);
  opacity: 0;
  filter: blur(8px);
  transform: translateY(-10px);
  transition: opacity .25s var(--ease), filter .35s var(--ease), transform .3s var(--ease);
}
.search-overlay.is-open .search-scrim { opacity: 1; }
.search-overlay.is-open .search-panel { opacity: 1; filter: blur(0); transform: none; }
.search-panel-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 11px 18px; border-bottom: 1px solid var(--line); }
.search-close { display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 32px; border: 1px solid var(--line); color: var(--ink); }
.search-close:hover { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.search-form { display: flex; align-items: center; gap: 12px; padding: 0 18px; border-bottom: 1px solid var(--line); }
.search-form > .icon { width: 20px; height: 20px; color: var(--muted); flex-shrink: 0; }
.search-form input { flex: 1; min-width: 0; height: 64px; border: 0; outline: 0; background: transparent; color: var(--ink); font-size: 17px; }
.search-form input::placeholder { color: var(--muted-2); }
.search-form kbd { font-family: var(--mono); font-size: 8px; letter-spacing: .08em; border: 1px solid var(--line); padding: 3px 6px; color: var(--muted-2); }
.search-results { flex: 1 1 auto; min-height: 140px; overflow-y: auto; padding: 8px 10px 12px; overscroll-behavior: contain; }
.search-group { padding-top: 6px; }
.search-group-label { display: flex; align-items: center; justify-content: space-between; padding: 7px 10px; font-family: var(--mono); font-size: 8px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted-2); }
.search-result { display: flex; align-items: center; gap: 12px; padding: 11px 10px; border: 1px solid transparent; transition: background-color .15s, border-color .15s; }
.search-result:hover, .search-result.is-active { background: var(--surface); border-color: var(--line); }
.search-result-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.search-result-main strong { font-size: 13.5px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.search-result-main small { font-size: 10.5px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.search-result-arrow { color: var(--muted-2); flex-shrink: 0; }
.search-result:hover .search-result-arrow { color: var(--ink); }
.search-result-meta { flex-shrink: 0; max-width: 34%; font-family: var(--mono); font-size: 8px; letter-spacing: .06em; color: var(--muted-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.search-result mark { background: transparent; color: inherit; border-bottom: 1px solid currentColor; }
.search-hint, .search-empty { padding: 34px 12px; text-align: center; font-size: 12px; color: var(--muted); }
.search-loading { display: flex; align-items: center; justify-content: center; gap: 9px; padding: 34px 12px; font-size: 12px; color: var(--muted); }
.search-panel-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 18px; border-top: 1px solid var(--line); font-family: var(--mono); font-size: 8px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted-2); }
.mobile-search-open { display: inline-flex; align-items: center; gap: 6px; color: var(--ink); border-bottom: 1px solid var(--ink); padding: 0 0 2px; }
.mobile-search-open .icon { width: 13px; height: 13px; }

/* ---------- empty content ---------- */
.hero-empty-note { display: flex; align-items: center; flex-wrap: wrap; gap: 7px; margin-top: 14px; font-family: var(--mono); font-size: 9px; letter-spacing: .06em; color: var(--muted); }
.hero-empty-note a { color: var(--ink); border-bottom: 1px solid currentColor; }
.section-empty { display: grid; grid-template-columns: 90px minmax(0, 1fr); gap: 28px; align-items: start; padding: 34px 0 10px; border-top: 1px solid var(--line); }
.section-empty-index { font-family: var(--mono); font-size: 28px; line-height: 1; color: var(--line); transition: transform 1s var(--ease); }
.section-empty.in .section-empty-index { transform: translateY(-7px); }
.section-empty-main h3 { font-size: clamp(18px, 2vw, 24px); letter-spacing: -.03em; font-weight: 700; }
.section-empty-main p { max-width: 540px; margin-top: 8px; font-size: 12.5px; line-height: 1.8; color: var(--muted); }
.section-empty-main .text-link { margin-top: 14px; color: var(--ink); }
.grid-empty { gap: 12px; }
.grid-empty .text-link { margin-top: 2px; }

/* ---------- back to top ---------- */
.back-top {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 90;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  background: var(--bg);
  color: var(--ink);
  font-size: 16px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity .25s var(--ease), visibility .25s, transform .25s var(--ease), background-color .2s, color .2s;
}
.back-top.is-visible { opacity: 1; visibility: visible; transform: none; }
.back-top:hover { background: var(--ink); color: var(--bg); border-color: var(--ink); }

/* ---------- deep link / modal actions ---------- */
.modal-actions .btn-ghost { border-color: var(--line); }
.modal-actions .btn-ghost:hover { border-color: var(--ink); }
.project-modal-placeholder { height: clamp(140px, 22vh, 220px); aspect-ratio: auto; }

@media (max-width: 720px) {
  .search-overlay { padding: 8vh 12px 16px; }
  .search-panel { max-height: 82vh; }
  .search-form input { height: 56px; font-size: 16px; }
  .search-form kbd { display: none; }
  .search-panel-foot { font-size: 7.5px; justify-content: flex-start; }
  .search-panel-foot span:last-child { display: none; }
  .section-empty { grid-template-columns: 1fr; gap: 10px; padding-top: 26px; }
  .section-empty-index { font-size: 20px; }
  .section-empty-main h3 { font-size: 18px; }
  .back-top { right: 14px; bottom: 14px; width: 40px; height: 40px; }
}

@media (prefers-reduced-motion: reduce) {
  .hero-eyebrow, .hero-line, .hero-desc, .hero-actions, .hero-meta, .hero-stat, .hero-stats::before { animation: none !important; opacity: 1 !important; filter: none !important; transform: none !important; }
  .hero-eyebrow .eyebrow-dot, .hero-scroll .icon { animation: none !important; }
  .section-head .section-kicker, .section-head .section-heading, .section-head .section-side { opacity: 1; transform: none; transition: none; }
  .product-card, .project-card, .repo-row, .contact-row, .btn, .brand-logo img, .scroll-progress span { transition: none; }
  .product-card:hover, .project-card:hover { transform: none; }
  .repo-row:hover, a.contact-row:hover { padding-left: 0; }
}
