:root {
  --bg: #09070d;
  --bg-soft: #110d17;
  --card: #15101d;
  --text: #f8f4f1;
  --muted: #a69daa;
  --line: rgba(255, 255, 255, .11);
  --fire: #ff4f35;
  --orange: #ff8b3d;
  --gold: #ffc879;
  --violet: #8f39ff;
  --radius-lg: 34px;
  --radius-md: 22px;
  --shadow: 0 30px 90px rgba(0, 0, 0, .38);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-width: 320px;
  color: var(--text);
  background: var(--bg);
  font-family: "Microsoft YaHei UI", "PingFang SC", "Noto Sans CJK SC", system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.65;
  overflow-x: hidden;
}
button, input, textarea, select { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { color: inherit; }
a { color: inherit; text-decoration: none; }
svg { display: block; }
::selection { color: #17070a; background: var(--gold); }

.noise {
  position: fixed;
  inset: 0;
  opacity: .025;
  pointer-events: none;
  z-index: 50;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.6'/%3E%3C/svg%3E");
}
.ambient { position: fixed; border-radius: 50%; filter: blur(110px); pointer-events: none; opacity: .12; }
.ambient-one { width: 500px; height: 500px; top: 5%; left: -260px; background: var(--fire); }
.ambient-two { width: 600px; height: 600px; right: -320px; top: 55%; background: var(--violet); }

.topbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 40;
  height: 84px;
  padding: 0 clamp(22px, 5vw, 76px);
  display: flex;
  align-items: center;
  gap: 42px;
  border-bottom: 1px solid transparent;
  transition: background .3s, border-color .3s, backdrop-filter .3s;
}
.topbar.scrolled { background: rgba(9, 7, 13, .78); border-color: var(--line); backdrop-filter: blur(20px); }
.brand { display: inline-flex; align-items: center; gap: 11px; font-size: 20px; font-weight: 800; letter-spacing: -.5px; }
.brand-mark { width: 38px; height: 38px; display: grid; place-items: center; border: 1px solid rgba(255, 111, 62, .45); border-radius: 12px; background: rgba(255, 79, 53, .08); }
.brand-mark svg { width: 25px; fill: url(#none); fill: var(--fire); filter: drop-shadow(0 0 8px rgba(255, 79, 53, .5)); }
.nav-links { display: flex; align-items: center; gap: 34px; margin-left: auto; }
.nav-links a { color: #cfc7d1; font-size: 14px; transition: color .2s; }
.nav-links a:hover { color: white; }
.header-actions { display: flex; align-items: center; gap: 12px; }
.icon-button { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 50%; border: 1px solid var(--line); background: rgba(255, 255, 255, .04); cursor: pointer; }
.icon-button:hover { border-color: rgba(255, 255, 255, .3); background: rgba(255, 255, 255, .08); }
.icon-button svg { width: 20px; fill: none; stroke: currentColor; stroke-width: 1.7; }

.button {
  min-height: 52px;
  padding: 0 24px;
  border: 1px solid transparent;
  border-radius: 100px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-weight: 700;
  font-size: 15px;
  cursor: pointer;
  transition: transform .2s, box-shadow .2s, background .2s, border-color .2s;
}
.button:hover { transform: translateY(-2px); }
.button svg { width: 20px; fill: none; stroke: currentColor; stroke-width: 1.9; }
.button-primary { color: white; background: linear-gradient(120deg, var(--fire), #ee2e54 65%, #9f2cff); box-shadow: 0 12px 34px rgba(255, 58, 55, .25); }
.button-primary:hover { box-shadow: 0 16px 44px rgba(255, 58, 55, .38); }
.button-small { min-height: 42px; padding: 0 18px; font-size: 14px; }
.button-small svg { width: 17px; }
.button-ghost { background: rgba(255, 255, 255, .045); border-color: var(--line); }
.button-ghost:hover { background: rgba(255, 255, 255, .08); border-color: rgba(255, 255, 255, .25); }
.button-outline { color: var(--gold); background: transparent; border-color: rgba(255, 181, 96, .35); }
.button-light { color: #211019; background: #fff5eb; box-shadow: 0 14px 38px rgba(63, 9, 14, .25); }

.hero {
  min-height: max(900px, 100svh);
  height: auto;
  position: relative;
  display: flex;
  align-items: center;
  padding: 120px clamp(22px, 7vw, 112px) 70px;
  overflow: hidden;
  background:
    radial-gradient(circle at 72% 44%, rgba(255, 58, 49, .13), transparent 30%),
    radial-gradient(circle at 85% 70%, rgba(138, 36, 255, .14), transparent 26%),
    linear-gradient(140deg, #0b080e 0%, #100913 55%, #09070d 100%);
}
.hero::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(9, 7, 13, .9) 0%, rgba(9, 7, 13, .32) 52%, transparent 75%); z-index: 1; }
.hero-grid { position: absolute; inset: 0; opacity: .18; background-image: linear-gradient(rgba(255,255,255,.06) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.06) 1px, transparent 1px); background-size: 72px 72px; mask-image: linear-gradient(to right, black, transparent 78%); }
.hero-content { position: relative; z-index: 4; width: min(680px, 55vw); min-width: 0; flex-shrink: 0; }
.eyebrow, .section-index, .modal-kicker { color: var(--gold); font-size: 11px; font-weight: 800; letter-spacing: .2em; text-transform: uppercase; }
.eyebrow { display: flex; align-items: center; gap: 12px; margin-bottom: 32px; line-height: 1.7; }
.eyebrow > span:not(.editable-label) { width: 38px; height: 1px; flex: 0 0 38px; background: linear-gradient(90deg, var(--fire), var(--gold)); }
.eyebrow > .editable-label { display: block; width: auto; height: auto; min-width: 0; background: none; overflow-wrap: anywhere; }
.hero h1 { margin: 0; display: flex; flex-direction: column; gap: .04em; font-family: "STKaiti", "KaiTi", "Microsoft YaHei UI", sans-serif; font-size: clamp(68px, 8vw, 126px); line-height: 1.12; letter-spacing: -.07em; font-weight: 900; }
.hero h1 > br { display: none; }
.hero h1 > span, .hero h1 > em { max-width: 100%; overflow-wrap: anywhere; }
.hero h1 span { display: inline-block; }
.hero h1 em { font-style: normal; color: transparent; -webkit-text-stroke: 1px rgba(255, 239, 220, .85); text-shadow: 0 0 40px rgba(255, 79, 53, .15); }
.hero-lead { width: min(580px, 100%); margin: 34px 0 32px; color: #c2b8c4; font-size: clamp(17px, 1.5vw, 20px); line-height: 1.8; letter-spacing: .04em; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }
.hero-meta { margin-top: 62px; display: flex; gap: clamp(30px, 5vw, 76px); }
.hero-meta div { display: flex; flex-direction: column; }
.hero-meta strong { font-size: 25px; line-height: 1.2; font-weight: 700; }
.hero-meta span { color: #827986; font-size: 12px; margin-top: 6px; }

.phoenix-stage { position: absolute; right: -1%; top: 8%; z-index: 2; width: min(65vw, 900px); height: 86%; display: grid; place-items: center; }
.phoenix { width: min(86%, 780px); opacity: .82; animation: float 7s ease-in-out infinite; }
.phoenix-line { stroke-width: 2.2; stroke-dasharray: 1400; stroke-dashoffset: 1400; animation: draw 2.8s ease forwards; }
.line-wing { stroke-width: 1.5; animation-delay: .25s; }
.line-tail { stroke-width: 1.7; animation-delay: .45s; }
.line-detail { stroke-width: 1.2; animation-delay: .8s; }
.orbit { position: absolute; border: 1px solid rgba(255, 151, 98, .14); border-radius: 50%; }
.orbit::before { content: ""; position: absolute; width: 7px; height: 7px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 18px var(--fire); }
.orbit-one { width: 600px; height: 600px; animation: spin 22s linear infinite; }
.orbit-one::before { top: 75px; left: 90px; }
.orbit-two { width: 430px; height: 430px; border-style: dashed; animation: spin 16s linear infinite reverse; }
.orbit-two::before { bottom: 23px; right: 128px; }
.core-glow { position: absolute; width: 340px; height: 340px; border-radius: 50%; background: radial-gradient(circle, rgba(255, 88, 39, .22), transparent 68%); filter: blur(10px); }
.data-label { position: absolute; color: rgba(255, 222, 194, .42); font: 9px/1 monospace; letter-spacing: .2em; }
.label-one { top: 20%; right: 13%; }
.label-two { bottom: 19%; left: 12%; transform: rotate(-90deg); }
.scroll-cue { position: absolute; z-index: 5; right: clamp(22px, 4vw, 70px); bottom: 44px; display: flex; align-items: center; gap: 16px; color: #746d78; font: 9px/1 monospace; letter-spacing: .18em; transform: rotate(90deg) translateX(-20px); transform-origin: right center; }
.scroll-cue i { display: block; width: 70px; height: 1px; background: linear-gradient(90deg, var(--fire), transparent); }

.section-shell { width: min(1440px, calc(100% - 44px)); margin: 0 auto; }
.works { padding-top: 130px; padding-bottom: 150px; }
.section-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 30px; }
.section-heading h2, .about-copy h2, .cta h2 { margin: 12px 0 0; font-size: clamp(44px, 5vw, 78px); line-height: 1.08; letter-spacing: -.055em; }
.section-heading p { margin: 18px 0 0; color: var(--muted); font-size: 17px; }
.filter-row { display: flex; gap: 9px; margin: 50px 0 30px; padding-bottom: 5px; overflow-x: auto; scrollbar-width: none; }
.filter-row::-webkit-scrollbar { display: none; }
.filter-chip { flex: 0 0 auto; min-height: 40px; padding: 0 18px; color: #9d959f; border: 1px solid var(--line); border-radius: 100px; background: transparent; cursor: pointer; transition: .2s; }
.filter-chip:hover { color: white; border-color: rgba(255, 255, 255, .25); }
.filter-chip.active { color: #1d0c0a; border-color: var(--gold); background: linear-gradient(120deg, #ffd598, #ff9a56); font-weight: 800; }

.works-grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: 24px; }
.work-card { grid-column: span 4; position: relative; min-width: 0; border: 1px solid var(--line); border-radius: var(--radius-md); overflow: hidden; background: rgba(21, 16, 29, .72); box-shadow: 0 12px 40px rgba(0,0,0,.14); transition: transform .28s, border-color .28s, box-shadow .28s; }
.work-card:hover { transform: translateY(-7px); border-color: rgba(255, 134, 83, .36); box-shadow: 0 24px 56px rgba(0,0,0,.28); }
.work-cover { position: relative; width: 100%; aspect-ratio: 16/10; padding: 0; overflow: hidden; color: white; border: 0; background: #211526; cursor: pointer; }
.cover-content { position: absolute; inset: 0; display: grid; place-items: center; transition: transform .5s; }
.work-card:hover .cover-content { transform: scale(1.035); }
.cover-content img, .cover-content video { width: 100%; height: 100%; object-fit: cover; }
.cover-content::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(7,5,10,.55), transparent 55%); }
.work-type { position: absolute; top: 16px; left: 16px; z-index: 2; padding: 6px 11px; border: 1px solid rgba(255,255,255,.24); border-radius: 100px; background: rgba(8,5,12,.5); backdrop-filter: blur(10px); font-size: 11px; font-weight: 700; }
.work-open { position: absolute; right: 16px; bottom: 16px; z-index: 2; width: 40px; height: 40px; display: grid; place-items: center; border-radius: 50%; background: rgba(255,255,255,.92); color: #1e1117; opacity: 0; transform: translateY(5px); transition: .25s; }
.work-card:hover .work-open { opacity: 1; transform: translateY(0); }
.work-open svg { width: 18px; fill: none; stroke: currentColor; stroke-width: 2; }
.doc-cover { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; overflow: hidden; background: radial-gradient(circle at 70% 22%, var(--doc-accent-soft), transparent 36%), linear-gradient(135deg, #1a1320, #0e0b13); }
.doc-cover::before { content: ""; position: absolute; width: 240px; height: 240px; border: 1px solid var(--doc-accent-soft); border-radius: 50%; transform: translate(35%, -20%); }
.doc-symbol { position: relative; z-index: 1; font: 900 clamp(46px, 6vw, 78px)/1 "Arial Black", sans-serif; color: var(--doc-accent); letter-spacing: -.08em; text-shadow: 0 0 26px var(--doc-accent-soft); }
.doc-ext { position: absolute; left: 20px; bottom: 18px; z-index: 2; color: rgba(255,255,255,.36); font: 10px/1 monospace; letter-spacing: .18em; }
.work-body { padding: 22px 22px 24px; }
.work-topline { display: flex; align-items: center; justify-content: space-between; color: #786f7d; font-size: 11px; letter-spacing: .08em; text-transform: uppercase; }
.more-button { width: 31px; height: 28px; padding: 0; border: 0; border-radius: 8px; background: transparent; color: #8f8592; cursor: pointer; letter-spacing: 2px; }
.more-button:hover { color: white; background: rgba(255,255,255,.06); }
.work-body h3 { margin: 10px 0 7px; font-size: 21px; line-height: 1.35; letter-spacing: -.025em; }
.work-body p { min-height: 50px; margin: 0; color: #918895; font-size: 13px; line-height: 1.7; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.tag-list { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 17px; }
.tag-list span { padding: 4px 9px; border-radius: 100px; color: #9d949e; background: rgba(255,255,255,.045); font-size: 10px; }
.card-menu { position: absolute; z-index: 5; right: 18px; bottom: 72px; min-width: 130px; padding: 7px; border: 1px solid var(--line); border-radius: 12px; background: #201925; box-shadow: 0 14px 36px rgba(0,0,0,.36); }
.card-menu button { width: 100%; padding: 9px 10px; text-align: left; border: 0; border-radius: 8px; background: transparent; cursor: pointer; font-size: 12px; }
.card-menu button:hover { background: rgba(255,255,255,.06); }
.card-menu .danger { color: #ff8172; }
.empty-state { padding: 90px 30px; text-align: center; border: 1px dashed rgba(255,255,255,.13); border-radius: var(--radius-lg); background: linear-gradient(135deg, rgba(255,79,53,.035), rgba(143,57,255,.035)); }
.empty-state[hidden] { display: none; }
.empty-icon { width: 78px; height: 78px; margin: 0 auto 25px; display: grid; place-items: center; color: var(--orange); border-radius: 24px; background: rgba(255,79,53,.08); }
.empty-icon svg { width: 42px; fill: none; stroke: currentColor; stroke-width: 1.4; }
.empty-state h3 { margin: 0; font-size: 27px; }
.empty-state p { margin: 12px auto 25px; max-width: 560px; color: var(--muted); }

.about { padding-bottom: 140px; }
.about-card { position: relative; min-height: 610px; display: grid; grid-template-columns: .95fr 1.05fr; overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius-lg); background: linear-gradient(125deg, rgba(42,18,28,.8), rgba(18,13,25,.96) 50%, rgba(24,13,31,.9)); }
.about-visual { position: relative; min-height: 520px; display: grid; place-items: center; overflow: hidden; background: radial-gradient(circle at center, rgba(255,72,45,.2), transparent 48%); }
.about-visual::before { content: ""; position: absolute; inset: 0; opacity: .18; background-image: linear-gradient(rgba(255,255,255,.08) 1px,transparent 1px),linear-gradient(90deg,rgba(255,255,255,.08) 1px,transparent 1px); background-size: 45px 45px; transform: perspective(500px) rotateX(58deg) scale(1.6) translateY(34%); }
.monogram { position: relative; z-index: 2; font: 900 clamp(110px, 17vw, 230px)/1 "Arial Black", sans-serif; letter-spacing: -.14em; color: transparent; -webkit-text-stroke: 1px rgba(255, 206, 153, .7); text-shadow: 0 0 60px rgba(255, 68, 38, .2); transform: translateX(-6%); }
.ring { position: absolute; border: 1px solid rgba(255, 135, 83, .28); border-radius: 50%; }
.ring-a { width: 390px; height: 390px; animation: spin 25s linear infinite; }
.ring-b { width: 270px; height: 270px; border-style: dashed; animation: spin 18s linear infinite reverse; }
.spark { position: absolute; width: 8px; height: 8px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 25px var(--fire); }
.spark-a { top: 24%; left: 24%; }
.spark-b { bottom: 23%; right: 23%; }
.about-copy { align-self: center; padding: clamp(48px, 8vw, 110px); }
.about-copy h2 em { color: var(--gold); font-style: normal; }
.about-copy > p { max-width: 610px; margin: 28px 0; color: #aaa0ad; font-size: 17px; line-height: 2; }
.profile-tags { display: flex; flex-wrap: wrap; gap: 9px; }
.profile-tags span { padding: 8px 13px; border: 1px solid var(--line); border-radius: 100px; color: #c9c0ca; font-size: 12px; }
.text-button { margin-top: 30px; padding: 0 0 5px; display: inline-flex; align-items: center; gap: 9px; color: var(--gold); border: 0; border-bottom: 1px solid rgba(255,200,121,.35); background: transparent; cursor: pointer; font-size: 13px; }
.text-button svg { width: 16px; fill: none; stroke: currentColor; stroke-width: 1.7; }

.cta { padding-bottom: 120px; }
.cta-inner { position: relative; padding: clamp(60px, 9vw, 120px) 30px; overflow: hidden; text-align: center; border-radius: var(--radius-lg); background: linear-gradient(120deg, #d72e32, #ef5538 48%, #a52269); box-shadow: 0 30px 100px rgba(167,24,42,.26); }
.cta-inner::before, .cta-inner::after { content: ""; position: absolute; border: 1px solid rgba(255,255,255,.16); border-radius: 50%; }
.cta-inner::before { width: 520px; height: 520px; left: -200px; top: -320px; }
.cta-inner::after { width: 360px; height: 360px; right: -100px; bottom: -260px; }
.cta .section-index { color: #ffe6c7; }
.cta h2 { position: relative; margin-top: 15px; }
.cta p { position: relative; margin: 16px 0 30px; color: rgba(255,255,255,.74); }
.cta .button { position: relative; }

.footer { min-height: 145px; padding: 35px 0 50px; display: flex; align-items: center; gap: 32px; border-top: 1px solid var(--line); color: #756d79; font-size: 12px; }
.footer-brand { display: flex; align-items: center; gap: 10px; color: white; font-size: 15px; }
.footer-brand .brand-mark { width: 32px; height: 32px; border-radius: 10px; }
.footer-brand .brand-mark svg { width: 20px; }
.footer > p { margin: 0 auto 0 0; }
.footer-right { display: flex; align-items: center; gap: 24px; }
.footer-right button { padding: 0; color: #aea4b0; border: 0; background: none; cursor: pointer; }
.footer-right button:hover { color: white; }

.modal { width: 100%; max-width: none; height: 100%; max-height: none; margin: 0; padding: 22px; color: var(--text); border: 0; background: rgba(5,3,8,.72); backdrop-filter: blur(16px); opacity: 0; transition: opacity .2s; }
.modal[open] { display: grid; place-items: center; opacity: 1; }
.modal::backdrop { background: transparent; }
.modal-panel { width: min(760px, 100%); max-height: calc(100vh - 44px); padding: clamp(26px, 5vw, 46px); overflow-y: auto; border: 1px solid rgba(255,255,255,.13); border-radius: 28px; background: #15101b; box-shadow: var(--shadow); }
.modal-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; margin-bottom: 30px; }
.modal-header h2 { margin: 5px 0 0; font-size: 32px; letter-spacing: -.04em; }
.modal-close { width: 42px; height: 42px; flex: 0 0 auto; display: grid; place-items: center; color: #a99fab; border: 1px solid var(--line); border-radius: 50%; background: rgba(255,255,255,.04); cursor: pointer; }
.modal-close:hover { color: white; background: rgba(255,255,255,.08); }
.modal-close svg { width: 18px; fill: none; stroke: currentColor; stroke-width: 1.7; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.field { position: relative; display: flex; flex-direction: column; gap: 8px; }
.field-wide { grid-column: 1 / -1; }
.field > span { color: #c4bac6; font-size: 13px; font-weight: 700; }
.field b { color: var(--fire); }
.field input:not([type=file]), .field textarea, .field select { width: 100%; color: white; border: 1px solid var(--line); border-radius: 12px; outline: none; background: rgba(255,255,255,.035); transition: border-color .2s, box-shadow .2s; }
.field input:not([type=file]), .field select { height: 48px; padding: 0 14px; }
.field textarea { padding: 12px 14px; resize: vertical; }
.field input:focus, .field textarea:focus, .field select:focus { border-color: rgba(255,124,70,.65); box-shadow: 0 0 0 3px rgba(255,79,53,.09); }
.field select option { color: #1d151f; }
.counter { position: absolute; right: 12px; bottom: 8px; color: #6f6672; font-size: 10px; }
.drop-zone { position: relative; min-height: 168px; padding: 24px; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; border: 1px dashed rgba(255, 149, 92, .36); border-radius: 16px; background: linear-gradient(135deg, rgba(255,79,53,.05), rgba(143,57,255,.05)); cursor: pointer; transition: .2s; }
.drop-zone:hover, .drop-zone.dragging { border-color: var(--orange); background: linear-gradient(135deg, rgba(255,79,53,.1), rgba(143,57,255,.08)); }
.drop-zone input { position: absolute; inset: 0; width: 100%; opacity: 0; cursor: pointer; }
.drop-icon { width: 48px; height: 48px; margin-bottom: 10px; display: grid; place-items: center; color: var(--orange); border-radius: 15px; background: rgba(255,79,53,.1); }
.drop-icon svg { width: 27px; fill: none; stroke: currentColor; stroke-width: 1.6; }
.drop-zone strong { font-size: 15px; }
.drop-zone small { margin-top: 5px; color: #776e7a; }
.form-note { margin-top: 22px; padding: 12px 14px; display: flex; gap: 10px; color: #8f8591; border: 1px solid rgba(255,255,255,.07); border-radius: 12px; background: rgba(255,255,255,.025); font-size: 11px; }
.form-note svg { width: 17px; height: 17px; flex: 0 0 auto; fill: none; stroke: var(--gold); stroke-width: 1.5; }
.modal-actions { margin-top: 28px; display: flex; justify-content: flex-end; gap: 10px; }
.modal-actions .button { min-width: 120px; }

.preview-modal { padding: 0; }
.preview-panel { position: relative; width: min(1180px, 100%); max-height: 100vh; display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(300px, .55fr); overflow: hidden; border: 1px solid var(--line); border-radius: 26px; background: #100c15; box-shadow: var(--shadow); }
.preview-close { position: absolute; top: 18px; right: 18px; z-index: 4; background: rgba(10,7,12,.68); }
.preview-media { min-height: 560px; max-height: 80vh; display: grid; place-items: center; overflow: hidden; background: #08060a; }
.preview-media img, .preview-media video { width: 100%; height: 100%; max-height: 80vh; object-fit: contain; }
.preview-media .doc-cover { position: relative; width: 100%; height: 100%; min-height: 560px; }
.preview-info { padding: 56px 36px 36px; display: flex; flex-direction: column; }
.preview-info .preview-type { color: var(--gold); font-size: 11px; font-weight: 800; letter-spacing: .16em; }
.preview-info h2 { margin: 13px 0; font-size: 30px; line-height: 1.25; }
.preview-info p { color: #9e949f; font-size: 14px; line-height: 1.8; }
.preview-info .tag-list { margin-bottom: 30px; }
.preview-info .button { margin-top: auto; }

.toast { position: fixed; z-index: 80; left: 50%; bottom: 30px; min-width: 210px; padding: 13px 18px; display: flex; align-items: center; justify-content: center; gap: 9px; color: #1a0d10; border-radius: 100px; background: #fff1e4; box-shadow: 0 16px 44px rgba(0,0,0,.34); opacity: 0; transform: translate(-50%, 20px); pointer-events: none; transition: .3s; font-size: 13px; font-weight: 700; }
.toast.visible { opacity: 1; transform: translate(-50%, 0); }
.toast.error { color: white; background: #b52b38; }
.toast-icon { width: 20px; height: 20px; display: grid; place-items: center; color: white; border-radius: 50%; background: #e44732; font-size: 11px; }

@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes float { 0%,100% { transform: translateY(0) rotate(-1deg); } 50% { transform: translateY(-15px) rotate(1deg); } }
@keyframes spin { to { transform: rotate(360deg); } }

@media (max-width: 1050px) {
  .hero { min-height: max(820px, 100svh); }
  .hero-content { width: 65vw; }
  .phoenix-stage { right: -20%; width: 78vw; opacity: .7; }
  .orbit-one { width: 520px; height: 520px; }
  .work-card { grid-column: span 6; }
  .about-card { grid-template-columns: .8fr 1.2fr; }
  .about-copy { padding: 55px; }
}

@media (max-width: 760px) {
  .topbar { height: 70px; padding: 0 18px; gap: 12px; }
  .brand { font-size: 17px; }
  .brand-mark { width: 34px; height: 34px; }
  .nav-links { display: none; }
  .header-actions { margin-left: auto; }
  .header-actions .button-small { width: 42px; padding: 0; }
  .header-actions .button-small svg { width: 20px; }
  .header-actions .button-small { font-size: 0; }
  .hero { min-height: max(760px, 100svh); height: auto; align-items: flex-end; padding: 120px 22px 70px; }
  .hero::before { background: linear-gradient(to top, rgba(9,7,13,.96) 12%, rgba(9,7,13,.42) 70%, rgba(9,7,13,.2)); }
  .hero-content { width: 100%; }
  .hero h1 { font-size: clamp(60px, 19vw, 92px); }
  .hero-lead { margin: 24px 0; font-size: 16px; line-height: 1.7; }
  .hero-meta { margin-top: 35px; justify-content: space-between; gap: 12px; }
  .hero-meta strong { font-size: 21px; }
  .phoenix-stage { width: 130vw; height: 68%; top: -2%; right: -38%; opacity: .65; }
  .orbit-one { width: 430px; height: 430px; }
  .orbit-two { width: 300px; height: 300px; }
  .scroll-cue { display: none; }
  .section-shell { width: min(100% - 32px, 1440px); }
  .works { padding-top: 90px; padding-bottom: 100px; }
  .section-heading { align-items: flex-start; }
  .section-heading h2, .about-copy h2, .cta h2 { font-size: 44px; }
  .section-heading > .button { width: 48px; min-height: 48px; padding: 0; font-size: 0; }
  .filter-row { margin-top: 35px; }
  .works-grid { gap: 18px; }
  .work-card { grid-column: span 12; }
  .work-open { opacity: 1; transform: none; }
  .empty-state { padding: 65px 22px; }
  .about { padding-bottom: 90px; }
  .about-card { grid-template-columns: 1fr; }
  .about-visual { min-height: 390px; }
  .about-copy { padding: 45px 26px 55px; }
  .cta { padding-bottom: 85px; }
  .cta-inner { padding: 75px 20px; }
  .footer { padding: 35px 0; flex-wrap: wrap; }
  .footer > p { width: 100%; order: 3; }
  .footer-right { margin-left: auto; }
  .modal { padding: 10px; }
  .modal-panel { max-height: calc(100vh - 20px); border-radius: 22px; }
  .form-grid { grid-template-columns: 1fr; }
  .field-wide { grid-column: auto; }
  .preview-panel { width: 100%; max-height: 100vh; grid-template-columns: 1fr; grid-template-rows: minmax(300px, 55vh) auto; border: 0; border-radius: 0; overflow-y: auto; }
  .preview-media { min-height: 300px; max-height: 55vh; }
  .preview-media .doc-cover { min-height: 300px; }
  .preview-info { min-height: 320px; padding: 32px 24px 24px; }
  .preview-close { top: 12px; right: 12px; }
}

@media (max-width: 420px) {
  .header-actions .button-small { display: none; }
  .hero-actions .button { width: 100%; }
  .hero-meta div:nth-child(2) { display: none; }
  .section-heading p { font-size: 15px; }
  .footer-right button { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
