/* Sura Dharma University — demo konsep TIKUMA (universitas riset fiktif, Surabaya & Balikpapan). Tegas dan
   tenang: hitam, gading, satu warna aksen per kampus (merah pelabuhan / hijau teluk), Spectral untuk judul,
   Manrope untuk teks, tombol pil. */
@font-face { font-family: Spectral; src: url(/sura-dharma/fonts/spectral-300.woff2) format('woff2'); font-weight: 300; font-display: swap; }
@font-face { font-family: Spectral; src: url(/sura-dharma/fonts/spectral-400.woff2) format('woff2'); font-weight: 400; font-display: swap; }
@font-face { font-family: Spectral; src: url(/sura-dharma/fonts/spectral-500.woff2) format('woff2'); font-weight: 500; font-display: swap; }
@font-face { font-family: Spectral; src: url(/sura-dharma/fonts/spectral-300-italic.woff2) format('woff2'); font-weight: 300; font-style: italic; font-display: swap; }
@font-face { font-family: Spectral; src: url(/sura-dharma/fonts/spectral-400-italic.woff2) format('woff2'); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: Manrope; src: url(/sura-dharma/fonts/manrope.woff2) format('woff2'); font-weight: 300 700; font-display: swap; }

:root {
  --ink: #0d0d0d; --ink-2: #262421; --ivory: #f4f1ea; --stone: #e7e2d8; --paper: #ffffff; --muted: #5f5a52; --line: rgba(13, 13, 13, .14);
  --gold: #c89b3c; --accent: #b3261e; --accent-soft: #f0c9c4; --accent-light: #ff8f82;
  --serif: Spectral, Georgia, 'Times New Roman', serif; --sans: Manrope, system-ui, -apple-system, 'Segoe UI', sans-serif;
  --ease: cubic-bezier(.16, 1, .3, 1);
  --fx-paper: var(--ink); --fx-ink: var(--ivory); --fx-accent: var(--accent); --fx-label-bg: var(--ivory); --fx-label-fg: var(--ink);
}
[data-campus='bpn'] { --accent: #0e6d73; --accent-soft: #c3e3e2; --accent-light: #6fd0cb; }
* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }
body { background: var(--paper); color: var(--ink); font: 400 16px/1.6 var(--sans); -webkit-font-smoothing: antialiased; overflow-x: clip; }
img, svg, video { display: block; max-width: 100%; }
svg { width: 1em; height: 1em; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; text-align: inherit; }
input, select { font: inherit; color: inherit; }
ul, ol { list-style: none; }
fieldset { border: 0; min-width: 0; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
[hidden] { display: none !important; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: fixed; left: 12px; top: -60px; z-index: 200; background: var(--ink); color: #fff; padding: 10px 16px; }
.skip:focus { top: 12px; }
.wrap { width: min(1320px, 100% - 64px); margin-inline: auto; }
h1, h2, h3 { font-family: var(--serif); font-weight: 300; letter-spacing: -.015em; line-height: 1.06; }
h2 { font-size: clamp(38px, 4.4vw, 66px); }
h2 em, h3 em { font-style: italic; }
.lead { font-size: clamp(17px, 1.3vw, 19px); color: var(--muted); }
.eyebrow { font-size: 13px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--accent); transition: color .6s; }
.eyebrow.light { color: var(--accent-light); }

/* tombol */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; height: 52px; padding: 0 26px; border-radius: 99px; font-size: 15px; font-weight: 700; white-space: nowrap; transition: background-color .3s, color .3s, box-shadow .3s; }
.btn svg { width: 18px; height: 18px; transition: transform .4s var(--ease); }
.btn:hover svg { transform: translateX(3px); }
.btn.dark { background: var(--ink); color: #fff; }
.btn.dark:hover { background: var(--accent); }
.btn.light { background: var(--ivory); color: var(--ink); }
.btn.light:hover { background: #fff; }
.btn.line { box-shadow: inset 0 0 0 1.5px currentColor; }
.btn.line:hover { background: var(--ink); color: #fff; box-shadow: none; }
.circle { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; box-shadow: inset 0 0 0 1.5px currentColor; transition: background-color .3s, color .3s, box-shadow .3s; flex: none; }
.circle svg { width: 18px; height: 18px; }
.circle:hover { background: var(--ivory); color: var(--ink); box-shadow: none; }
.circle.dark { color: var(--ink); }
.circle.dark:hover { background: var(--ink); color: #fff; }
.text-link { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; border-bottom: 1.5px solid currentColor; padding-bottom: 3px; }
.text-link svg { width: 17px; height: 17px; transition: transform .4s var(--ease); }
.text-link:hover svg { transform: translateX(4px); }
.text-link.light { color: var(--ivory); }

/* bilah atas + header */
.bar { background: var(--ink); color: var(--ivory); font-size: 13px; }
.bar-in { display: flex; justify-content: space-between; align-items: center; height: 52px; width: min(1440px, 100% - 40px); margin-inline: auto; }
.campus-sw { display: flex; align-items: center; gap: 14px; }
.campus-sw span { color: rgba(244, 241, 234, .6); }
.campus-sw button { position: relative; padding: 4px 0; font-weight: 700; color: rgba(244, 241, 234, .7); transition: color .3s; }
.campus-sw button::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--accent-light); transform: scaleX(0); transition: transform .5s var(--ease); }
.campus-sw button[aria-pressed='true'] { color: #fff; }
.campus-sw button[aria-pressed='true']::after { transform: scaleX(1); }
.bar-r { display: flex; align-items: center; gap: 10px; }
.pill-o { display: inline-flex; align-items: center; gap: 8px; height: 36px; padding: 0 16px; border-radius: 99px; box-shadow: inset 0 0 0 1.5px rgba(244, 241, 234, .6); font-weight: 700; transition: background-color .3s, color .3s; }
.pill-o svg { width: 16px; height: 16px; }
.pill-o:hover { background: var(--ivory); color: var(--ink); }
.bar .circle { width: 36px; height: 36px; }
.hdr { background: var(--paper); border-bottom: 1px solid var(--line); }
.hdr-in { display: flex; justify-content: space-between; align-items: center; gap: 30px; height: 96px; width: min(1440px, 100% - 40px); margin-inline: auto; }
.logo { display: flex; align-items: center; gap: 14px; }
.logo > svg { width: 42px; height: 49px; }
.logo span { display: grid; font: 500 26px/1 var(--serif); letter-spacing: .06em; }
.logo small { font: 700 10.5px/1 var(--sans); letter-spacing: .3em; margin-bottom: 6px; }
.hdr-nav { display: flex; gap: 32px; font-size: 15px; font-weight: 700; }
.hdr-nav a { position: relative; padding: 6px 0; }
.hdr-nav a::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--accent); transform: scaleX(0); transform-origin: right; transition: transform .5s var(--ease); }
.hdr-nav a:hover::after { transform: scaleX(1); transform-origin: left; }

/* berita utama */
.news-hero { display: grid; grid-template-columns: 5fr 7fr; grid-template-rows: 1fr auto; gap: 30px 60px; padding: 50px 0 70px; }
.nh-copy { display: grid; gap: 22px; align-content: center; position: relative; }
.nh-copy .eyebrow { margin-bottom: -4px; }
.nh-copy h1 { font-size: clamp(44px, 5vw, 82px); line-height: 1; }
.nh-copy p { font-size: 18px; color: var(--muted); max-width: 38ch; }
.motion .nh-copy.in > * { animation: up .9s var(--ease) both; }
.motion .nh-copy.in > :nth-child(2) { animation-delay: .06s; }
.motion .nh-copy.in > :nth-child(3) { animation-delay: .12s; }
.motion .nh-copy.in > :nth-child(4) { animation-delay: .18s; }
@keyframes up { from { opacity: 0; transform: translateY(24px); } }
.nh-media { grid-row: 1 / span 2; grid-column: 2; position: relative; aspect-ratio: 7 / 5; overflow: hidden; background: var(--stone); }
.nh-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.nh-media img:not(.on) { visibility: hidden; }
.motion .nh-media img.on { animation: wipe 1.2s var(--ease) both; }
@keyframes wipe { from { clip-path: inset(0 0 0 100%); transform: scale(1.08); } to { clip-path: inset(0 0 0 0); } }
.nh-ctl { display: flex; align-items: center; gap: 12px; }
.nh-n { font-size: 14px; color: var(--muted); min-width: 70px; }
.nh-n b { color: var(--ink); }
.nh-bar { flex: 1; height: 2px; background: var(--line); margin-right: 8px; }
.nh-bar i { display: block; height: 100%; background: var(--accent); transform-origin: 0 50%; transform: scaleX(0); }

/* cari program studi */
.search { background: var(--ink); color: var(--ivory); padding: 56px 0 44px; }
.s-form { display: grid; grid-template-columns: auto 230px 1fr auto; align-items: center; gap: 12px; }
.search h2 { font-size: 38px; margin-right: 18px; }
.s-form select, .s-form input { width: 100%; height: 56px; padding: 0 22px; border-radius: 99px; border: 0; background: rgba(244, 241, 234, .08); box-shadow: inset 0 0 0 1px rgba(244, 241, 234, .35); color: var(--ivory); outline: none; transition: box-shadow .3s; }
.s-form select { appearance: none; background: rgba(244, 241, 234, .08) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='m6 9 6 6 6-6' fill='none' stroke='%23f4f1ea' stroke-width='2'/%3E%3C/svg%3E") no-repeat right 18px center / 16px; cursor: pointer; }
.s-form select option { color: var(--ink); }
.s-form input::placeholder { color: rgba(244, 241, 234, .55); }
.s-form :is(select, input):focus { box-shadow: inset 0 0 0 2px var(--ivory); }
.s-form .btn { height: 56px; }
.s-q { position: relative; }
.s-sugg { position: absolute; left: 0; right: 0; top: calc(100% + 8px); z-index: 5; padding: 8px; border-radius: 20px; background: var(--paper); color: var(--ink); box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .6); }
.motion .s-sugg:not([hidden]) { animation: up .4s var(--ease); }
.s-sugg li { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 11px 16px; border-radius: 14px; cursor: pointer; }
.s-sugg li:hover, .s-sugg li.active { background: var(--ivory); }
.s-sugg li b { font-weight: 700; }
.s-sugg li b mark { background: none; color: var(--accent); }
.s-sugg li small { font-size: 12.5px; color: var(--muted); white-space: nowrap; }
.s-sugg .none { color: var(--muted); cursor: default; }
.s-pop { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 18px; margin-top: 20px; font-size: 14px; color: rgba(244, 241, 234, .6); }
.s-pop button { color: var(--ivory); font-weight: 700; text-decoration: underline; text-underline-offset: 4px; text-decoration-color: rgba(244, 241, 234, .35); }
.s-pop button:hover { text-decoration-color: var(--accent-light); }

/* hari terbuka */
.openday { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center; padding: 130px 0; }
.od-img { aspect-ratio: 9 / 7; overflow: hidden; background: var(--stone); }
.od-img img { width: 100%; height: 100%; object-fit: cover; }
.od-copy { display: grid; gap: 24px; justify-items: start; }
.od-copy .lead b { color: var(--ink); font-weight: 600; }
.count { display: grid; gap: 10px; padding: 20px 0; border-block: 1px solid var(--line); width: 100%; }
.count-l { font-size: 13px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.count-n { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.count-n span { display: grid; font-size: 13px; color: var(--muted); }
.count-n b { font: 300 clamp(40px, 4.4vw, 64px)/1 var(--serif); color: var(--ink); font-variant-numeric: tabular-nums lining-nums; }

/* alumni */
.alumni { background: var(--ink); color: var(--ivory); padding: 120px 0 100px; overflow: hidden; }
.al-head { display: flex; justify-content: space-between; align-items: end; gap: 30px; margin-bottom: 50px; }
.al-head > div:first-child { display: grid; gap: 16px; }
.al-head h2 em { color: var(--accent-light); transition: color .6s; }
.al-nav { display: flex; gap: 10px; }
.al-track { display: flex; gap: 22px; overflow-x: auto; scroll-snap-type: x mandatory; padding-inline: max(32px, calc((100% - 1320px) / 2)); scroll-padding-inline: max(32px, calc((100% - 1320px) / 2)); scrollbar-width: none; cursor: grab; user-select: none; -webkit-user-select: none; }
.al-track::-webkit-scrollbar { display: none; }
.al-track.drag { cursor: grabbing; scroll-snap-type: none; }
.al-track.drag * { pointer-events: none; }
.al-card { flex: 0 0 min(360px, 78vw); scroll-snap-align: start; display: grid; gap: 18px; }
.al-card img { width: 100%; aspect-ratio: 600 / 760; object-fit: cover; background: var(--ink-2); transition: transform 1.2s var(--ease), filter .6s; filter: grayscale(.25); }
.al-card:hover img { filter: none; }
.al-card > div { display: grid; gap: 8px; }
.al-tag { font-size: 12.5px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--accent-light); transition: color .6s; }
.al-card h3 { font-size: 28px; }
.al-card p:last-child { font-size: 14.5px; color: rgba(244, 241, 234, .65); }
.al-foot { display: flex; align-items: center; gap: 30px; margin-top: 44px; }
.al-bar { flex: 1; height: 2px; background: rgba(244, 241, 234, .2); }
.al-bar i { display: block; height: 100%; width: 30%; background: var(--ivory); transform-origin: 0 50%; transition: transform .2s linear; }

/* riset */
.research { padding: 130px 0; }
.rs-head { display: grid; gap: 18px; margin-bottom: 50px; max-width: 900px; }
.rs-head h2 em { color: var(--accent); transition: color .6s; }
.rs-list { border-bottom: 1px solid var(--line); }
.rs-list li { border-top: 1px solid var(--line); }
.rs-list button { width: 100%; display: grid; grid-template-columns: auto 50px minmax(0, 1.1fr) minmax(0, 1fr) 30px; align-items: center; gap: 20px; padding: 24px 0; transition: padding .7s var(--ease); }
.rs-img { width: 0; height: 110px; overflow: hidden; transition: width .8s var(--ease), margin .8s var(--ease); margin-right: -20px; }
.rs-img img { width: 170px; height: 110px; max-width: none; object-fit: cover; transform: scale(1.2); transition: transform 1s var(--ease); }
.rs-n { font-size: 13px; font-weight: 700; color: var(--accent); }
.rs-t { font: 300 clamp(28px, 3.2vw, 48px)/1.05 var(--serif); letter-spacing: -.02em; transition: color .4s; }
.rs-d { font-size: 15px; color: var(--muted); }
.rs-list button svg { width: 24px; height: 24px; transition: transform .5s var(--ease); }
.rs-list button:is(:hover, :focus-visible) .rs-img { width: 170px; margin-right: 0; }
.rs-list button:is(:hover, :focus-visible) .rs-img img { transform: none; }
.rs-list button:is(:hover, :focus-visible) .rs-t { color: var(--accent); }
.rs-list button:is(:hover, :focus-visible) svg { transform: translateX(6px); }

/* kota */
.city { position: relative; background: var(--ink); color: var(--ivory); }
.city-img { position: relative; height: min(88vh, 860px); min-height: 520px; overflow: hidden; }
.city-img picture { position: absolute; inset: 0; }
.city-img img { width: 100%; height: 100%; object-fit: cover; }
.motion .city-img img.swap { animation: fadeIn 1s ease both; }
@keyframes fadeIn { from { opacity: 0; } }
.city-img::after { content: ''; position: absolute; inset: 0; background: linear-gradient(0deg, var(--ink) 0%, rgba(13, 13, 13, .45) 40%, rgba(13, 13, 13, .1)); pointer-events: none; }
.city-in { position: absolute; left: 0; right: 0; bottom: 56px; z-index: 1; display: flex; justify-content: space-between; align-items: end; gap: 30px; }
.city h2 { font-size: clamp(46px, 6.4vw, 104px); max-width: 15ch; line-height: .98; }
.city h2 em { display: block; color: var(--accent-light); transition: color .6s; }
.play { display: inline-flex; align-items: center; gap: 14px; font-weight: 700; flex: none; }
.play span { display: grid; place-items: center; width: 84px; height: 84px; border-radius: 50%; background: var(--ivory); color: var(--ink); transition: transform .5s var(--ease), background-color .3s; }
.play span svg { width: 26px; height: 26px; margin-left: 4px; }
.play:hover span { transform: scale(1.08); background: #fff; }
.city-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; padding: 40px 0 120px; }
.city-cards article { display: grid; gap: 14px; padding-top: 26px; border-top: 1px solid rgba(244, 241, 234, .2); }
.city-cards h3 { font-size: 34px; }
.city-cards p:last-child { color: rgba(244, 241, 234, .7); max-width: 46ch; }

/* warisan + jam */
.heritage { background: var(--ivory); padding: 130px 0; }
.her-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: start; }
.her-stick { position: sticky; top: 40px; }
.clock-wrap { position: relative; aspect-ratio: 3 / 4; max-height: calc(100vh - 80px); overflow: hidden; background: var(--ink); }
.tower { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .55; filter: grayscale(.3) contrast(1.1); }
.clock { position: absolute; left: 50%; top: 44%; width: 62%; height: auto; translate: -50% -50%; filter: drop-shadow(0 20px 40px rgba(0, 0, 0, .5)); }
.c-rim { fill: var(--ink); stroke: var(--gold); stroke-width: 4; }
.c-face { fill: var(--ivory); }
.c-num { font: 400 21px/1 var(--serif); fill: var(--ink); }
.c-tick { stroke: var(--ink); stroke-width: 1.5; }
.c-hour { stroke: var(--ink); stroke-width: 8; stroke-linecap: round; }
.c-min { stroke: var(--ink); stroke-width: 4.5; stroke-linecap: round; }
.c-pin { fill: var(--accent); transition: fill .6s; }
.her-year { position: absolute; left: 28px; bottom: 18px; font: 300 clamp(70px, 8vw, 120px)/1 var(--serif); color: var(--ivory); letter-spacing: -.03em; font-variant-numeric: lining-nums; }
.motion .her-year.tick { animation: up .6s var(--ease); }
.her-body { display: grid; gap: 24px; padding-top: 10px; }
.her-body h2 em { color: var(--accent); transition: color .6s; }
.her-list { margin-top: 30px; display: grid; }
.her-list li { display: grid; gap: 10px; padding: 34px 0 34px 24px; border-left: 2px solid var(--stone); min-height: 32vh; transition: border-color .5s; }
.her-list li::before { content: attr(data-y); font: 400 18px/1 var(--serif); color: var(--muted); transition: color .5s; }
.her-list li.on { border-color: var(--accent); }
.her-list li.on::before { color: var(--accent); }
.her-list h3 { font-size: 32px; }
.her-list p { color: var(--muted); max-width: 44ch; }
html:not(.motion) .her-list li { min-height: 0; }

/* acara */
.events { padding: 120px 0 140px; }
.ev-head { display: flex; justify-content: space-between; align-items: end; flex-wrap: wrap; gap: 24px; margin-bottom: 36px; }
.ev-head > div:first-child { display: grid; gap: 14px; }
.ev-head .chips { flex: 1 1 auto; justify-content: flex-end; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips button { height: 40px; padding: 0 18px; border-radius: 99px; box-shadow: inset 0 0 0 1.5px var(--line); font-size: 14px; font-weight: 700; transition: background-color .25s, color .25s, box-shadow .25s; }
.chips button:hover { box-shadow: inset 0 0 0 1.5px var(--ink); }
.chips button[aria-pressed='true'] { background: var(--ink); color: #fff; box-shadow: none; }
.ev-list { border-bottom: 1px solid var(--line); }
.ev-list li { border-top: 1px solid var(--line); }
.ev-list button { width: 100%; display: grid; grid-template-columns: 110px 1fr auto 44px; align-items: center; gap: 28px; padding: 22px 12px; transition: background-color .3s; }
.ev-list button:hover { background: var(--ivory); }
.ev-date { display: grid; font-size: 13px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.ev-date b { font: 300 48px/1 var(--serif); letter-spacing: -.02em; color: var(--ink); }
.ev-list h3 { font-size: 27px; }
.ev-where { display: inline-flex; align-items: center; gap: 6px; margin-top: 6px; font-size: 14px; color: var(--muted); }
.ev-where svg { width: 16px; height: 16px; }
.ev-type { height: 30px; padding: 0 12px; display: inline-flex; align-items: center; border-radius: 99px; background: var(--accent-soft); color: var(--ink); font-size: 12.5px; font-weight: 700; transition: background-color .6s; }
.ev-list .go { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; box-shadow: inset 0 0 0 1.5px var(--line); }
.ev-list .go svg { width: 18px; height: 18px; }
.ev-list button:hover .go { background: var(--ink); color: #fff; box-shadow: none; }
.motion .ev-list li.in { animation: up .6s var(--ease) both; animation-delay: calc(var(--i) * 50ms); }

/* footer */
.foot { background: var(--ink); color: rgba(244, 241, 234, .7); padding: 80px 0 96px; }
.foot .logo { color: var(--ivory); }
.foot-top { display: flex; justify-content: space-between; align-items: end; flex-wrap: wrap; gap: 30px; padding-bottom: 44px; border-bottom: 1px solid rgba(244, 241, 234, .14); font-size: 14.5px; }
.foot-cols { display: grid; grid-template-columns: repeat(4, 1fr); gap: 30px; padding-top: 40px; }
.foot h3 { font: 700 13px/1 var(--sans); letter-spacing: .12em; text-transform: uppercase; color: var(--ivory); margin-bottom: 14px; }
.foot li { padding: 4px 0; font-size: 15px; }
.foot li :is(a, button):hover { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.credits { margin-top: 44px; font-size: 13px; color: rgba(244, 241, 234, .55); }
.credits summary { cursor: pointer; font-size: 14px; font-weight: 700; color: var(--ivory); }
.credits p { margin-top: 10px; max-width: 920px; }
.credits a { text-decoration: underline; }
.legal { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; margin-top: 24px; font-size: 13px; }
.legal a { text-decoration: underline; }
.demo { position: fixed; left: 16px; bottom: 16px; z-index: 50; display: flex; align-items: center; gap: 10px; padding: 10px 16px 10px 12px; border-radius: 99px; background: #fff; color: #111; font: 600 13px/1.2 system-ui, sans-serif; box-shadow: 0 10px 30px -10px rgba(0, 0, 0, .35); }
.demo i { width: 8px; height: 8px; border-radius: 50%; background: #4f46e5; box-shadow: 0 0 0 4px rgba(79, 70, 229, .18); }
.demo span { color: #666; font-weight: 400; }

/* dialog */
dialog { border: 0; padding: 0; max-width: none; max-height: none; background: transparent; color: var(--ink); }
dialog::backdrop { background: rgba(13, 13, 13, .6); }
.motion dialog[open]::backdrop { animation: fadeIn .5s ease; }
body.lock { overflow: hidden; }
.menu { width: 100vw; height: 100vh; height: 100dvh; margin: 0; display: none; flex-direction: column; gap: 30px; background: var(--ink); color: var(--ivory); padding: 0 max(20px, calc((100vw - 1440px) / 2 + 20px)) 34px; }
.menu[open] { display: flex; }
.menu-top { display: flex; justify-content: space-between; align-items: center; height: 96px; }
.menu-nav { display: grid; margin: auto 0; }
.menu-nav a { padding: 12px 0; font: 300 clamp(40px, 5.6vw, 84px)/1.05 var(--serif); letter-spacing: -.02em; border-bottom: 1px solid rgba(244, 241, 234, .14); transition: color .3s, padding .6s var(--ease); }
.menu-nav a:hover { color: var(--accent-light); padding-left: 16px; font-style: italic; }
.campus-sw.big { font-size: 16px; }
.motion .menu[open] { animation: fadeIn .4s ease; }
.motion .menu[open] .menu-nav a { animation: up .8s var(--ease) both; }
.motion .menu[open] .menu-nav a:nth-child(2) { animation-delay: .05s; }
.motion .menu[open] .menu-nav a:nth-child(3) { animation-delay: .1s; }
.motion .menu[open] .menu-nav a:nth-child(4) { animation-delay: .15s; }
.motion .menu[open] .menu-nav a:nth-child(5) { animation-delay: .2s; }
.story { width: 100vw; height: 100vh; height: 100dvh; margin: 0; background: #000; color: #fff; }
.story[open] { display: block; }
.st-frames, .st-frame { position: absolute; inset: 0; }
.st-frame { opacity: 0; transition: opacity .8s; }
.st-frame.on { opacity: 1; }
.st-frame img { width: 100%; height: 100%; object-fit: cover; }
.motion .st-frame.on img { animation: kb 5s linear both; }
@keyframes kb { from { transform: scale(1.1); } }
.st-frame::after { content: ''; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(0, 0, 0, .75), transparent 50%); }
.st-frame p { position: absolute; left: max(24px, 6vw); right: max(24px, 6vw); bottom: 8vh; z-index: 1; font: 300 clamp(30px, 4.6vw, 64px)/1.1 var(--serif); max-width: 20ch; }
.st-frame p small { display: block; margin-bottom: 14px; font: 700 13px/1 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--accent-light); }
.st-bars { position: absolute; left: 20px; right: 80px; top: 22px; z-index: 3; display: flex; gap: 6px; }
.st-bars i { flex: 1; height: 3px; border-radius: 3px; background: rgba(255, 255, 255, .3); overflow: hidden; }
.st-bars b { display: block; height: 100%; background: #fff; transform-origin: 0 50%; transform: scaleX(0); }
.st-zone { position: absolute; top: 0; bottom: 0; z-index: 2; }
.st-zone.prev { left: 0; width: 35%; cursor: w-resize; }
.st-zone.next { right: 0; width: 65%; cursor: e-resize; }
.st-x { position: absolute; top: 10px; right: 16px; z-index: 4; color: #fff; }
.note { margin: auto; width: min(540px, 100% - 32px); padding: 40px; background: var(--paper); }
.note[open] { display: grid; gap: 16px; }
.motion .note[open] { animation: up .5s var(--ease); }
.note h3 { font-size: 36px; }
.note p { color: var(--muted); }
.note .actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 8px; }
.toast { position: fixed; left: 50%; bottom: 24px; z-index: 60; transform: translate(-50%, calc(100% + 40px)); visibility: hidden; padding: 14px 22px; border-radius: 99px; background: var(--ink); color: #fff; font-size: 14px; transition: transform .6s var(--ease), visibility 0s .6s; pointer-events: none; white-space: nowrap; }
.toast.on { transform: translate(-50%, 0); visibility: visible; transition: transform .6s var(--ease); }

/* responsif */
@media (max-width: 1100px) {
  .hdr-nav { display: none; }
  .s-form { grid-template-columns: 200px 1fr auto; }
  .search h2 { grid-column: 1 / -1; }
  .rs-list button { grid-template-columns: auto 40px minmax(0, 1fr) 30px; }
  .rs-d { display: none; }
}
@media (max-width: 900px) {
  .news-hero { grid-template-columns: 1fr; grid-template-rows: auto; }
  .nh-media { grid-row: auto; grid-column: auto; order: -1; }
  .openday, .her-grid { grid-template-columns: 1fr; gap: 44px; }
  .her-stick { position: relative; top: 0; }
  .clock-wrap { aspect-ratio: 4 / 3; }
  .clock { width: 42%; top: 50%; }
  .city-cards { grid-template-columns: 1fr; gap: 30px; }
  .foot-cols { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 760px) {
  .wrap { width: calc(100% - 32px); }
  .bar-in, .hdr-in { width: calc(100% - 24px); }
  .campus-sw > span { display: none; }
  .pill-o { width: 36px; padding: 0; justify-content: center; font-size: 0; gap: 0; }
  .hdr-in { height: 76px; }
  .logo > svg { width: 34px; height: 40px; }
  .logo span { font-size: 21px; }
  .logo small { font-size: 9px; }
  .news-hero { padding: 24px 0 60px; gap: 24px; }
  .nh-copy h1 { font-size: 40px; }
  .nh-copy p { font-size: 16px; }
  .search { padding: 40px 0 34px; }
  .s-form { grid-template-columns: 1fr auto; }
  .search h2 { font-size: 30px; }
  .s-sel { grid-column: 1 / -1; }
  .s-form .btn { padding: 0 20px; font-size: 0; gap: 0; }
  .openday { padding: 90px 0; }
  .count-n b { font-size: 38px; }
  .alumni { padding: 90px 0 80px; }
  .al-head { flex-direction: column; align-items: flex-start; margin-bottom: 34px; }
  .al-nav { display: none; }
  .al-track { padding-inline: 16px; scroll-padding-inline: 16px; gap: 14px; }
  .al-card h3 { font-size: 24px; }
  .research { padding: 90px 0; }
  .rs-list button { grid-template-columns: 76px minmax(0, 1fr) 24px; gap: 14px; padding: 18px 0; }
  .rs-n { display: none; }
  .rs-img, .rs-list button:is(:hover, :focus-visible) .rs-img { width: 76px; height: 60px; margin-right: 0; }
  .rs-img img { width: 76px; height: 60px; transform: none; }
  .rs-t { font-size: 25px; }
  .city-img { height: 72vh; min-height: 460px; max-height: 640px; }
  .city-in { bottom: 30px; flex-direction: column; align-items: flex-start; gap: 22px; }
  .play span { width: 64px; height: 64px; }
  .city-cards { padding: 40px 0 90px; }
  .heritage { padding: 90px 0; }
  .clock { width: 56%; }
  .her-year { font-size: 64px; left: 18px; }
  .her-list li { min-height: 0; padding: 26px 0 26px 18px; }
  .her-list h3 { font-size: 26px; }
  .events { padding: 90px 0 100px; }
  .ev-head .chips { justify-content: flex-start; }
  .ev-list button { grid-template-columns: 64px 1fr; gap: 16px; padding: 18px 4px; }
  .ev-date b { font-size: 36px; }
  .ev-type { grid-column: 2; justify-self: start; }
  .ev-list .go { display: none; }
  .ev-list h3 { font-size: 22px; }
  .foot { padding: 60px 0 110px; }
  .note { padding: 28px 22px; }
}
