/* YXY branded portfolio / editorial exhibition layout */
:root {
  --canvas: #f5efe7;
  --paper: #fffdf9;
  --paper-warm: #fbf7f0;
  --ink: #202229;
  --muted: #7b7a78;
  --faint: #aaa39a;
  --line: #ded8d0;
  --blue: #91a6bc;
  --blue-deep: #526b83;
  --champagne: #e7c9a6;
  --coral: #d9826e;
  --coral-soft: #f4ddd4;
  --shadow: 0 22px 55px rgba(72, 61, 52, .11);
  --font-cn: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
}

html { scroll-behavior: smooth; }
body { min-width: 320px; color: var(--ink); background: var(--canvas); background-image: radial-gradient(circle at 7% 4%, rgba(231,201,166,.34), transparent 27rem), radial-gradient(circle at 95% 35%, rgba(145,166,188,.20), transparent 34rem); font-family: var(--font-cn), var(--font-main); }
button, input { font: inherit; }
button:focus-visible, a:focus-visible, input:focus-visible { outline: 2px solid var(--coral); outline-offset: 4px; }
a { color: inherit; }
.portfolio-shell { width: min(1440px, calc(100% - 80px)); margin: 0 auto; }

/* Header */
.portfolio-header { position: sticky; top: 0; z-index: 50; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 28px; min-height: 88px; border-bottom: 1px solid rgba(125,113,102,.22); background: rgba(245,239,231,.88); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); }
.brand-lockup { display: inline-flex; align-items: center; gap: 12px; min-width: 0; text-decoration: none; }
.brand-logo-frame { display: grid; place-items: center; width: 48px; height: 48px; overflow: hidden; border: 1px solid rgba(197,174,150,.45); border-radius: 15px; background: linear-gradient(145deg, #fffaf0, #e5edf2); box-shadow: 0 8px 16px rgba(83,72,62,.10); }
.brand-logo-frame img { width: 72px; height: 72px; object-fit: contain; }
.brand-copy { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.brand-copy strong { font-family: var(--font-cn), var(--font-main); font-size: 15px; letter-spacing: -.5px; }
.brand-copy small { overflow: hidden; color: var(--blue-deep); font-size: 8px; font-weight: 800; letter-spacing: 1.5px; text-overflow: ellipsis; white-space: nowrap; }
.header-nav { display: flex; align-items: center; gap: 28px; }
.header-nav a { position: relative; padding: 32px 0 29px; color: #6e6b68; font-size: 11px; font-weight: 750; text-decoration: none; transition: color .2s ease; }
.header-nav a::after { position: absolute; right: 0; bottom: 22px; left: 0; height: 2px; background: var(--coral); content: ''; opacity: 0; transform: scaleX(.4); transition: .2s ease; }
.header-nav a:hover { color: var(--ink); }.header-nav a:hover::after { opacity: 1; transform: scaleX(1); }
.header-proof { display: flex; justify-content: flex-end; align-items: center; gap: 8px; color: var(--muted); font-size: 10px; }.header-proof strong { color: var(--ink); font-size: 16px; }.proof-dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--coral); box-shadow: 0 0 0 4px rgba(217,130,110,.14); }

/* Hero */
main { padding: 34px 0 70px; }.hero-panel { position: relative; display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(370px, .92fr); min-height: 560px; overflow: hidden; border: 1px solid rgba(199,186,171,.62); border-radius: 32px; background: linear-gradient(116deg, #fffaf4 0%, #fff8f0 46%, #e8eef0 100%); box-shadow: var(--shadow); }
.hero-panel::before { position: absolute; inset: 0; background-image: linear-gradient(rgba(100,95,89,.055) 1px, transparent 1px), linear-gradient(90deg, rgba(100,95,89,.055) 1px, transparent 1px); background-size: 28px 28px; content: ''; opacity: .72; mask-image: linear-gradient(90deg, #000 0%, transparent 88%); }
.hero-copy { position: relative; z-index: 1; align-self: center; padding: 70px 8% 58px 10%; }.eyebrow-line { display: flex; align-items: center; gap: 11px; margin: 0; color: var(--blue-deep); font-size: 10px; font-weight: 800; letter-spacing: 1.2px; }.eyebrow-line span { width: 30px; height: 1px; background: currentColor; }
.hero-copy h1 { max-width: 650px; margin: 22px 0 20px; font-family: var(--font-cn), var(--font-main); font-size: clamp(42px, 5vw, 76px); line-height: 1.04; letter-spacing: -4px; }.hero-copy h1 em { display: block; color: var(--coral); font-style: normal; }.hero-description { max-width: 520px; margin: 0; color: #6f6e6c; font-size: 14px; line-height: 1.95; }
.hero-actions { display: flex; align-items: center; gap: 10px; margin-top: 30px; }.button { display: inline-flex; align-items: center; min-height: 42px; padding: 0 19px; border-radius: 999px; font-size: 11px; font-weight: 800; text-decoration: none; transition: transform .22s ease, box-shadow .22s ease, background .22s ease; }.button:hover { transform: translateY(-2px); }.button-primary { color: #fff; background: var(--ink); box-shadow: 0 10px 20px rgba(32,34,41,.17); }.button-primary:hover { background: var(--coral); }.button-secondary { border: 1px solid rgba(149,135,121,.35); color: #625f5c; background: rgba(255,255,255,.52); }.button-secondary:hover { background: #fff; box-shadow: 0 8px 18px rgba(72,61,52,.08); }.button-secondary span { margin: 0 3px 0 7px; color: var(--coral); font-size: 14px; }
.hero-facts { display: flex; gap: 28px; margin-top: 58px; }.hero-facts div { display: flex; flex-direction: column; gap: 5px; }.hero-facts strong { font-family: var(--font-main); font-size: 24px; font-weight: 800; line-height: 1; }.hero-facts span { color: #918b85; font-size: 9px; }
.hero-logo-art { position: relative; min-height: 560px; overflow: hidden; background: radial-gradient(circle at 50% 48%, rgba(255,255,255,.58), transparent 35%), linear-gradient(150deg, rgba(245,230,212,.36), rgba(212,225,231,.58)); }.hero-logo-art::after { position: absolute; right: 8%; bottom: 7%; width: 42%; height: 22%; border-radius: 50%; background: rgba(145,166,188,.16); content: ''; filter: blur(26px); }
.art-frame { position: absolute; z-index: 2; top: 12%; right: 2%; bottom: 7%; left: -4%; display: grid; place-items: center; }.art-frame img { width: 115%; max-width: none; object-fit: contain; filter: drop-shadow(0 22px 22px rgba(94,83,76,.16)); transform: rotate(-4deg); transition: transform .8s cubic-bezier(.2,.8,.2,1); }.hero-panel:hover .art-frame img { transform: rotate(-1deg) translateY(-7px) scale(1.025); }
.art-orbit { position: absolute; z-index: 1; border: 1px solid rgba(145,166,188,.55); border-radius: 50%; transform: rotate(-20deg) skewX(-18deg); }.orbit-a { top: 20%; right: 1%; width: 88%; height: 48%; }.orbit-b { top: 32%; right: -8%; width: 102%; height: 40%; border-color: rgba(217,130,110,.45); transform: rotate(24deg) skewX(-14deg); }.art-caption { position: absolute; z-index: 3; color: rgba(82,107,131,.80); font-size: 8px; font-weight: 850; letter-spacing: 1.8px; line-height: 1.45; }.art-caption-top { top: 32px; right: 36px; }.art-caption-bottom { right: 34px; bottom: 27px; text-align: right; }.art-note { position: absolute; z-index: 4; display: grid; place-items: center; width: 44px; height: 44px; border: 1px solid rgba(255,255,255,.92); border-radius: 50%; color: #6a625d; background: rgba(255,255,255,.66); box-shadow: 0 9px 16px rgba(72,61,52,.10); font-family: var(--font-cn); font-size: 10px; font-weight: 800; }.note-one { top: 22%; left: 14%; }.note-two { right: 14%; bottom: 22%; color: var(--coral); }

/* Sections */
.selected-section, .archive-section { margin-top: 84px; }.section-intro, .archive-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 30px; }.section-index { margin: 0 0 9px; color: var(--coral); font-family: var(--font-main); font-size: 9px; font-weight: 850; letter-spacing: 1.6px; }.section-intro h2, .archive-heading h2, .about-strip h2 { margin: 0; font-family: var(--font-cn), var(--font-main); font-size: clamp(25px, 3vw, 38px); letter-spacing: -2px; }.section-intro > p { margin: 0; color: #8b8580; font-size: 11px; line-height: 1.8; text-align: right; }
.featured-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); grid-auto-rows: minmax(158px, auto); gap: 16px; margin-top: 25px; }.featured-card { display: grid; grid-template-rows: 1fr auto; min-height: 0; overflow: hidden; border: 1px solid var(--line); border-radius: 20px; background: var(--paper); box-shadow: 0 9px 24px rgba(72,61,52,.06); transition: transform .28s ease, box-shadow .28s ease; }.featured-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }.featured-card .card-thumbnail-wrap { height: 100%; }.featured-card .featured-copy { display: flex; flex-direction: column; justify-content: space-between; gap: 12px; padding: 17px 19px 18px; }.featured-card .featured-copy h3 { margin: 0; font-family: var(--font-cn); font-size: 16px; line-height: 1.38; letter-spacing: -.5px; }.featured-card .featured-copy p { display: -webkit-box; overflow: hidden; margin: 0; color: #85807a; font-size: 11px; line-height: 1.65; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }.featured-card .featured-copy button { align-self: flex-start; padding: 0; border: 0; color: var(--coral); background: none; cursor: pointer; font-size: 11px; font-weight: 800; }.featured-meta { display: flex; justify-content: space-between; color: #a19a93; font-family: var(--font-main); font-size: 9px; font-weight: 800; }.featured-meta span:last-child { color: var(--blue-deep); }.featured-1 { grid-column: span 2; grid-row: span 2; grid-template-columns: 1.12fr .88fr; grid-template-rows: auto; min-height: 0; }.featured-1 .card-thumbnail-wrap { height: 100%; }.featured-2, .featured-3, .featured-4, .featured-5, .featured-6 { grid-column: span 1; grid-row: span 1; }

/* Covers and cards */
.card-thumbnail-wrap { position: relative; width: 100%; aspect-ratio: 16 / 10; overflow: hidden; cursor: pointer; background: #e3ddd5; }.card-img-preview { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .55s cubic-bezier(.2,.8,.2,1); }.showcase-card:hover .card-img-preview, .featured-card:hover .card-img-preview { transform: scale(1.045); }.cover-shade { position: absolute; inset: 0; background: linear-gradient(180deg, transparent 34%, rgba(25,29,35,.55)); pointer-events: none; }.cover-fallback { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; overflow: hidden; background: linear-gradient(135deg, #9bb0c0, #3a4d5f); }.cover-fallback::before { position: absolute; inset: -30%; border: 1px solid rgba(255,255,255,.34); border-radius: 50%; content: ''; transform: rotate(-24deg) skewX(-15deg); }.cover-brand-mark { position: relative; z-index: 1; width: 37%; max-height: 72%; object-fit: contain; opacity: .88; filter: drop-shadow(0 13px 16px rgba(0,0,0,.15)); }.image-missing .cover-fallback { opacity: 1; }.card-img-preview + .cover-shade + .cover-fallback { opacity: 0; transition: opacity .25s; }.image-missing .card-img-preview + .cover-shade + .cover-fallback { opacity: 1; }.cover-number { position: absolute; z-index: 2; top: 15px; left: 16px; color: rgba(255,255,255,.83); font-family: var(--font-main); font-size: 10px; font-weight: 850; letter-spacing: 1px; }.cover-label { position: absolute; z-index: 2; right: 13px; bottom: 12px; padding: 5px 8px; border: 1px solid rgba(255,255,255,.45); border-radius: 999px; color: #fff; background: rgba(30,36,42,.24); backdrop-filter: blur(7px); font-size: 8px; font-weight: 800; }.interactive-stamp { position: absolute; z-index: 3; top: 12px; right: 13px; padding: 5px 8px; border: 1px solid rgba(255,255,255,.48); border-radius: 999px; color: #fff; background: rgba(29,35,40,.25); backdrop-filter: blur(7px); font-size: 8px; font-weight: 800; letter-spacing: .7px; }.card-overlay-hover { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; gap: 8px; opacity: 0; background: rgba(29,34,41,.47); backdrop-filter: blur(5px); transition: opacity .24s ease; }.card-thumbnail-wrap:hover .card-overlay-hover { opacity: 1; }.btn-hover-action { padding: 8px 12px; border: 0; border-radius: 999px; color: var(--ink); background: #fff; cursor: pointer; font-size: 10px; font-weight: 800; text-decoration: none; }.btn-hover-action:hover { color: var(--coral); transform: translateY(-2px); }.btn-hover-action.glass { background: rgba(255,255,255,.78); }
.theme-amber .cover-fallback { background: linear-gradient(135deg, #c99f78, #514233); }.theme-burgundy .cover-fallback { background: linear-gradient(135deg, #a87976, #40262d); }.theme-ice .cover-fallback { background: linear-gradient(135deg, #a8c6d6, #405d78); }.theme-forest .cover-fallback { background: linear-gradient(135deg, #90aa99, #28433f); }.theme-cosmic .cover-fallback { background: linear-gradient(135deg, #8999b3, #273348); }.theme-ocean .cover-fallback { background: linear-gradient(135deg, #8dbcc0, #36566c); }.theme-violet .cover-fallback { background: linear-gradient(135deg, #b3a5bd, #50495e); }.theme-retro .cover-fallback { background: linear-gradient(135deg, #c6a08e, #635565); }.theme-peach .cover-fallback { background: linear-gradient(135deg, #e8b8a2, #9b6c70); }.theme-mint .cover-fallback { background: linear-gradient(135deg, #aac6b5, #557d7a); }.theme-rose .cover-fallback { background: linear-gradient(135deg, #dbacb5, #765977); }.theme-glass .cover-fallback { background: linear-gradient(135deg, #b7cbb9, #64807b); }.theme-minimal .cover-fallback { background: linear-gradient(135deg, #cfc4b6, #766e68); }
.archive-section { scroll-margin-top: 110px; }.archive-heading { padding-bottom: 20px; border-bottom: 1px solid rgba(125,113,102,.24); }.archive-subtitle { margin: 10px 0 0; color: #8b8580; font-size: 11px; }.archive-status { display: inline-flex; align-items: center; gap: 9px; color: #817a74; font-size: 10px; }.archive-filter { display: flex; align-items: center; gap: 15px; margin-top: 19px; }.search-field { position: relative; display: flex; flex: 0 0 238px; align-items: center; }.search-field input { width: 100%; height: 39px; padding: 0 14px 0 36px; border: 1px solid rgba(125,113,102,.22); border-radius: 999px; outline: none; color: var(--ink); background: rgba(255,255,255,.53); font-size: 11px; transition: .2s ease; }.search-field input:focus { border-color: var(--blue); background: #fff; box-shadow: 0 0 0 4px rgba(145,166,188,.14); }.search-field input::placeholder { color: #aaa39a; }.search-mark { position: absolute; left: 15px; z-index: 1; width: 11px; height: 11px; border: 1.5px solid var(--blue-deep); border-radius: 50%; opacity: .72; }.search-mark::after { position: absolute; right: -5px; bottom: -3px; width: 5px; height: 1.5px; background: var(--blue-deep); content: ''; transform: rotate(45deg); }
.category-nav { display: flex; flex: 1; gap: 4px; overflow-x: auto; scrollbar-width: none; }.category-nav::-webkit-scrollbar { display: none; }.category-button { display: inline-flex; flex: 0 0 auto; align-items: center; gap: 7px; padding: 8px 10px; border: 1px solid transparent; border-radius: 999px; color: #77716c; background: transparent; cursor: pointer; font-size: 10px; font-weight: 750; transition: .2s ease; }.category-button:hover { border-color: var(--line); background: rgba(255,255,255,.52); color: var(--ink); }.category-button.active { border-color: rgba(217,130,110,.42); color: var(--coral); background: var(--coral-soft); }.category-number { color: #aaa39a; font-family: var(--font-main); font-size: 8px; }.category-button b { min-width: 17px; color: #9b938a; font-family: var(--font-main); font-size: 9px; }.category-button.active b { color: var(--coral); }.mobile-category-nav { display: none; }.archive-meta { display: flex; align-items: center; gap: 13px; margin-top: 22px; color: #99918a; font-size: 10px; }.archive-meta > span:first-child { color: var(--ink); font-family: var(--font-main); font-size: 12px; font-weight: 800; }.archive-download { margin-left: auto; padding: 8px 13px; border: 1px solid rgba(217,130,110,.42); border-radius: 999px; color: var(--coral); background: transparent; cursor: pointer; font-size: 10px; font-weight: 800; }.archive-download:hover { color: #fff; background: var(--coral); }
.archive-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin-top: 17px; }.showcase-card { display: flex; min-width: 0; flex-direction: column; overflow: hidden; border: 1px solid var(--line); border-radius: 16px; background: rgba(255,253,249,.91); box-shadow: 0 6px 18px rgba(72,61,52,.045); transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease; }.showcase-card:hover { border-color: rgba(145,166,188,.62); box-shadow: 0 16px 28px rgba(72,61,52,.10); transform: translateY(-5px); }.card-body { display: flex; flex: 1; flex-direction: column; justify-content: space-between; gap: 13px; padding: 14px 15px 13px; }.card-info-main { display: flex; flex-direction: column; gap: 7px; }.card-meta-row { display: flex; align-items: center; gap: 5px; min-height: 18px; }.card-index-pill, .card-category-pill, .live-pill, .dependency-tag { display: inline-flex; align-items: center; padding: 3px 6px; border-radius: 5px; font-size: 8px; font-weight: 800; }.card-index-pill { border: 1px solid #e4ddd5; color: #817a72; background: #f5f0ea; }.card-category-pill { border: 1px solid rgba(145,166,188,.28); color: var(--blue-deep); background: #edf2f4; }.live-pill { border: 1px solid #f1ccc1; color: var(--coral); background: #fff0eb; }.card-main-title { display: -webkit-box; overflow: hidden; margin: 1px 0 0; font-family: var(--font-cn); font-size: 14px; line-height: 1.4; letter-spacing: -.3px; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }.card-main-desc { display: -webkit-box; min-height: 34px; overflow: hidden; margin: 0; color: #8a847e; font-size: 10px; line-height: 1.65; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }.card-tags-list { display: flex; flex-wrap: wrap; gap: 4px; }.mini-tag, .dependency-tag { border: 1px solid #e9e2da; color: #938a82; background: #faf7f2; font-size: 8px; font-weight: 650; }.dependency-tag { border-color: #dce5ed; color: var(--blue-deep); background: #f1f5f7; }.card-actions-row { display: flex; align-items: center; justify-content: space-between; gap: 6px; padding-top: 10px; border-top: 1px solid #eee7df; }.btn-card-download, .btn-card-preview-ghost, .btn-card-open { display: inline-flex; align-items: center; padding: 6px 8px; border-radius: 999px; cursor: pointer; font-size: 9px; font-weight: 800; transition: .2s ease; }.btn-card-download, .btn-card-preview-ghost { border: 1px solid #e4ddd5; color: #77706a; background: #fcfaf7; }.btn-card-download:hover, .btn-card-preview-ghost:hover { border-color: var(--coral); color: var(--coral); }.card-actions-right { display: flex; align-items: center; gap: 4px; }.btn-card-open { border: 0; color: #fff; background: var(--ink); text-decoration: none; }.btn-card-open:hover { background: var(--coral); transform: translateY(-1px); }
.empty-state { grid-column: 1 / -1; padding: 70px 20px; border: 1px dashed #cfc4b8; border-radius: 18px; color: #817970; text-align: center; }.empty-state strong { display: block; font-size: 16px; }.empty-state p { margin: 7px 0 16px; font-size: 11px; }.empty-state button { padding: 8px 14px; border: 0; border-radius: 999px; color: #fff; background: var(--ink); cursor: pointer; font-size: 10px; }
.about-strip { display: grid; grid-template-columns: 1.2fr 1fr auto; align-items: end; gap: 30px; margin-top: 92px; padding: 30px 0 10px; border-top: 1px solid rgba(125,113,102,.27); }.about-strip > p { margin: 0; color: #8b8580; font-size: 11px; line-height: 1.8; }.about-mark { color: var(--blue-deep); font-family: var(--font-main); font-size: 10px; font-weight: 800; letter-spacing: 2px; line-height: 1.6; text-align: right; }

.card-thumbnail-wrap:focus-within .card-overlay-hover { opacity: 1; }
.btn-hover-action:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }

/* Preview modal */
.preview-modal-backdrop { position: fixed; inset: 0; z-index: 10000; display: flex; align-items: center; justify-content: center; padding: 20px; opacity: 0; pointer-events: none; background: rgba(32,34,41,.66); backdrop-filter: blur(16px); transition: opacity .25s ease; }.preview-modal-backdrop.open { opacity: 1; pointer-events: auto; }.modal-window { display: flex; width: 100%; max-width: 1500px; height: min(92vh, 940px); flex-direction: column; overflow: hidden; border: 1px solid #e7ddd2; border-radius: 18px; background: #f7f2eb; box-shadow: 0 28px 80px rgba(0,0,0,.32); }.modal-header-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 56px; padding: 0 15px; border-bottom: 1px solid #e7ddd2; background: #fffdf9; }.modal-left-meta, .modal-right-actions, .viewport-controls { display: flex; align-items: center; gap: 7px; }.brand-badge-modal { padding: 4px 7px; border: 1px solid #e5c4b8; border-radius: 5px; color: var(--coral); background: var(--coral-soft); font-size: 9px; font-weight: 850; }.modal-page-title { max-width: 370px; overflow: hidden; font-size: 12px; font-weight: 750; text-overflow: ellipsis; white-space: nowrap; }.viewport-controls { padding: 3px; border-radius: 8px; background: #f1ece6; }.vp-btn { padding: 6px 9px; border: 0; border-radius: 6px; color: #8e877f; background: transparent; cursor: pointer; font-size: 9px; font-weight: 750; }.vp-btn.active { color: var(--ink); background: #fff; box-shadow: 0 2px 7px rgba(0,0,0,.08); }.btn-modal-download, .btn-modal-open { display: inline-flex; align-items: center; padding: 7px 10px; border-radius: 999px; font-size: 10px; font-weight: 750; text-decoration: none; cursor: pointer; }.btn-modal-download { border: 1px solid #e5c4b8; color: var(--coral); background: var(--coral-soft); }.btn-modal-open { border: 1px solid #cbd9e1; color: var(--blue-deep); background: #edf2f4; }.btn-modal-close { width: 29px; height: 29px; border: 1px solid #e1d8cf; border-radius: 50%; color: #746e68; background: #fff; cursor: pointer; font-size: 19px; line-height: 1; }.modal-notice { padding: 8px 15px; border-bottom: 1px solid #e7ddd2; color: var(--blue-deep); background: #edf2f4; font-size: 10px; }.modal-frame-viewport { position: relative; display: flex; flex: 1; align-items: center; justify-content: center; overflow: auto; padding: 20px; background: #e9e2da; }.device-frame { width: 100%; height: 100%; border: 0; border-radius: 4px; background: #fff; box-shadow: 0 12px 30px rgba(52,40,30,.14); transition: width .3s, height .3s; }.device-frame.vp-laptop { width: min(1280px, 100%); height: min(720px, 100%); }.device-frame.vp-tablet { width: min(768px, 100%); height: min(1024px, 100%); }.device-frame.vp-mobile { width: min(390px, 100%); height: min(844px, 100%); }.modal-fallback { position: absolute; inset: 20px; display: flex; flex-direction: column; align-items: center; justify-content: center; color: #766f69; background: rgba(255,253,249,.93); text-align: center; }.modal-fallback[hidden], .modal-notice[hidden] { display: none !important; }.modal-fallback strong { font-size: 14px; }.modal-fallback p { margin: 7px 0; font-size: 11px; }.toast-msg { position: fixed; right: 24px; bottom: 24px; z-index: 99999; padding: 12px 17px; border-radius: 999px; color: #fff; background: rgba(32,34,41,.95); box-shadow: 0 8px 30px rgba(0,0,0,.2); font-size: 11px; font-weight: 700; animation: toast-slide .3s ease; }

@keyframes toast-slide { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: translateY(0); } }

@media (max-width: 1180px) { .portfolio-shell { width: min(100% - 48px, 1100px); }.hero-panel { grid-template-columns: 1.05fr .95fr; }.hero-copy { padding-left: 7%; }.archive-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 960px) { .portfolio-header { grid-template-columns: 1fr auto; }.header-nav { display: none; }.hero-panel { grid-template-columns: 1fr .8fr; min-height: 500px; }.hero-logo-art { min-height: 500px; }.hero-copy h1 { font-size: clamp(38px, 5vw, 58px); }.hero-facts { gap: 16px; margin-top: 40px; }.featured-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }.featured-1 { grid-column: span 2; grid-row: span 1; grid-template-columns: 1fr; grid-template-rows: 220px auto; min-height: 420px; }.featured-1 .card-thumbnail-wrap { height: 220px; }.featured-2, .featured-3, .featured-4, .featured-5, .featured-6 { grid-column: span 1; }.archive-filter { align-items: flex-start; flex-direction: column; }.search-field { flex-basis: auto; width: 100%; }.category-nav { width: 100%; }.archive-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 720px) { .portfolio-shell { width: calc(100% - 28px); }.portfolio-header { position: relative; min-height: 76px; }.brand-logo-frame { width: 42px; height: 42px; border-radius: 13px; }.brand-logo-frame img { width: 62px; height: 62px; }.brand-copy strong { font-size: 13px; }.brand-copy small { font-size: 7px; letter-spacing: 1px; }.header-proof { font-size: 9px; }.header-proof strong { font-size: 14px; } main { padding-top: 18px; }.hero-panel { display: block; min-height: 760px; border-radius: 24px; }.hero-copy { padding: 40px 23px 0; }.hero-copy h1 { margin-top: 18px; font-size: clamp(39px, 12vw, 56px); letter-spacing: -3px; }.hero-description { font-size: 12px; line-height: 1.8; }.hero-actions { flex-wrap: wrap; margin-top: 24px; }.hero-facts { gap: 21px; margin-top: 34px; }.hero-facts strong { font-size: 20px; }.hero-logo-art { position: absolute; right: 0; bottom: 0; left: 0; min-height: 350px; height: 47%; }.art-frame { top: 7%; right: -13%; bottom: -8%; left: -13%; }.art-caption-top { top: 18px; right: 20px; }.art-caption-bottom { right: 20px; bottom: 16px; }.note-one { top: 21%; left: 10%; }.note-two { right: 10%; bottom: 24%; }.selected-section, .archive-section { margin-top: 58px; }.section-intro, .archive-heading, .about-strip { align-items: flex-start; flex-direction: column; gap: 14px; }.section-intro > p { text-align: left; }.featured-grid { display: flex; overflow-x: auto; gap: 12px; margin-right: -14px; padding: 3px 14px 12px 1px; scroll-snap-type: x mandatory; }.featured-card, .featured-1, .featured-2, .featured-3, .featured-4, .featured-5, .featured-6 { display: grid; flex: 0 0 82vw; grid-column: auto; grid-row: auto; grid-template-columns: 1fr; grid-template-rows: 175px auto; min-height: 350px; scroll-snap-align: start; }.featured-card .card-thumbnail-wrap, .featured-1 .card-thumbnail-wrap { height: 175px; min-height: 0; }.archive-heading { padding-bottom: 16px; }.archive-status { font-size: 9px; }.category-nav { display: none; }.mobile-category-nav { display: flex; gap: 7px; overflow-x: auto; padding: 15px 1px 2px; scrollbar-width: none; }.mobile-category-nav::-webkit-scrollbar { display: none; }.mobile-category-button { flex: 0 0 auto; padding: 8px 10px; border: 1px solid var(--line); border-radius: 999px; color: #776f68; background: rgba(255,255,255,.58); cursor: pointer; font-size: 10px; font-weight: 750; }.mobile-category-button.active { border-color: rgba(217,130,110,.42); color: var(--coral); background: var(--coral-soft); }.mobile-category-button b { margin-left: 5px; font-family: var(--font-main); font-size: 9px; }.archive-meta { align-items: flex-start; flex-wrap: wrap; line-height: 1.6; }.archive-download { margin-left: 0; }.archive-grid { grid-template-columns: 1fr; gap: 12px; }.showcase-card { border-radius: 15px; }.card-thumbnail-wrap { aspect-ratio: 16 / 9; }.about-strip { padding-top: 25px; }.about-mark { align-self: flex-end; }.modal-header-bar { min-height: auto; padding: 10px; flex-wrap: wrap; }.modal-left-meta { width: 100%; max-width: calc(100% - 45px); }.modal-right-actions { position: absolute; top: 10px; right: 10px; }.btn-modal-download, .btn-modal-open { display: none; }.viewport-controls { order: 3; width: 100%; justify-content: space-between; }.vp-btn { flex: 1; }.modal-window { height: 95vh; border-radius: 14px; }.modal-frame-viewport { padding: 10px; }.toast-msg { right: 14px; bottom: 14px; left: 14px; text-align: center; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; transition-duration: .01ms !important; } }
