:root{
  --bg: #050505;
  --fg: #f2f2f2;
  --muted: rgba(242,242,242,.85);
  --accent: #f5a623;
  --accent2: #d88212;
  --line: rgba(245,166,35,.55);
  --shadow: rgba(0,0,0,.6);
  --panel: rgba(0,0,0,.35);
  --panel2: rgba(0,0,0,.22);
  --radius: 12px;

  --font-title: "Jersey10-Regular", "Jersey 10", ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  --font-ui: "PT Root UI", ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial;
  --font-nums: "REEJI-TaikoHunyuanGBT-Flash-Heavy-2", "RuiZiTaiKongHunYuanXiangSuJianFan-Shan-ChaoHei", "RuiZiTaiKongHunYuanXiangSuJianFan", "Hannotate SC", "PingFang SC", ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
}

@font-face{
  font-family: "Jersey10-Regular";
  src:
    local("Jersey10-Regular"),
    url("../fonts/Jersey10-Regular.ttf") format("truetype");
  font-display: swap;
}
@font-face{
  font-family: "PT Root UI";
  src:
    local("PT Root UI"),
    url("../fonts/PT-Root-UI-Regular.otf") format("opentype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face{
  font-family: "PT Root UI";
  src: url("../fonts/PT-Root-UI-Light.otf") format("opentype");
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}
@font-face{
  font-family: "PT Root UI";
  src: url("../fonts/PT-Root-UI-Medium.otf") format("opentype");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face{
  font-family: "PT Root UI";
  src: url("../fonts/PT-Root-UI-Bold.otf") format("opentype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face{
  font-family: "REEJI-TaikoHunyuanGBT-Flash-Heavy-2";
  src:
    local("RuiZiTaiKongHunYuanXiangSuJianFan-Shan-ChaoHei(REEJI-TaikoHunyuanGBT-Flash-Heavy)-2"),
    url("../fonts/REEJI-TaikoHunyuanGBT-Flash-Heavy-2.ttf") format("truetype");
  font-display: swap;
}

*{ box-sizing: border-box; }
html,body{ height:100%; }
body{
  margin:0;
  color: var(--fg);
  background: var(--bg);
  font-family: var(--font-ui);
  overflow-x: hidden;
}

.page{
  position: relative;
  min-height: 100svh;
  width: 100%;
  overflow: hidden;
  display:flex;
  flex-direction: column;
}

.bg{
  position:absolute;
  inset:0;
  background-image: var(--bg-image);
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  filter: saturate(1.05) contrast(1.05);
}

.bg-fill{
  position:absolute;
  inset:-40px;
  background-image: var(--bg-image);
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  filter: blur(24px) saturate(1.1) contrast(1.05) brightness(.80);
  transform: scale(1.06);
  opacity: .85;
}

.scrub{ display:none; }

.bg::after{
  content:"";
  position:absolute;
  inset:0;
  background:
    radial-gradient(1200px 800px at 65% 35%, rgba(0,0,0,.05), rgba(0,0,0,.55) 55%, rgba(0,0,0,.78)),
    linear-gradient(90deg, rgba(0,0,0,.72) 0%, rgba(0,0,0,.50) 35%, rgba(0,0,0,.25) 70%, rgba(0,0,0,.40) 100%);
}

canvas#smoke{
  position:absolute;
  inset:0;
  width:100%;
  height:100%;
  pointer-events:none;
  mix-blend-mode: screen;
  opacity: .9;
}

.chrome{
  position: relative;
  z-index: 2;
  padding: 34px 52px 34px 52px;
  flex: 1 1 auto;
}

.topbar{
  display:flex;
  align-items:flex-start;
  gap: 48px;
}

.brand{
  display:flex;
  align-items:center;
  height: 34px;
  filter: drop-shadow(0 8px 16px rgba(0,0,0,.45));
}
.brand img{
  height: 30px;
  width: auto;
  image-rendering: pixelated;
  filter: brightness(1.2) contrast(1.15);
}

.home-feature-logo{
  position: absolute;
  z-index: 3;
  left: clamp(56px, 5.2vw, 86px);
  top: clamp(250px, 31vh, 370px);
  display: flex;
  align-items: center;
  pointer-events: none;
}
.home-feature-logo img{
  width: clamp(520px, 38vw, 760px);
  height: auto;
  image-rendering: pixelated;
  filter: brightness(1.15) contrast(1.1) drop-shadow(0 18px 34px rgba(0,0,0,.38));
}

.nav{
  display:flex;
  gap: 30px;
  margin-top: 6px;
  font-size: 16px;
  letter-spacing: .2px;
  color: var(--muted);
  font-family: var(--font-ui);
}

.nav a{
  position:relative;
  color: inherit;
  text-decoration:none;
  padding-bottom: 10px;
}
.nav a.active{
  color: var(--fg);
}
.nav a.active::after{
  content:"";
  position:absolute;
  left: 10%;
  right: 10%;
  bottom: 0;
  height: 2px;
  background: var(--accent);
  box-shadow: 0 0 14px rgba(245,166,35,.35);
}

.side-rail{
  position:absolute;
  z-index: 2;
  left: 14px;
  top: 0;
  bottom: 0;
  width: 22px;
  display:flex;
  align-items:center;
  justify-content:center;
}
.side-rail::before{
  content:"";
  position:absolute;
  top: 70px;
  bottom: 70px;
  left: 50%;
  width: 2px;
  transform: translateX(-50%);
  background: linear-gradient(to bottom, rgba(245,166,35,0), rgba(245,166,35,.55) 15%, rgba(245,166,35,.55) 85%, rgba(245,166,35,0));
}
.side-rail::after{
  content:"";
  position:absolute;
  left: 50%;
  top: 50%;
  width: 10px;
  height: 10px;
  transform: translate(-50%,-50%);
  border-radius: 999px;
  background: var(--accent);
  box-shadow: 0 0 18px rgba(245,166,35,.55);
}

.content{
  padding: 0 52px 0 52px;
  margin-top: 68px;
  max-width: 1200px;
}

.hero-title{
  font-family: var(--font-title);
  font-weight: 900;
  font-size: 74px;
  line-height: 1;
  letter-spacing: 1px;
  margin: 0 0 12px 0;
  text-shadow: 0 14px 26px rgba(0,0,0,.55);
}
.hero-title .accent{ color: var(--accent); }
.hero-title .white{ color: var(--fg); }

.hero-sub{
  max-width: 720px;
  color: rgba(242,242,242,.88);
  font-size: 16px;
  line-height: 1.5;
}

.home-stack{
  margin-top: clamp(520px, 60vh, 660px);
  max-width: 1180px;
}
.home-stack .big{
  font-size: 82px;
  line-height: .98;
  letter-spacing: 1px;
}
.home-title-line{
  display:block;
  white-space: nowrap;
}
.home-stack .big .accent{ color: var(--accent); }
.home-stack .big .white{ color: #f5f5f5; }

.home-meta{
  margin-top: 26px;
  color: rgba(255,255,255,.82);
  letter-spacing: .4px;
  font-size: 16px;
  display:flex;
  gap: 118px;
  align-items:center;
  flex-wrap: wrap;
}
.home-meta .meta-text{
  font-family: var(--font-nums);
  font-size: 34px;
  letter-spacing: 0;
  line-height: 1.1;
  color: rgba(255,255,255,.92);
}
.meta-chip{
  display:flex;
  align-items:center;
  gap: 14px;
  padding: 0;
  border-radius: 0;
  background: transparent;
  border: 0;
}
.meta-chip img{
  width: 24px;
  height: 24px;
  object-fit: contain;
  opacity: .95;
}

.footer{
  z-index: 2;
  display:flex;
  gap: 14px;
  align-items:center;
  color: rgba(242,242,242,.8);
  font-size: 13px;
  padding: 0 52px 26px 52px;
  margin-top: auto;
}
.footer a{
  color: inherit;
  text-decoration: none;
}
.xlink{
  display:inline-flex;
  align-items:center;
  gap: 8px;
}
.xlink:hover{
  color: rgba(255,255,255,.95);
}
.footer .x{
  color: var(--accent);
  font-weight: 800;
}
.footer .handle{
  letter-spacing: .2px;
}
.footer .sep{
  width: 1px;
  height: 14px;
  background: rgba(242,242,242,.35);
}

/* speakers list */
.speakers-title{
  margin-top: 92px;
  font-size: 86px;
  letter-spacing: 3px;
}
.speakers-list{
  margin-top: 28px;
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px 40px;
  max-width: 1120px;
}
.sp-item{
  display:grid;
  grid-template-columns: 90px 1fr;
  gap: 20px;
  padding: 18px 12px;
  border-bottom: 1px solid rgba(245,166,35,.25);
}
.sp-num{
  font-family: var(--font-nums);
  font-weight: 900;
  font-size: 56px;
  color: rgba(245,166,35,.85);
  transform: skewX(-8deg);
  letter-spacing: -2px;
}
.sp-main{
  padding-top: 8px;
}
.sp-name{
  color: var(--accent);
  font-weight: 700;
  font-size: 24px;
  letter-spacing: .3px;
}
.sp-topic{
  margin-top: 6px;
  color: rgba(255,255,255,.9);
  font-size: 18px;
  line-height: 1.35;
  font-weight: 300;
}
.sp-link{
  text-decoration:none;
  color: inherit;
}
.sp-link:hover .sp-name{ color: #ffd08a; }
.sp-link:hover .sp-topic{ color: #fff; }

/* speaker detail */
.backlink{
  position:absolute;
  right: 120px;
  top: 190px;
  z-index: 3;
  color: rgba(255,255,255,.85);
  text-decoration:none;
}
.backlink:hover{ color:#fff; }

.detail-grid{
  margin-top: 120px;
  display:grid;
  grid-template-columns: 320px 1fr;
  gap: 36px;
  align-items:start;
  max-width: 1160px;
}
.speaker-card{
  padding: 18px 18px 22px 18px;
}
.avatar{
  width: 260px;
  height: 260px;
  border-radius: 16px;
  background: linear-gradient(145deg, rgba(245,166,35,.25), rgba(0,0,0,.2));
  border: 1px solid rgba(245,166,35,.35);
  box-shadow: 0 18px 40px rgba(0,0,0,.45);
  display:flex;
  align-items:center;
  justify-content:center;
}
.avatar img{
  width: 190px;
  height: 190px;
  object-fit: contain;
}
.avatar svg{ width: 180px; height: 180px; opacity: .9; }
.speaker-name{
  margin-top: 18px;
  font-size: 40px;
  font-weight: 800;
  color: var(--accent);
  letter-spacing: .5px;
}
.panel{
  border-radius: var(--radius);
  border: 1px solid rgba(245,166,35,.35);
  background: linear-gradient(180deg, var(--panel), rgba(0,0,0,.18));
  box-shadow: 0 22px 55px rgba(0,0,0,.42);
  padding: 18px 22px;
}
.panel + .panel{ margin-top: 16px; }
.panel h3{
  margin: 0 0 8px 0;
  color: var(--accent);
  font-size: 34px;
  letter-spacing: .3px;
}
.panel .value{
  color: rgba(255,255,255,.92);
  font-size: 18px;
  line-height: 1.55;
}
.panel .value.small{ font-size: 16px; }

/* archive */
.archive-title{
  margin-top: 130px;
  font-size: 92px;
  color: var(--accent);
  letter-spacing: 6px;
}
.archive-list{
  margin-top: 28px;
  display:flex;
  flex-direction: column;
  gap: 18px;
  max-width: 760px;
}
.archive-row{
  display:grid;
  grid-template-columns: 160px 1px 1fr 80px;
  align-items:center;
  gap: 18px;
  padding: 18px 20px;
  border-radius: 10px;
  border: 1px solid rgba(245,166,35,.45);
  background: linear-gradient(180deg, rgba(0,0,0,.35), rgba(0,0,0,.2));
}
.archive-year{
  font-size: 44px;
  font-weight: 900;
  color: var(--accent);
  font-family: var(--font-nums);
}
.archive-vline{
  width: 1px;
  height: 56px;
  background: rgba(242,242,242,.4);
}
.archive-date{
  font-size: 64px;
  font-weight: 900;
  color: rgba(255,255,255,.92);
  font-family: var(--font-nums);
  letter-spacing: 1px;
}
.archive-go{
  justify-self:end;
  font-size: 54px;
  color: rgba(245,166,35,.9);
}
.archive-row:hover{
  border-color: rgba(245,166,35,.85);
  box-shadow: 0 18px 40px rgba(0,0,0,.45);
}

/* about page layout */
.about-wrap{
  margin-top: 120px;
  max-width: 820px;
}
.about-wrap .title{
  font-size: 86px;
  line-height: .98;
  letter-spacing: 2px;
}
.about-wrap p{
  margin: 16px 0;
  color: rgba(255,255,255,.9);
  line-height: 1.6;
  font-size: 16px;
}
.about-wrap .bullets{
  margin-top: 16px;
  padding-left: 0;
  list-style: none;
}
.about-wrap .bullets li{
  margin: 10px 0;
}
.about-wrap .bullets b{
  color: var(--accent);
}
.tagline{
  margin-top: 22px;
  color: var(--accent);
  font-size: 30px;
  font-weight: 800;
  letter-spacing: .4px;
}

/* CFP */
.cfp-wrap{
  margin-top: 108px;
  max-width: 940px;
}
.eyebrow{
  margin: 0 0 10px 0;
  color: rgba(255,255,255,.74);
  font-size: 15px;
  letter-spacing: 3px;
  text-transform: uppercase;
}
.cfp-title{
  font-size: 92px;
  line-height: .95;
  letter-spacing: 2px;
  margin-bottom: 26px;
}
.cfp-panel{
  max-width: 860px;
  border-radius: var(--radius);
  border: 1px solid rgba(245,166,35,.36);
  background: linear-gradient(180deg, rgba(0,0,0,.36), rgba(0,0,0,.18));
  box-shadow: 0 24px 70px rgba(0,0,0,.42);
  padding: 28px 32px 30px;
}
.cfp-panel p{
  margin: 0;
  color: rgba(255,255,255,.9);
  font-size: clamp(14px, .94vw, 16px);
  line-height: 1.55;
  font-weight: 300;
}
.cfp-panel p + p{
  margin-top: 14px;
}
.cfp-meta{
  display:grid;
  grid-template-columns: minmax(220px, .8fr) 1.2fr;
  gap: 18px;
  margin: 28px 0 0 0;
}
.cfp-meta div{
  padding-top: 18px;
  border-top: 1px solid rgba(245,166,35,.35);
}
.cfp-meta dt{
  color: var(--accent);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 1.4px;
  text-transform: uppercase;
}
.cfp-meta dd{
  margin: 8px 0 0 0;
  color: rgba(255,255,255,.94);
  font-size: 20px;
  line-height: 1.25;
  font-family: var(--font-nums);
}
.cfp-meta a{
  color: inherit;
  text-decoration: none;
}
.cfp-meta a:hover{
  color: #ffd08a;
}

@media (min-width: 1180px){
  .cfp-panel p{
    white-space: nowrap;
  }
}

@media (max-width: 980px){
  .chrome{ padding: 26px 22px; }
  .content{ padding: 0 22px; }
  .home-stack{ margin-top: 160px; }
  .home-stack .big{ font-size: 64px; }
  .hero-title{ font-size: 56px; }
  .cfp-wrap{ margin-top: 78px; }
  .cfp-title{ font-size: 56px; }
  .cfp-panel p{ font-size: 16px; }
  .cfp-meta{ grid-template-columns: 1fr; }
  .speakers-title{ font-size: 64px; }
  .speakers-list{ grid-template-columns: 1fr; }
  .detail-grid{ grid-template-columns: 1fr; }
  .backlink{ right: 22px; top: 140px; }
  .footer{ padding: 0 22px 22px 22px; }
}

@media (max-width: 560px){
  .brand{ height: 28px; }
  .brand img{ height: 24px; }
  .home-stack{ margin-top: 120px; }
  .home-stack .big{ font-size: 44px; }
  .home-title-line{ white-space: normal; }
  .home-title-line:nth-child(2) .white{ margin-left: 0; }
  .home-meta{ gap: 22px; }
  .hero-title{ font-size: 44px; }
  .cfp-wrap{ margin-top: 52px; }
  .cfp-title{ font-size: 46px; }
  .cfp-panel{ padding: 20px 18px 22px; }
  .cfp-panel p{ font-size: 16px; }
  .cfp-meta dd{ font-size: 20px; }
  .speakers-title{ font-size: 52px; }
  .archive-title{ font-size: 62px; }
  .archive-row{ grid-template-columns: 110px 1px 1fr 48px; }
  .archive-year{ font-size: 30px; }
  .archive-date{ font-size: 46px; }
  .sp-num{ font-size: 46px; }
  .sp-name{ font-size: 20px; }
  .sp-topic{ font-size: 16px; }
}

/* Portrait KV composition: use page-specific art direction instead of centering a horizontal image */
@media (max-width: 820px){
  .chrome{
    padding: 24px 18px;
  }
  .content{
    padding: 0 18px;
  }
  .topbar{
    flex-direction: column;
    align-items: center;
    gap: 12px;
    width: 100%;
  }
  .brand{
    justify-content: center;
    height: auto;
    width: 100%;
  }
  .brand img{
    height: clamp(26px, 7vw, 34px);
  }
  .nav{
    width: 100%;
    justify-content: center;
    flex-wrap: nowrap;
    gap: clamp(14px, 5vw, 34px);
    margin-top: 0;
    font-size: clamp(12px, 3.5vw, 16px);
  }
  .nav a{
    white-space: nowrap;
    padding-bottom: 8px;
  }
  .footer{
    flex-direction: column;
    justify-content: center;
    gap: 8px;
    padding: 0 18px 24px 18px;
    text-align: center;
    font-size: 12px;
    line-height: 1.35;
  }
  .footer .sep{
    display: none;
  }

  .bg{
    background-size: cover;
    background-position: center;
  }
  .bg-fill{
    inset: -70px;
    opacity: .75;
    filter: blur(28px) saturate(1.2) contrast(1.08) brightness(.78);
  }

  .home-page .bg,
  .home-page .bg-fill{
    background-image: url("../images/home-bg-portrait.jpg") !important;
    background-position: center;
  }
  .cfp-page .bg,
  .cfp-page .bg-fill,
  .speakers-page .bg,
  .speakers-page .bg-fill{
    background-image: url("../images/about-bg-portrait.jpg") !important;
    background-position: center;
  }
  .speakers-page .bg,
  .speakers-page .bg-fill{
    background-image: url("../images/speakers-bg-portrait.jpg") !important;
  }
  .speaker-detail-page .bg,
  .speaker-detail-page .bg-fill{
    background-image: url("../images/speaker-detail-bg-portrait.jpg") !important;
    background-position: center;
  }
  .archive-page .bg,
  .archive-page .bg-fill{
    background-image: url("../images/archive-bg-portrait.jpg") !important;
    background-position: center;
  }
  .about-page .bg,
  .about-page .bg-fill{
    background-image: url("../images/about-bg-portrait.jpg") !important;
    background-position: center;
  }
  .bg::after{
    background:
      radial-gradient(900px 620px at 65% 35%, rgba(0,0,0,.05), rgba(0,0,0,.55) 60%, rgba(0,0,0,.78)),
      linear-gradient(90deg, rgba(0,0,0,.78) 0%, rgba(0,0,0,.55) 38%, rgba(0,0,0,.34) 72%, rgba(0,0,0,.45) 100%);
  }

  .home-feature-logo{
    display:none;
    left: 50%;
    top: 36svh;
    transform: translate(-50%, -50%);
  }
  .home-feature-logo img{
    width: min(58vw, 520px);
  }

  .home-page .chrome{
    min-height: calc(100svh - 72px);
  }
  .home-page .content{
    display:block;
    min-height: 0;
    margin-top: 0;
  }
  .home-page .home-stack{
    position: absolute;
    left: 0;
    right: 0;
    bottom: clamp(150px, 15svh, 280px);
    margin-top: 0;
    width: 100%;
    max-width: none;
    padding: 0 36px;
  }
  .home-page .home-stack .hero-title{
    display:block;
    margin: 0 0 22px 0;
    text-align: center;
    font-size: clamp(16px, 3.2vw, 24px);
    line-height: 1.05;
    letter-spacing: .4px;
    white-space: nowrap;
  }
  .home-page .home-title-line{
    display: inline;
    white-space: nowrap;
  }
  .home-page .home-title-line:nth-child(2)::before{
    content: " ";
  }
  .home-page .home-title-line:nth-child(2) .white{
    margin-left: 0;
  }
  .home-page .home-meta{
    justify-content:center;
    gap: clamp(28px, 10vw, 72px);
    flex-wrap: nowrap;
  }
  .home-page .meta-chip img{
    width: 28px;
    height: 28px;
  }

  /* Mobile/portrait reference uses brush-style meta */
  .home-meta .meta-text{
    font-family: var(--font-nums);
    font-size: clamp(21px, 5.2vw, 28px);
    letter-spacing: 0;
    color: rgba(255,255,255,.92);
    white-space: nowrap;
  }
  .cfp-meta dd{
    font-size: clamp(14px, 3.9vw, 20px);
    line-height: 1.28;
    white-space: nowrap;
  }
  .cfp-wrap{
    margin-top: clamp(48px, 8svh, 76px);
  }
  .cfp-title{
    font-size: clamp(38px, 9.6vw, 56px);
    line-height: 1;
    white-space: normal;
  }
  .cfp-panel{
    padding: 28px 20px 26px;
  }
  .cfp-panel p{
    font-size: clamp(14px, 4vw, 16px);
    line-height: 1.62;
    white-space: normal;
  }
  .cfp-meta{
    margin-top: 26px;
  }
}

@media (max-width: 380px){
  .chrome{
    padding-inline: 14px;
  }
  .content{
    padding-inline: 14px;
  }
  .nav{
    gap: 10px;
    font-size: 11.5px;
  }
  .footer{
    padding-inline: 14px;
    font-size: 11px;
  }
}

@media (max-width: 820px) and (max-height: 760px) and (orientation: portrait){
  .home-page .home-stack{
    bottom: 132px;
  }
  .home-page .home-meta{
    gap: 26px;
  }
  .home-page .meta-chip img{
    width: 24px;
    height: 24px;
  }
  .home-meta .meta-text{
    font-size: 22px;
  }
}
