:root { font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Microsoft YaHei UI', sans-serif; color: #f5f3ee; background: #050505; font-synthesis: none; }
* { box-sizing: border-box; }
html { min-width: 320px; }
body { margin: 0; min-height: 100vh; }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; }
[hidden] { display: none !important; }
.site-header, .site-footer { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.site-header { height: 76px; padding: 0 clamp(20px, 4vw, 60px); border-bottom: 1px solid #555; }
.wordmark { font-family: 'Noto Serif Display', 'Times New Roman', serif; font-size: 23px; font-weight: 700; font-variation-settings: 'wdth' 62.5, 'wght' 700; letter-spacing: .04em; }
.wordmark span { color: #fff; font-style: normal; }
.header-back { color: #d2d2cf; font-size: 11px; letter-spacing: .1em; }
.header-back:hover { color: #fff; text-decoration: underline; text-underline-offset: 4px; }
.site-footer { padding: 25px clamp(20px, 4vw, 60px); border-top: 1px solid #555; color: #a8a8a4; font-size: 10px; font-weight: 600; letter-spacing: .12em; }
.eyebrow { display: flex; align-items: center; gap: 10px; margin-bottom: auto; color: #fff; font-family: Consolas, ui-monospace, monospace; font-size: 11px; font-weight: 700; letter-spacing: .13em; }
.submission-page { display: flex; flex-direction: column; background: #080808; }
.submission-main { flex: 1; display: grid; grid-template-columns: minmax(0, 1fr) minmax(350px, 500px); align-items: stretch; gap: clamp(24px, 4vw, 60px); width: 100%; margin: auto; padding: clamp(24px, 4vw, 60px); }
.live-dot { flex: none; width: 8px; height: 8px; background: #fa443a; }
.intro { position: relative; isolation: isolate; display: flex; flex-direction: column; align-self: start; height: 760px; overflow: hidden; padding: clamp(25px, 3vw, 48px); border: 1px solid #555; background: #050505; }
.intro::before { content: ''; position: absolute; z-index: -1; inset: 0 0 45%; background: url('/images/home/dithering-effect.webp') center 27% / cover; }
.intro h1 { margin: 0 0 26px; font-family: 'Noto Serif Display', 'SimSun', serif; font-size: clamp(53px, 5.4vw, 90px); font-weight: 700; line-height: 1.15; letter-spacing: -.065em; }
.intro h1 em { color: #fff; font-style: normal; }
.intro p { max-width: 520px; margin: 0; color: #c7c7c3; font-size: 15px; line-height: 1.85; }
.facts { display: flex; flex-wrap: wrap; gap: 12px 20px; margin-top: 45px; padding-top: 18px; border-top: 1px solid #555; color: #a8a8a4; font-family: Consolas, ui-monospace, monospace; font-size: 10px; font-weight: 700; letter-spacing: .05em; }
.form-shell { position: relative; border: 1px solid #666; background: #0e0e0e; }
.form-shell::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 5px; background: linear-gradient(90deg, #fa443a 0 20%, #f2ea4a 20% 40%, #17c954 40% 60%, #5ad6e3 60% 80%, #077fd6 80%); }
.form-top, .form-foot { display: flex; justify-content: space-between; gap: 20px; padding: 22px 25px; color: #b4b4af; font-family: Consolas, ui-monospace, monospace; font-size: 10px; font-weight: 700; letter-spacing: .11em; }
.form-top { padding-top: 27px; border-bottom: 1px solid #555; }
.form-shell form { padding: 25px; }
.session-status { margin: 0 0 18px; padding: 12px 14px; border: 1px solid #707070; color: #f5f3ee; font-size: 12px; line-height: 1.5; }
.code-row { display: flex; gap: 9px; }
#sessionCode { min-width: 0; width: 100%; height: 51px; padding: 0 15px; border: 1px solid #666; border-radius: 0; outline: none; background: #080808; color: #fff; font-size: 19px; font-weight: 700; letter-spacing: .3em; }
#sessionCode:focus { border-color: #fff; }
.code-row button { min-width: 82px; border: 1px solid #f5f3ee; border-radius: 0; background: #f5f3ee; color: #080808; font-size: 12px; font-weight: 700; cursor: pointer; }
.code-row button:disabled { border-color: #555; background: #272727; color: #898985; cursor: default; }
.code-status { min-height: 20px; margin: 8px 0 18px; color: #bdbdb8; font-size: 11px; }
.code-status[data-kind="error"] { color: #fa443a; }
.code-status[data-kind="success"] { color: #17c954; }
.dropzone[aria-disabled="true"] { opacity: .55; cursor: default; }
.field-label { display: flex; align-items: center; justify-content: space-between; margin-bottom: 11px; color: #f5f3ee; font-size: 13px; font-weight: 600; }
.field-label span { color: #aaa; font-size: 10px; }
#submitter { width: 100%; height: 51px; padding: 0 15px; border: 1px solid #666; border-radius: 0; outline: none; background: #080808; color: #fff; font-size: 13px; }
#submitter:focus { border-color: #fff; }
#submitter::placeholder { color: #898985; }
.image-label { margin-top: 29px; }
.dropzone { min-height: 230px; display: grid; place-items: center; overflow: hidden; border: 1px solid #666; background: #080808; cursor: pointer; }
.dropzone:hover, .dropzone.dragging, .dropzone:focus-visible { border-color: #fff; outline: none; }
.drop-empty { display: flex; flex-direction: column; align-items: center; gap: 9px; text-align: center; }
.upload-mark { display: grid; place-items: center; width: 47px; height: 47px; margin-bottom: 8px; border: 1px solid #bcbcb8; color: #fff; font-size: 29px; font-weight: 400; }
.drop-empty strong { font-size: 13px; font-weight: 600; }
.drop-empty small { color: #aaa; font-size: 11px; }
.dropzone img { width: 100%; max-height: 360px; object-fit: contain; }
.file-details { display: flex; justify-content: space-between; gap: 15px; margin-top: 11px; color: #bdbdb8; font-size: 11px; }
.file-details span:first-child { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.file-details span:last-child { flex: 0 0 auto; }
.field-help { margin: 13px 0 22px; color: #aaa; font-size: 11px; line-height: 1.8; }
.verify { min-height: 65px; color: #aaa; font-size: 12px; }
.submit-button { width: 100%; display: flex; justify-content: space-between; align-items: center; padding: 17px 19px; border: 1px solid #f5f3ee; border-radius: 0; background: #f5f3ee; color: #080808; font-size: 13px; font-weight: 700; cursor: pointer; }
.submit-button:disabled { border-color: #555; background: #272727; color: #898985; cursor: default; }
.submit-button:not(:disabled):hover { background: #f2ea4a; border-color: #f2ea4a; }
.status { min-height: 18px; margin: 14px 0 0; color: #bdbdb8; font-size: 12px; line-height: 1.6; }
.status[data-kind="error"] { color: #fa443a; }
.status[data-kind="success"] { color: #17c954; }
.form-foot { display: block; border-top: 1px solid #555; font-weight: 400; letter-spacing: 0; line-height: 1.7; }
@media (max-width: 900px) {
  .submission-main { grid-template-columns: 1fr; max-width: 760px; gap: 24px; }
  .intro { height: 620px; }
}
@media (max-width: 500px) {
  .site-header { height: 68px; }
  .wordmark { font-size: 18px; }
  .submission-main { padding-bottom: 40px; }
  .intro { height: 560px; padding: 22px; }
  .intro h1 { font-size: clamp(46px, 10vw, 60px); }
  .intro p { font-size: 14px; }
  .facts { gap: 10px; margin-top: 28px; font-size: 9px; }
  .form-shell form { padding: 18px; }
  .form-top, .form-foot { padding: 18px; }
  .site-footer { flex-wrap: wrap; }
}

/* Portfolio pages share only their navigation and visual language with the submission flow. */
.portfolio-page { --paper: #000; --ink: #fff; --muted: #a8a9b0; --rule: #3a3a3a; --accent: #fff; --spectrum: linear-gradient(90deg, #ff0310 5%, #ff0521 14%, #ff680d 23%, #ffde03 32%, #fff6c0 41%, #eefcfd 50%, #00d5fd 59%, #01b0ff 68%, #017efc 77%, #0026e1 86%, #0300cd 95%); display: flex; flex-direction: column; background: var(--paper); color: var(--ink); }
.portfolio-page main { flex: 1; }
.portfolio-header, .portfolio-footer { display: flex; align-items: center; justify-content: space-between; gap: 24px; width: 100%; padding-left: clamp(24px, 5vw, 84px); padding-right: clamp(24px, 5vw, 84px); }
.portfolio-header { min-height: 82px; border-bottom: 1px solid var(--rule); }
.portfolio-brand { color: var(--ink); font-size: 23px; font-weight: 900; letter-spacing: -.08em; }
.brand-point { color: var(--ink); }
.portfolio-nav { display: flex; align-items: center; gap: clamp(18px, 3vw, 44px); }
.portfolio-nav a { padding: 10px 0; color: var(--ink); font-size: 12px; font-weight: 700; letter-spacing: .08em; transition: color .2s; }
.portfolio-nav a[aria-current], .portfolio-nav a:hover { color: var(--ink); }
.portfolio-nav a[aria-current] { border-bottom: 2px solid var(--ink); }
.portfolio-nav a:focus-visible, .portfolio-brand:focus-visible, .portfolio-page .text-link:focus-visible, .portfolio-footer a:focus-visible { outline: 2px solid #75c8ff; outline-offset: 5px; }
.portfolio-hero, .selected-work, .inner-page { width: min(100%, 1520px); margin-left: auto; margin-right: auto; padding-left: clamp(24px, 5vw, 84px); padding-right: clamp(24px, 5vw, 84px); }
.portfolio-hero { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, .94fr); gap: 0; padding-top: 0; padding-bottom: clamp(70px, 9vw, 140px); }
.hero-copy { display: flex; flex-direction: column; min-width: 0; padding-top: clamp(34px, 4vw, 64px); padding-right: 10px; }
.portfolio-kicker { margin: 0; color: var(--ink); font-size: 11px; font-weight: 800; letter-spacing: .24em; }
.hero-copy h1 { position: relative; z-index: 1; margin: auto 0; color: var(--accent); font-size: clamp(106px, 15.5vw, 234px); font-weight: 900; line-height: .92; letter-spacing: -.08em; white-space: nowrap; }
.title-stop { color: var(--ink); }
.hero-bottom { margin-top: auto; padding: 32px 20px 26px 0; border-top: 2px solid var(--accent); }
.hero-bottom p, .inner-description { max-width: 390px; margin: 0 0 22px; color: var(--ink); font-size: 15px; line-height: 1.7; }
.text-link { display: inline-flex; align-items: center; gap: 30px; padding: 10px 0; border-bottom: 2px solid var(--accent); color: var(--accent); font-size: 13px; font-weight: 800; letter-spacing: .04em; }
.text-link:hover { color: #00dfff; }
.hero-visual, .work-image, .inner-visual { margin: 0; }
.hero-visual { position: relative; min-width: 0; height: clamp(660px, 59vw, 900px); overflow: hidden; background: var(--accent); }
.hero-visual img, .work-image img, .inner-visual img { display: block; width: 100%; height: 100%; object-fit: cover; }
.hero-visual img { object-position: 50% 0; filter: grayscale(1) contrast(2.2) brightness(1.25); mix-blend-mode: multiply; }
.visual-index { position: absolute; top: 24px; right: 25px; color: #050605; font-size: 10px; font-weight: 900; letter-spacing: .18em; }
.selected-work { padding-bottom: clamp(80px, 11vw, 150px); }
.section-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 24px; padding: 20px 0 34px; border-top: 1px solid var(--rule); }
.section-heading h2 { margin: 0; color: var(--ink); font-size: 21px; font-weight: 800; }
.section-heading span { color: var(--muted); font-size: 10px; letter-spacing: .18em; }
.work-grid { display: grid; grid-template-columns: 1fr 1fr; column-gap: clamp(20px, 4vw, 60px); row-gap: 70px; }
.work-image { min-width: 0; }
.work-image:nth-child(even) { padding-top: 80px; }
.work-image img { height: clamp(430px, 49vw, 700px); background: #161713; }
.work-image:nth-child(2) img { object-position: 50% 34%; }
.work-image:nth-child(4) img { object-position: 50% 24%; }
.work-image figcaption { display: flex; justify-content: space-between; gap: 18px; padding-top: 12px; color: var(--muted); font-size: 11px; letter-spacing: .04em; }
.portfolio-footer { min-height: 74px; padding-top: 22px; padding-bottom: 22px; border-top: 1px solid var(--rule); color: var(--muted); font-size: 11px; font-weight: 700; letter-spacing: .08em; }
.portfolio-footer a { color: var(--ink); }
.inner-page { min-height: min(820px, calc(100vh - 156px)); }
.live-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, .9fr); gap: clamp(40px, 6vw, 100px); padding-top: clamp(50px, 7vw, 100px); padding-bottom: clamp(70px, 8vw, 110px); }
.inner-copy { display: flex; flex-direction: column; align-items: flex-start; }
.inner-copy h1 { margin: clamp(85px, 11vw, 160px) 0 32px; color: var(--ink); font-size: clamp(122px, 17vw, 270px); font-weight: 900; line-height: .9; letter-spacing: -.08em; white-space: nowrap; }
.live-state { display: flex; align-items: flex-start; gap: 16px; width: 100%; margin-top: auto; padding: 24px 0; border-top: 1px solid var(--rule); }
.state-dot { flex: 0 0 auto; width: 9px; height: 9px; margin-top: 4px; background: var(--muted); }
.state-dot.is-open { background: #00dfff; box-shadow: -2px 0 #ff002e, 2px 0 #1434ff; }
.state-label { color: var(--muted); font-size: 10px; letter-spacing: .15em; }
.live-state p { margin: 9px 0 0; font-size: 15px; }
.live-entry { margin-top: 22px; }
.inner-visual { position: relative; min-width: 0; min-height: 580px; overflow: hidden; background: #050505; }
.inner-visual img { object-position: 50% 50%; filter: grayscale(1) contrast(1.3) brightness(.58); }
.inner-visual::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, #05050588, transparent 38%); pointer-events: none; }
.contact-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, .85fr); gap: clamp(40px, 6vw, 100px); padding-top: clamp(50px, 7vw, 100px); padding-bottom: clamp(70px, 8vw, 110px); }
.contact-list { align-self: end; border-top: 1px solid var(--rule); }
.contact-row { display: flex; justify-content: space-between; gap: 24px; padding: 25px 0; border-bottom: 1px solid var(--rule); font-size: 15px; }
.contact-row span:last-child { color: var(--muted); }

@font-face { font-family: 'Libre Bodoni'; src: url('/fonts/LibreBodoni.ttf') format('truetype'); font-style: normal; font-weight: 400 700; font-display: swap; }
@font-face { font-family: 'Noto Serif Display'; src: url('/fonts/NotoSerifDisplay.ttf') format('truetype'); font-style: normal; font-weight: 100 900; font-stretch: 62.5% 100%; font-display: swap; }
.portfolio-home { overflow-x: clip; }
.portfolio-home .home-scroll { flex: none; height: 195svh; }
.portfolio-home .home-screen { --frame: clamp(12px, 1.6vw, 28px); position: sticky; top: 0; width: 100%; height: 100svh; overflow: hidden; background: #050505; }
.portfolio-home .home-visual { position: absolute; inset: var(--frame); overflow: hidden; }
.portfolio-home .home-image { position: absolute; top: -8vw; right: -3vw; display: block; width: 135%; height: auto; }
.portfolio-home .home-grain { position: absolute; inset: var(--frame); background: url('/images/home/grain.svg') repeat; mix-blend-mode: overlay; opacity: .18; animation: grain-shift .8s steps(1, end) infinite; pointer-events: none; }
.portfolio-home .home-letters { position: absolute; z-index: 2; inset: 0; clip-path: inset(0 0 0 0); pointer-events: none; }
.portfolio-home .home-shade { position: absolute; z-index: 3; inset: var(--frame); background: #0009; transform: translateY(100%); pointer-events: none; }
@keyframes grain-shift {
  0%, 100% { background-position: 0 0; }
  25% { background-position: 37px -19px; }
  50% { background-position: -29px 43px; }
  75% { background-position: 17px 61px; }
}
@media (prefers-reduced-motion: reduce) {
  .portfolio-home .home-grain { animation: none; }
}
.portfolio-home .home-title { position: absolute; z-index: 6; top: 62%; left: 50%; width: 64vw; margin: 0; transform: translate(-50%, -50%); color: #fff; font-family: 'Noto Serif Display', 'Times New Roman', serif; font-size: clamp(58px, 7vw, 220px); font-weight: 700; font-variation-settings: 'wdth' 62.5, 'wght' 700; line-height: 1; }
.portfolio-home .title-channel { pointer-events: none; }
.portfolio-home .title-row { display: flex; align-items: center; justify-content: space-between; }
.portfolio-home .title-row + .title-row { margin-top: .16em; }
.portfolio-home .home-menu { position: absolute; z-index: 4; top: 50%; left: 18%; display: grid; gap: clamp(8px, 1.6svh, 18px); color: #fff; font-family: 'Libre Bodoni', 'SimSun', serif; font-size: clamp(38px, 4.5vw, 80px); font-weight: 700; line-height: 1.1; text-shadow: 0 1px 5px #000a; }
.portfolio-home .home-menu > span, .portfolio-home .home-menu > a { display: block; width: max-content; max-width: 75vw; opacity: 0; transform: translateY(55px); }
.portfolio-home .home-menu > a:hover { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .12em; }
.portfolio-home .home-menu > a:focus-visible { outline: 2px solid #fff; outline-offset: 5px; }
.portfolio-home .home-menu small { font-size: .5em; letter-spacing: .07em; vertical-align: .13em; }
@media (max-width: 800px) {
  .portfolio-home .home-title { width: 82vw; font-size: clamp(48px, 11vw, 86px); }
  .portfolio-home .home-image { top: 0; right: 0; width: 100%; height: 100%; object-fit: cover; object-position: center top; transform-origin: 50% 12%; }
  .portfolio-home .home-menu { top: 43%; left: 9%; font-size: clamp(34px, 8vw, 58px); }
  .portfolio-hero, .live-layout, .contact-layout { grid-template-columns: 1fr; }
  .hero-copy h1, .inner-copy h1 { margin-top: 65px; font-size: clamp(120px, 20vw, 190px); }
  .hero-bottom { padding-top: 35px; }
  .hero-visual { height: min(105vw, 690px); }
  .live-layout, .contact-layout { min-height: 0; }
  .live-state { margin-top: 50px; }
  .inner-visual { min-height: 500px; max-height: 650px; }
  .contact-list { margin-top: 20px; }
}
@media (max-width: 560px) {
  .portfolio-header { min-height: 68px; }
  .portfolio-brand { font-size: 19px; }
  .portfolio-nav { gap: 16px; }
  .portfolio-nav a { font-size: 11px; }
  .portfolio-kicker { font-size: 10px; letter-spacing: .12em; }
  .portfolio-hero { padding-top: 0; padding-bottom: 78px; }
  .hero-copy h1, .inner-copy h1 { margin-top: 55px; font-size: clamp(100px, 26vw, 155px); }
  .live-layout .inner-copy h1 { font-size: clamp(90px, 22vw, 140px); }
  .hero-bottom { margin-top: 65px; }
  .hero-visual { height: 510px; }
  .work-grid { grid-template-columns: 1fr; row-gap: 42px; }
  .work-image:nth-child(even) { padding-top: 0; }
  .work-image img { height: 510px; }
  .section-heading { align-items: flex-start; }
  .section-heading span { padding-top: 6px; text-align: right; }
  .portfolio-footer { flex-wrap: wrap; }
  .portfolio-footer span:nth-child(2) { display: none; }
}
@media (max-width: 430px) {
  .portfolio-home .home-title { width: 86vw; font-size: clamp(42px, 11vw, 52px); }
}
