:root {
  color-scheme: light;
  --paper: #f6f4ee;
  --paper-deep: #ece9df;
  --ink: #18342e;
  --muted: #65746d;
  --line: rgba(24, 52, 46, .16);
  --orange: #da6844;
  --lime: #d5e6a1;
  --serif: "Iowan Old Style", "Palatino Linotype", "Book Antiqua", "Noto Serif SC", serif;
  --sans: Inter, "Noto Sans SC", "Microsoft YaHei", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
}
body::before {
  position: fixed;
  z-index: -1;
  inset: 0;
  background-image: radial-gradient(rgba(24, 52, 46, .08) .65px, transparent .65px);
  background-size: 8px 8px;
  content: "";
  opacity: .22;
  pointer-events: none;
}
a { color: inherit; text-decoration: none; }
button, a { -webkit-tap-highlight-color: transparent; }
a:focus-visible, button:focus-visible { outline: 2px solid var(--orange); outline-offset: 5px; }
.wrap { width: min(1160px, calc(100% - 64px)); margin: 0 auto; }
.skip-link {
  position: fixed; z-index: 20; top: 12px; left: 12px;
  padding: 12px 16px; transform: translateY(-160%);
  background: var(--ink); color: white; border-radius: 99px;
}
.skip-link:focus { transform: translateY(0); }
.topbar {
  display: flex; height: 88px; align-items: center; justify-content: space-between;
  border-bottom: 1px solid var(--line);
}
.brand { display: inline-flex; align-items: center; gap: 11px; font-size: 14px; font-weight: 650; letter-spacing: .04em; }
.brand-mark { display: grid; width: 31px; height: 31px; place-items: center; border: 1px solid var(--ink); border-radius: 50%; font-family: var(--serif); font-size: 17px; }
.nav { display: flex; align-items: center; gap: 34px; font-size: 13px; color: var(--muted); }
.nav a { transition: color .2s ease; }
.nav a:hover { color: var(--orange); }
.nav .nav-contact { padding: 11px 17px; color: var(--paper); background: var(--ink); border-radius: 99px; }
.nav .nav-contact:hover { color: white; background: var(--orange); }
.menu-toggle { display: none; border: 0; background: transparent; color: var(--ink); font: inherit; }

.hero { display: grid; min-height: 650px; grid-template-columns: 1.07fr .93fr; align-items: center; gap: 56px; padding: 84px 0 96px; }
.eyebrow { display: flex; align-items: center; gap: 10px; color: var(--muted); font-size: 11px; letter-spacing: .16em; text-transform: uppercase; }
.eyebrow::before { width: 24px; height: 1px; background: var(--orange); content: ""; }
h1 { margin: 27px 0 24px; font-size: clamp(54px, 7vw, 92px); font-weight: 500; letter-spacing: -.075em; line-height: 1.12; }
h1 span { color: var(--orange); font-family: var(--serif); font-weight: 400; font-style: italic; letter-spacing: -.055em; }
.hero-copy { max-width: 480px; margin: 0; color: var(--muted); font-size: 16px; line-height: 1.95; }
.hero-actions { display: flex; align-items: center; gap: 25px; margin-top: 34px; }
.button { display: inline-flex; min-height: 48px; align-items: center; justify-content: center; gap: 11px; padding: 0 20px; border: 1px solid var(--ink); border-radius: 99px; font-size: 13px; transition: .2s ease; }
.button-primary { color: var(--paper); background: var(--ink); }
.button-primary:hover { border-color: var(--orange); background: var(--orange); }
.text-link { display: inline-flex; align-items: center; gap: 8px; color: var(--muted); font-size: 13px; }
.text-link:hover { color: var(--orange); }
.arrow { font-size: 17px; transition: transform .2s ease; }
a:hover .arrow { transform: translate(3px, -2px); }
.hero-note { display: flex; align-items: center; gap: 12px; margin-top: 58px; color: var(--muted); font-size: 11px; letter-spacing: .08em; }
.note-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--orange); box-shadow: 0 0 0 4px rgba(218, 104, 68, .13); }

.hero-art { position: relative; min-height: 440px; display: grid; place-items: center; }
.art-shadow { position: absolute; width: min(420px, 90%); height: 330px; transform: rotate(-8deg) translate(-10px, 10px); background: #d5dfc7; border-radius: 48% 52% 42% 58% / 54% 42% 58% 46%; }
.art-card { position: relative; width: min(420px, 100%); height: 370px; overflow: hidden; padding: 25px; transform: rotate(3deg); border: 1px solid rgba(24, 52, 46, .13); border-radius: 7px; background: #f9f8f2; box-shadow: 0 24px 60px rgba(28, 51, 42, .11); }
.art-card::before { position: absolute; right: -74px; bottom: -135px; width: 310px; height: 310px; border: 1px solid rgba(24, 52, 46, .26); border-radius: 50%; box-shadow: 0 0 0 25px rgba(24, 52, 46, .04), 0 0 0 51px rgba(24, 52, 46, .035), 0 0 0 78px rgba(24, 52, 46, .025); content: ""; }
.art-top { display: flex; justify-content: space-between; color: var(--muted); font-size: 10px; letter-spacing: .13em; }
.art-number { position: absolute; top: 76px; left: 32px; color: var(--orange); font-family: var(--serif); font-size: 18px; font-style: italic; }
.art-monogram { position: absolute; top: 94px; left: 44px; font-family: var(--serif); font-size: clamp(112px, 18vw, 184px); letter-spacing: -.13em; line-height: .9; }
.art-orbit { position: absolute; top: 94px; right: 31px; width: 124px; height: 124px; border: 1px solid var(--orange); border-radius: 50%; }
.art-orbit::before, .art-orbit::after { position: absolute; inset: 14px; border: 1px solid rgba(218, 104, 68, .5); border-radius: 50%; content: ""; }
.art-orbit::after { inset: 32px; background: var(--lime); border: 0; }
.art-caption { position: absolute; bottom: 25px; left: 26px; display: flex; width: calc(100% - 52px); align-items: end; justify-content: space-between; padding-top: 14px; border-top: 1px solid var(--line); }
.art-caption strong { display: block; font-size: 13px; font-weight: 600; }
.art-caption small { display: block; margin-top: 5px; color: var(--muted); font-size: 10px; letter-spacing: .08em; }
.art-caption .art-symbol { color: var(--orange); font-size: 25px; }
.art-sticker { position: absolute; z-index: 2; right: 2px; bottom: 22px; display: grid; width: 94px; height: 94px; place-items: center; transform: rotate(9deg); border-radius: 50%; background: var(--orange); color: #fff8e9; font-family: var(--serif); font-size: 13px; line-height: 1.35; text-align: center; }

.section { padding: 105px 0; border-top: 1px solid var(--line); }
.section-head { display: grid; grid-template-columns: .8fr 1.2fr; align-items: end; gap: 38px; margin-bottom: 48px; }
.section-kicker { margin: 0 0 14px; color: var(--orange); font-size: 11px; letter-spacing: .16em; text-transform: uppercase; }
h2 { margin: 0; font-size: clamp(34px, 5vw, 58px); font-weight: 500; letter-spacing: -.065em; line-height: 1.23; }
.section-intro { max-width: 490px; margin: 0 0 5px; color: var(--muted); font-size: 14px; line-height: 1.9; }
.projects { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.project { min-height: 360px; display: flex; flex-direction: column; padding: 18px; border: 1px solid var(--line); border-radius: 4px; background: rgba(255,255,255,.27); transition: transform .25s ease, background .25s ease; }
.project:hover { transform: translateY(-5px); background: rgba(255,255,255,.62); }
.project-visual { position: relative; min-height: 220px; display: grid; overflow: hidden; place-items: center; background: var(--paper-deep); }
.project-visual--media { background: #e4e9d7; }
.project-visual--fuckcut { background: #eee1d6; }
.project-visual--export { background: #dce7e5; }
.project-visual--editorial { background: #e9e5da; }
.project-logo { position: absolute; z-index: 1; left: 25px; width: 106px; height: 106px; object-fit: contain; border: 1px solid rgba(24,52,46,.12); border-radius: 7px; background: #fff; box-shadow: 0 10px 24px rgba(24,52,46,.1); }
.project-logo--fuckcut { left: 50%; width: 119px; height: 119px; transform: translateX(-50%); }
.mini-window { position: absolute; top: 49px; right: 22px; width: 47%; padding: 12px; border: 1px solid rgba(24,52,46,.16); border-radius: 5px; background: rgba(255,255,255,.82); box-shadow: 0 8px 22px rgba(24,52,46,.08); }
.mini-window-head { display: flex; justify-content: space-between; margin-bottom: 10px; color: var(--muted); font-size: 8px; letter-spacing: .08em; }
.mini-row { display: flex; align-items: center; gap: 7px; margin-top: 7px; }
.mini-row i { width: 7px; height: 7px; flex: 0 0 auto; border-radius: 50%; background: var(--orange); }
.mini-row b { height: 5px; flex: 1; border-radius: 9px; background: rgba(24,52,46,.16); }
.mini-row:nth-child(3) b { max-width: 73%; }
.mini-row:nth-child(4) b { max-width: 86%; }
.waveform { position: absolute; right: 13%; bottom: 37px; left: 13%; display: flex; height: 32px; align-items: center; justify-content: center; gap: 3px; opacity: .8; }
.waveform i { width: 3px; height: var(--h, 14px); border-radius: 3px; background: var(--orange); }
.waveform i:nth-child(3n) { background: var(--ink); }
.timeline-art { width: 76%; padding: 14px; border: 1px solid rgba(24,52,46,.2); border-radius: 5px; background: rgba(255,255,255,.78); box-shadow: 0 12px 26px rgba(24,52,46,.08); }
.timeline-label { display: flex; justify-content: space-between; margin-bottom: 12px; color: var(--muted); font-size: 8px; letter-spacing: .1em; }
.timeline-track { position: relative; height: 13px; margin-top: 6px; border-radius: 2px; background: rgba(24,52,46,.08); }
.timeline-track::before { position: absolute; top: 2px; bottom: 2px; left: var(--start, 8%); width: var(--length, 47%); border-radius: 2px; background: var(--orange); content: ""; }
.timeline-track:nth-child(3)::before { background: #779888; }
.timeline-track:nth-child(4)::before { background: #b9c877; }
.editorial-sheet { position: relative; width: 70%; height: 142px; overflow: hidden; padding: 17px; background: #f9f8f4; box-shadow: 0 12px 27px rgba(24,52,46,.12); }
.editorial-sheet::before { position: absolute; top: 17px; right: -26px; width: 130px; height: 130px; border: 1px solid #111; border-radius: 50%; box-shadow: 0 0 0 14px rgba(0,0,0,.07), 0 0 0 30px rgba(0,0,0,.04); content: ""; }
.editorial-title { position: relative; z-index: 1; display: block; color: #111; font-family: var(--serif); font-size: 32px; letter-spacing: -.05em; }
.editorial-subtitle { position: absolute; bottom: 16px; left: 17px; color: #111; font-size: 8px; letter-spacing: .15em; }
.project-index { position: absolute; z-index: 2; top: 14px; left: 15px; color: var(--muted); font-size: 10px; letter-spacing: .1em; }
.project-type { margin: 19px 0 8px; color: var(--orange); font-size: 10px; letter-spacing: .12em; text-transform: uppercase; }
.project h3 { margin: 0; font-size: 19px; font-weight: 550; letter-spacing: -.035em; }
.project p { margin: 9px 0 0; color: var(--muted); font-size: 12px; line-height: 1.8; }
.project-foot { display: flex; justify-content: space-between; margin-top: auto; padding-top: 20px; color: var(--muted); font-size: 10px; }
.project-foot span:last-child, .project-foot a { color: var(--orange); }
.project-foot a { font-size: 10px; }

.about { display: grid; grid-template-columns: .82fr 1.18fr; gap: 100px; align-items: start; }
.about-stamp { position: sticky; top: 28px; display: grid; width: 180px; height: 180px; place-items: center; border: 1px solid var(--ink); border-radius: 50%; }
.about-stamp::before { position: absolute; inset: 10px; border: 1px dashed rgba(24,52,46,.4); border-radius: 50%; content: ""; }
.about-stamp span { font-family: var(--serif); font-size: 51px; font-style: italic; }
.about-copy { max-width: 650px; }
.about-lead { margin: 0 0 21px; font-size: clamp(23px, 3vw, 34px); letter-spacing: -.045em; line-height: 1.55; }
.about-body { margin: 0; color: var(--muted); font-size: 14px; line-height: 2; }
.about-details { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 42px; padding-top: 22px; border-top: 1px solid var(--line); }
.detail-label { display: block; margin-bottom: 8px; color: var(--orange); font-size: 10px; letter-spacing: .1em; }
.detail-value { color: var(--muted); font-size: 12px; line-height: 1.7; }

.contact { position: relative; overflow: hidden; padding: 76px 68px; background: var(--ink); color: var(--paper); }
.contact::after { position: absolute; top: -150px; right: -26px; width: 430px; height: 430px; border: 1px solid rgba(246,244,238,.2); border-radius: 50%; box-shadow: 0 0 0 32px rgba(246,244,238,.035), 0 0 0 65px rgba(246,244,238,.025); content: ""; }
.contact .section-kicker { color: var(--lime); }
.contact-inner { position: relative; z-index: 1; display: flex; align-items: end; justify-content: space-between; gap: 30px; }
.contact h2 { max-width: 600px; }
.contact-copy { max-width: 470px; margin: 18px 0 0; color: rgba(246,244,238,.7); font-size: 13px; line-height: 1.9; }
.contact .button { flex: 0 0 auto; border-color: var(--lime); color: var(--ink); background: var(--lime); }
.contact .button:hover { border-color: var(--orange); color: white; background: var(--orange); }
footer { display: flex; justify-content: space-between; gap: 20px; padding: 24px 0 34px; color: var(--muted); font-size: 10px; letter-spacing: .04em; }
.footer-right { display: flex; gap: 23px; }

@media (max-width: 850px) {
  .wrap { width: min(100% - 42px, 680px); }
  .hero { min-height: auto; grid-template-columns: 1fr; gap: 28px; padding: 72px 0 78px; }
  .hero-art { min-height: 380px; }
  .section { padding: 78px 0; }
  .section-head { grid-template-columns: 1fr; gap: 20px; }
  .projects { grid-template-columns: 1fr 1fr; }
  .about { grid-template-columns: .45fr 1fr; gap: 38px; }
  .about-stamp { width: 130px; height: 130px; }
  .about-stamp span { font-size: 40px; }
  .contact { padding: 58px 38px; }
  .contact-inner { align-items: start; flex-direction: column; }
}
@media (max-width: 560px) {
  .wrap { width: calc(100% - 36px); }
  .topbar { height: 72px; }
  .menu-toggle { display: inline-flex; align-items: center; gap: 8px; padding: 10px 0; cursor: pointer; font-size: 12px; }
  .menu-toggle span { width: 18px; height: 1px; background: var(--ink); box-shadow: 0 5px 0 var(--ink); }
  .nav { position: absolute; z-index: 10; top: 64px; right: 18px; left: 18px; display: none; align-items: stretch; flex-direction: column; gap: 0; padding: 8px; border: 1px solid var(--line); background: var(--paper); box-shadow: 0 14px 30px rgba(24,52,46,.1); }
  .nav.is-open { display: flex; }
  .nav a { padding: 13px; }
  .nav .nav-contact { margin-top: 4px; text-align: center; }
  .hero { padding: 56px 0 60px; }
  h1 { margin-top: 23px; font-size: clamp(50px, 15vw, 72px); }
  .hero-copy { font-size: 14px; }
  .hero-actions { gap: 17px; }
  .hero-note { margin-top: 35px; }
  .hero-art { min-height: 330px; margin: 0 -7px; }
  .art-card { height: 300px; padding: 18px; }
  .art-monogram { top: 83px; left: 26px; font-size: 130px; }
  .art-orbit { top: 81px; right: 23px; width: 98px; height: 98px; }
  .art-caption { bottom: 19px; left: 19px; width: calc(100% - 38px); }
  .art-sticker { right: -1px; bottom: 8px; width: 78px; height: 78px; font-size: 11px; }
  .section { padding: 65px 0; }
  .projects { grid-template-columns: 1fr; gap: 13px; }
  .project, .project:last-child { grid-column: auto; min-height: 330px; }
  .project-visual, .project:last-child .project-visual { min-height: 175px; }
  .about { grid-template-columns: 1fr; gap: 30px; }
  .about-stamp { position: relative; top: auto; width: 105px; height: 105px; }
  .about-stamp span { font-size: 32px; }
  .about-stamp::before { inset: 6px; }
  .about-details { grid-template-columns: 1fr; gap: 17px; }
  .contact { width: 100%; padding: 46px 24px; }
  .contact::after { top: -70px; right: -230px; }
  .contact h2 { font-size: 39px; }
  footer { flex-direction: column; }
  .footer-right { gap: 15px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; }
}

/* Project cards keep native links, including their separate GitHub links. */
.project { position: relative; }
.project-link::after { position: absolute; inset: 0; z-index: 1; content: ""; }
.project:focus-within { outline: 2px solid var(--orange); outline-offset: 4px; }
.project-links { display: flex; align-items: center; gap: 17px; }
.project-links a { position: relative; z-index: 2; }
.project-links .project-open { color: var(--orange); white-space: nowrap; }
.project-links .project-status { color: var(--muted); }
.detail-nav { display: flex; align-items: center; gap: 25px; color: var(--muted); font-size: 12px; }
.detail-nav a:hover { color: var(--orange); }
.detail-breadcrumb { display: inline-flex; align-items: center; gap: 9px; margin-top: 35px; color: var(--muted); font-size: 12px; }
.detail-breadcrumb:hover { color: var(--orange); }
.detail-hero { display: grid; grid-template-columns: 1.12fr .88fr; align-items: center; gap: 65px; padding: 45px 0 50px; }
.detail-title { margin: 20px 0; font-size: clamp(37px, 5vw, 66px); line-height: 1.15; letter-spacing: -.045em; overflow-wrap: anywhere; }
.detail-deck { margin: 0; font-size: 21px; line-height: 1.6; letter-spacing: -.025em; }
.detail-hero .hero-copy { margin-top: 18px; font-size: 14px; }
.detail-visual { min-height: 310px; border-radius: 4px; }
.detail-visual .project-logo { width: 122px; height: 122px; }
.detail-visual .project-logo--fuckcut { width: 142px; height: 142px; }
.detail-visual .mini-window { top: 94px; }
.detail-visual .waveform { bottom: 48px; }
.detail-meta { display: grid; grid-template-columns: 1fr 1fr 1.5fr; gap: 25px; margin: 0; padding: 25px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.detail-meta dt { margin-bottom: 8px; color: var(--orange); font-size: 10px; letter-spacing: .08em; }
.detail-meta dd { margin: 0; font-size: 12px; line-height: 1.8; }
.detail-body { display: grid; grid-template-columns: .3fr 1fr; gap: 65px; padding: 55px 0 30px; }
.detail-aside { align-self: start; position: sticky; top: 30px; display: flex; flex-direction: column; gap: 19px; font-size: 12px; color: var(--muted); }
.detail-aside a:hover { color: var(--orange); }
.detail-aside .section-kicker { margin-bottom: 3px; }
.detail-section { padding: 0 0 33px; margin-bottom: 33px; border-bottom: 1px solid var(--line); scroll-margin-top: 28px; }
.detail-section h2 { font-size: 27px; letter-spacing: -.03em; }
.detail-section p { margin: 17px 0 0; color: var(--muted); font-size: 14px; line-height: 2; }
.detail-features { display: grid; grid-template-columns: 1fr 1fr; gap: 28px 35px; padding: 0; margin: 25px 0 0; list-style: none; }
.detail-features h3 { margin: 0; font-size: 15px; font-weight: 550; }
.detail-features p { margin-top: 8px; font-size: 13px; }
.detail-steps { margin: 24px 0 0; padding: 0; list-style: none; counter-reset: steps; }
.detail-steps li { display: grid; grid-template-columns: 34px 1fr; gap: 16px; padding: 15px 0; border-top: 1px solid var(--line); counter-increment: steps; }
.detail-steps li::before { padding-top: 3px; content: "0" counter(steps); font-family: var(--serif); font-size: 18px; color: var(--orange); }
.detail-steps h3 { margin: 0; font-size: 14px; font-weight: 550; }
.detail-steps p { margin-top: 6px; font-size: 13px; }
.detail-resource { display: flex; align-items: center; flex-wrap: wrap; gap: 18px; margin-top: 25px; }
.detail-pagination { display: flex; align-items: center; justify-content: space-between; gap: 25px; padding: 27px 0 45px; }
.detail-next { text-align: right; max-width: 65%; }
.detail-next small { display: block; margin-bottom: 7px; color: var(--muted); font-size: 10px; }
.detail-next strong { font-size: 15px; font-weight: 500; }
.detail-next:hover strong { color: var(--orange); }
@media (max-width: 850px) {
  .detail-hero { gap: 30px; }
  .detail-visual { min-height: 265px; }
  .detail-visual .project-logo:not(.project-logo--fuckcut) { width: 90px; height: 90px; left: 15px; }
  .detail-body { grid-template-columns: 1fr; gap: 28px; }
  .detail-aside { position: static; flex-direction: row; flex-wrap: wrap; gap: 16px; padding-bottom: 25px; border-bottom: 1px solid var(--line); }
  .detail-aside .section-kicker { display: none; }
}
@media (max-width: 560px) {
  .detail-nav { gap: 17px; font-size: 11px; }
  .detail-breadcrumb { margin-top: 25px; }
  .detail-hero { grid-template-columns: 1fr; padding: 30px 0; }
  .detail-title { font-size: 41px; margin: 17px 0; }
  .detail-deck { font-size: 18px; }
  .detail-visual { min-height: 235px; }
  .detail-visual .project-logo:not(.project-logo--fuckcut) { width: 110px; height: 110px; left: 25px; }
  .detail-visual .mini-window { top: 65px; }
  .detail-meta { grid-template-columns: 1fr 1fr; gap: 20px; }
  .detail-meta div:last-child { grid-column: 1 / -1; }
  .detail-body { padding-top: 32px; }
  .detail-features { grid-template-columns: 1fr; gap: 22px; }
  .detail-section h2 { font-size: 25px; }
  .detail-pagination { align-items: start; }
  .detail-next strong { font-size: 13px; overflow-wrap: anywhere; }
}
