:root {
  --ink: #171614;
  --paper: #f7f5ef;
  --white: #fff;
  --wine: #8f2528;
  --wine-dark: #64191c;
  --mint: #b9d8ca;
  --blue: #57798d;
  --gold: #d3a64a;
  --line: rgba(23, 22, 20, .14);
  --muted: #6f6b65;
  --shadow: 0 18px 50px rgba(22, 18, 14, .12);
  --max: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--paper); font-family: "Noto Sans SC", system-ui, sans-serif; letter-spacing: 0; }
button, input { font: inherit; letter-spacing: 0; }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }

.topbar { position: fixed; inset: 0 0 auto; z-index: 20; height: 72px; display: flex; align-items: center; justify-content: space-between; padding: 0 max(24px, calc((100vw - var(--max)) / 2)); color: #fff; background: rgba(17, 15, 13, .86); border-bottom: 1px solid rgba(255,255,255,.13); backdrop-filter: blur(18px); }
.brand { display: flex; align-items: center; gap: 11px; min-width: 210px; }
.brand img { width: 40px; height: 40px; object-fit: cover; border-radius: 50%; background: #fff; }
.brand span { display: grid; line-height: 1.1; }
.brand strong { font-size: 15px; }
.brand small { color: rgba(255,255,255,.62); font-size: 11px; margin-top: 5px; }
nav { display: flex; gap: 30px; font-size: 13px; }
nav a { color: rgba(255,255,255,.76); transition: color .2s; }
nav a:hover { color: #fff; }
.icon-btn { width: 40px; height: 40px; display: grid; place-items: center; border: 0; background: transparent; cursor: pointer; color: inherit; }
.icon-btn svg { width: 20px; }
.menu-btn { display: none; }

.hero { position: relative; min-height: 92vh; height: 760px; max-height: 900px; color: #fff; display: flex; align-items: center; overflow: hidden; }
.hero-media { position: absolute; inset: 0; background: url("assets/dorm-room.jpg") center 38% / cover no-repeat; transform: scale(1.02); }
.hero-shade { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(16,13,11,.92) 0%, rgba(16,13,11,.68) 48%, rgba(16,13,11,.34) 100%), linear-gradient(0deg, rgba(16,13,11,.72), transparent 45%); }
.hero-content { position: relative; z-index: 1; width: min(var(--max), calc(100% - 48px)); margin: 46px auto 0; }
.eyebrow { max-width: 620px; font-size: 11px; line-height: 1.7; color: var(--mint); text-transform: uppercase; }
h1 { margin: 18px 0 16px; font-size: clamp(52px, 8vw, 104px); line-height: 1; font-weight: 800; }
.hero-lead { width: min(610px, 100%); font-size: 18px; line-height: 1.8; color: rgba(255,255,255,.78); }
.search-wrap { margin-top: 34px; width: min(640px, 100%); height: 62px; display: flex; align-items: center; gap: 14px; padding: 0 17px; background: #fff; color: var(--ink); border-radius: 6px; box-shadow: var(--shadow); }
.search-wrap svg { color: var(--wine); flex: 0 0 auto; }
.search-wrap input { width: 100%; border: 0; outline: 0; font-size: 15px; background: transparent; }
kbd { border: 1px solid var(--line); background: #f1eee7; border-radius: 4px; padding: 3px 8px; color: var(--muted); }
.quick-links { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 17px; scrollbar-width: none; }
.quick-links::-webkit-scrollbar, .checklist-tabs::-webkit-scrollbar { display: none; }
.quick-links button { padding: 8px 12px; border: 1px solid rgba(255,255,255,.28); color: #fff; background: rgba(0,0,0,.16); border-radius: 4px; cursor: pointer; }
.quick-links button:hover { background: rgba(255,255,255,.13); }
.scroll-cue { position: absolute; left: 50%; bottom: 20px; z-index: 2; transform: translateX(-50%); display: grid; justify-items: center; gap: 5px; font-size: 11px; color: rgba(255,255,255,.66); }
.scroll-cue svg { width: 18px; animation: bob 1.7s infinite; }
@keyframes bob { 50% { transform: translateY(5px); } }

.notice-band { min-height: 82px; display: grid; grid-template-columns: 180px 1fr; align-items: center; gap: 26px; padding: 20px max(24px, calc((100vw - var(--max)) / 2)); color: #fff; background: var(--wine); }
.notice-band div { display: flex; align-items: center; gap: 9px; }
.notice-band p { margin: 0; font-size: 13px; color: rgba(255,255,255,.8); line-height: 1.7; }

.section { width: min(var(--max), calc(100% - 48px)); margin: 0 auto; padding: 104px 0; }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 30px; margin-bottom: 42px; }
.section-heading h2, .map-copy h2, .checklist-head h2 { margin: 8px 0 0; font-size: clamp(30px, 4vw, 48px); line-height: 1.2; }
.section-heading > p { max-width: 400px; margin: 0; color: var(--muted); text-align: right; }
.section-index { color: var(--wine); font-size: 11px; font-weight: 800; }
.guide-grid { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.guide-card { min-height: 255px; padding: 24px; display: flex; flex-direction: column; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); background: rgba(255,255,255,.38); cursor: pointer; transition: transform .2s, background .2s, box-shadow .2s; }
.guide-card:hover { position: relative; z-index: 1; transform: translateY(-4px); background: #fff; box-shadow: var(--shadow); }
.guide-icon { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 5px; color: #fff; background: var(--wine); }
.guide-icon svg { width: 20px; }
.guide-card:nth-child(3n+2) .guide-icon { background: var(--blue); }
.guide-card:nth-child(3n) .guide-icon { color: var(--ink); background: var(--mint); }
.guide-card small { margin: 22px 0 7px; color: var(--muted); }
.guide-card h3 { margin: 0; font-size: 23px; }
.guide-card p { margin: 12px 0 20px; color: var(--muted); line-height: 1.7; font-size: 13px; }
.guide-card span:last-child { margin-top: auto; color: var(--wine); font-weight: 700; font-size: 13px; }

.map-band { display: grid; grid-template-columns: minmax(330px, .75fr) minmax(520px, 1.25fr); color: #fff; background: #171b1e; }
.map-copy { padding: 88px max(40px, calc((100vw - var(--max)) / 2)); padding-right: 50px; }
.map-copy .section-index { color: var(--mint); }
.map-copy > p { color: rgba(255,255,255,.62); line-height: 1.8; }
.map-facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 34px 0; }
.map-facts div { padding-top: 13px; border-top: 1px solid rgba(255,255,255,.18); display: grid; }
.map-facts strong { font-size: 20px; }
.map-facts span { margin-top: 4px; color: rgba(255,255,255,.5); font-size: 11px; }
.map-filters { display: flex; flex-wrap: wrap; gap: 8px; }
.map-filters button { padding: 8px 12px; border: 1px solid rgba(255,255,255,.22); color: rgba(255,255,255,.72); background: transparent; border-radius: 4px; cursor: pointer; }
.map-filters button.active { border-color: var(--mint); color: #122119; background: var(--mint); }
.map-frame { position: relative; min-height: 630px; padding: 50px; display: grid; place-items: center; background: #e9e4d8; }
.map-frame img { max-height: 560px; object-fit: contain; filter: saturate(.9); box-shadow: 0 22px 60px rgba(0,0,0,.2); }
.map-caption { position: absolute; left: 24px; right: 24px; bottom: 14px; display: flex; justify-content: center; gap: 7px; color: #5a5751; font-size: 11px; }
.map-caption svg { width: 14px; }

.dorm-layout { display: grid; grid-template-columns: 1.3fr .7fr; gap: 20px; }
figure { margin: 0; }
figure img { width: 100%; height: 100%; object-fit: cover; }
figcaption { margin-top: 8px; color: var(--muted); font-size: 11px; }
.dorm-main { height: 640px; }
.dorm-info { display: grid; grid-template-rows: auto auto 1fr; gap: 12px; }
.fact { padding: 24px; background: #fff; border: 1px solid var(--line); }
.fact span { color: var(--wine); font-size: 11px; font-weight: 700; }
.fact strong { display: block; margin-top: 8px; font-size: 20px; }
.fact p { margin: 8px 0 0; color: var(--muted); font-size: 12px; line-height: 1.7; }
.dorm-info figure { min-height: 260px; }

.checklist-band { padding: 90px max(24px, calc((100vw - var(--max)) / 2)); background: #dce8e2; }
.checklist-head { display: flex; justify-content: space-between; align-items: center; gap: 24px; }
.checklist-head p { color: #587066; }
.progress-ring { width: 106px; height: 106px; flex: 0 0 auto; border-radius: 50%; display: grid; place-content: center; text-align: center; background: conic-gradient(var(--wine) 0deg, rgba(255,255,255,.7) 0); box-shadow: inset 0 0 0 11px rgba(255,255,255,.65); }
.progress-ring strong { font-size: 21px; }
.progress-ring span { color: var(--muted); font-size: 10px; }
.checklist-tabs { display: flex; gap: 7px; margin: 38px 0 20px; overflow-x: auto; scrollbar-width: none; }
.checklist-tabs button { flex: 0 0 auto; padding: 9px 15px; border: 1px solid rgba(23,22,20,.17); background: transparent; border-radius: 4px; cursor: pointer; }
.checklist-tabs button.active { color: #fff; border-color: var(--ink); background: var(--ink); }
.checklist-items { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.check-item { min-height: 58px; display: flex; align-items: center; gap: 12px; padding: 12px 15px; background: rgba(255,255,255,.7); border: 1px solid rgba(23,22,20,.09); cursor: pointer; }
.check-item input { width: 18px; height: 18px; accent-color: var(--wine); }
.check-item.checked span { color: var(--muted); text-decoration: line-through; }

.faq-tools { display: flex; justify-content: space-between; align-items: center; gap: 20px; margin-bottom: 20px; }
.faq-search { width: min(510px, 100%); height: 48px; display: flex; align-items: center; gap: 10px; padding: 0 14px; background: #fff; border: 1px solid var(--line); }
.faq-search input { width: 100%; border: 0; outline: 0; background: transparent; }
.faq-search svg { width: 18px; color: var(--wine); }
.faq-count { color: var(--muted); font-size: 12px; }
.faq-list { border-top: 1px solid var(--ink); }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-question { width: 100%; min-height: 76px; display: grid; grid-template-columns: 42px 1fr 30px; align-items: center; text-align: left; border: 0; background: transparent; cursor: pointer; }
.faq-question b { color: var(--wine); }
.faq-question span { font-weight: 600; }
.faq-question svg { width: 18px; transition: transform .2s; }
.faq-item.open .faq-question svg { transform: rotate(45deg); }
.faq-answer { display: none; padding: 0 50px 24px 42px; color: var(--muted); line-height: 1.9; font-size: 14px; }
.faq-item.open .faq-answer { display: block; }
.faq-contact-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.faq-contact-actions button { display: inline-flex; align-items: center; gap: 7px; min-height: 40px; padding: 0 13px; border: 1px solid var(--line); border-radius: 4px; color: var(--ink); background: #fff; cursor: pointer; font-weight: 700; font-size: 12px; }
.faq-contact-actions button:first-child { color: #fff; border-color: var(--wine); background: var(--wine); }
.faq-contact-actions svg { width: 15px; }
.empty-state { padding: 70px 20px; text-align: center; color: var(--muted); }
.empty-state svg { margin: 0 auto; }

footer { min-height: 190px; display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 40px max(24px, calc((100vw - var(--max)) / 2)); color: #fff; background: #12110f; }
footer > div { display: flex; align-items: center; gap: 12px; }
footer img { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; }
footer p { color: rgba(255,255,255,.55); font-size: 12px; }
footer a { display: flex; align-items: center; gap: 7px; color: var(--mint); font-size: 13px; }
footer svg { width: 16px; }

.search-panel { position: fixed; inset: 72px 0 0; z-index: 15; background: rgba(18,17,15,.78); backdrop-filter: blur(8px); }
.search-panel-inner { width: min(720px, calc(100% - 32px)); max-height: calc(100vh - 112px); overflow: auto; margin: 20px auto; padding: 22px; background: var(--paper); box-shadow: var(--shadow); }
.search-panel-head { display: flex; justify-content: space-between; align-items: center; padding-bottom: 14px; border-bottom: 1px solid var(--line); font-weight: 700; }
.search-result { display: block; padding: 16px 0; border-bottom: 1px solid var(--line); }
.search-result small { color: var(--wine); }
.search-result h3 { margin: 5px 0; font-size: 17px; }
.search-result p { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.6; }

.contact-dock { position: fixed; right: 18px; bottom: 18px; z-index: 14; display: grid; gap: 8px; }
.contact-dock-btn { min-width: 156px; height: 46px; display: flex; align-items: center; justify-content: center; gap: 8px; border: 0; border-radius: 5px; color: #fff; background: var(--wine); box-shadow: 0 12px 30px rgba(23,22,20,.22); cursor: pointer; font-weight: 700; font-size: 13px; }
.contact-dock-btn.wall { background: #17845f; }
.contact-dock-btn svg { width: 18px; }
.contact-modal { position: fixed; inset: 0; z-index: 50; display: grid; place-items: center; padding: 20px; }
.contact-modal[hidden] { display: none; }
.contact-backdrop { position: absolute; inset: 0; background: rgba(15,14,12,.78); backdrop-filter: blur(7px); }
.contact-dialog { position: relative; width: min(560px, 100%); max-height: calc(100vh - 40px); overflow: auto; padding: 34px; border-radius: 7px; background: var(--paper); box-shadow: 0 30px 90px rgba(0,0,0,.32); }
.contact-close { position: absolute; top: 12px; right: 12px; color: var(--ink); }
.contact-kicker { color: var(--wine); font-size: 11px; font-weight: 800; }
.contact-dialog h2 { margin: 8px 44px 8px 0; font-size: 28px; line-height: 1.3; }
.contact-dialog > p { margin: 0; color: var(--muted); line-height: 1.7; font-size: 13px; }
.contact-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; margin: 22px 0 14px; }
.contact-tabs button { height: 42px; border: 1px solid var(--line); border-radius: 4px; background: transparent; cursor: pointer; font-weight: 700; }
.contact-tabs button.active { color: #fff; border-color: var(--ink); background: var(--ink); }
.contact-panel { display: grid; grid-template-columns: minmax(180px, 240px) 1fr; align-items: center; gap: 20px; padding: 16px; border: 1px solid var(--line); background: #fff; }
.contact-panel[hidden] { display: none; }
.contact-panel img { width: 100%; aspect-ratio: 1 / 1.2; object-fit: contain; background: #fff; }
.contact-panel div { display: grid; gap: 7px; min-width: 0; }
.contact-panel strong { font-size: 18px; overflow-wrap: anywhere; }
.contact-panel span { color: var(--wine); font-weight: 700; overflow-wrap: anywhere; }
.contact-panel small { color: var(--muted); line-height: 1.6; }
.contact-done { width: 100%; height: 48px; margin-top: 14px; border: 0; border-radius: 4px; color: #fff; background: var(--wine); cursor: pointer; font-weight: 700; }
body.contact-open { overflow: hidden; }

@media (max-width: 900px) {
  nav { display: none; position: absolute; top: 72px; left: 0; right: 0; padding: 20px 24px; background: #171513; flex-direction: column; }
  nav.open { display: flex; }
  .menu-btn { display: grid; }
  .guide-grid { grid-template-columns: repeat(2, 1fr); }
  .map-band { grid-template-columns: 1fr; }
  .map-copy { padding: 70px 32px; }
  .map-frame { min-height: 520px; }
  .dorm-layout { grid-template-columns: 1fr; }
  .dorm-main { height: 520px; }
  .dorm-info { grid-template-columns: 1fr 1fr; grid-template-rows: auto auto; }
  .dorm-info figure { grid-column: 1 / -1; height: 300px; }
  .checklist-items { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 600px) {
  .topbar { height: 62px; padding: 0 16px; }
  .brand { min-width: 0; }
  .brand img { width: 34px; height: 34px; }
  .hero { min-height: 88vh; height: 690px; align-items: end; }
  .hero-media { background-position: 54% center; }
  .hero-shade { background: linear-gradient(0deg, rgba(14,12,10,.96) 0%, rgba(14,12,10,.6) 65%, rgba(14,12,10,.3)); }
  .hero-content { width: calc(100% - 32px); margin: 0 auto 78px; }
  .eyebrow { font-size: 9px; }
  h1 { font-size: 48px; }
  .hero-lead { font-size: 15px; line-height: 1.7; }
  .search-wrap { height: 56px; margin-top: 24px; padding: 0 12px; }
  kbd { display: none; }
  .quick-links { flex-wrap: nowrap; overflow-x: auto; }
  .quick-links button { white-space: nowrap; }
  .notice-band { grid-template-columns: 1fr; gap: 8px; padding: 18px 16px; }
  .section { width: calc(100% - 32px); padding: 72px 0; }
  .section-heading { align-items: start; flex-direction: column; margin-bottom: 28px; }
  .section-heading > p { text-align: left; }
  .guide-grid { grid-template-columns: 1fr; }
  .guide-card { min-height: 215px; }
  .map-copy { padding: 68px 16px 50px; }
  .map-facts strong { font-size: 16px; }
  .map-frame { min-height: 380px; padding: 24px 14px 50px; }
  .dorm-main { height: 430px; }
  .dorm-info { grid-template-columns: 1fr; }
  .dorm-info figure { grid-column: auto; height: 240px; }
  .checklist-band { padding: 68px 16px; }
  .checklist-head { align-items: start; }
  .progress-ring { width: 86px; height: 86px; }
  .checklist-items { grid-template-columns: 1fr; }
  .faq-tools { align-items: start; flex-direction: column; }
  .faq-question { grid-template-columns: 34px 1fr 24px; }
  .faq-answer { padding-left: 34px; padding-right: 24px; }
  .contact-dock { left: 12px; right: 12px; bottom: 10px; grid-template-columns: 1fr 1fr; }
  .contact-dock-btn { min-width: 0; height: 44px; padding: 0 8px; font-size: 12px; }
  .contact-dialog { padding: 28px 18px 18px; }
  .contact-dialog h2 { font-size: 22px; }
  .contact-panel { grid-template-columns: minmax(130px, 47%) 1fr; gap: 12px; padding: 10px; }
  .contact-panel strong { font-size: 14px; }
  .contact-panel span, .contact-panel small { font-size: 11px; }
  footer { padding-bottom: 88px; }
  footer { align-items: start; flex-direction: column; }
  .search-panel { inset: 62px 0 0; }
}
