:root {
  --ibk-blue: #005bac;
  --sky: #e6f4ff;
  --gold: #d7a84b;
  --ink: #162033;
  --muted: #657084;
  --line: #dbe6f2;
  --panel: #ffffff;
  --soft: #f7fbff;
}

* {
  box-sizing: border-box;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-offset, 84px);
}

body {
  margin: 0;
  color: var(--ink);
  font-family: "Segoe UI", "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
  font-size: 19px;
  background: linear-gradient(180deg, #f4fbff 0%, #ffffff 34%, #f7fbff 100%);
}

body.dialog-open {
  overflow: hidden;
}

body.side-menu-open {
  overflow-x: hidden;
}

body.chat-open {
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 12px;
  padding: 14px clamp(18px, 4vw, 56px);
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(219, 230, 242, 0.8);
}

.music-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  width: 42px;
  height: 42px;
  margin-left: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ibk-blue);
  background: #fff;
  font: inherit;
  font-size: 26px;
  font-weight: 900;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 8px 18px rgba(22, 63, 120, 0.08);
}

.music-toggle:hover,
.music-toggle.is-active {
  border-color: var(--ibk-blue);
  color: #fff;
  background: var(--ibk-blue);
}

.music-player-panel {
  position: fixed;
  top: calc(var(--header-offset, 84px) + 10px);
  right: clamp(16px, 4vw, 56px);
  z-index: 35;
  width: min(330px, calc(100vw - 32px));
  overflow: hidden;
  border: 1px solid rgba(0, 91, 172, 0.22);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.97);
  box-shadow: 0 18px 42px rgba(22, 63, 120, 0.22);
}

.music-player-panel[hidden] {
  display: none;
}

.music-player-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-height: 42px;
  padding: 8px 10px 8px 14px;
  color: var(--ibk-blue);
  background: #f7fbff;
  border-bottom: 1px solid var(--line);
}

.music-player-head strong {
  font-size: 15px;
  font-weight: 900;
}

.music-mini-button {
  width: 30px;
  height: 30px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  background: #fff;
  font: inherit;
  font-size: 18px;
  font-weight: 900;
  line-height: 1;
  cursor: pointer;
}

.music-mini-button:hover {
  border-color: var(--ibk-blue);
  color: var(--ibk-blue);
}

.music-player-slot {
  aspect-ratio: 16 / 9;
  background: #000;
}

.music-player-slot iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
}

.site-header,
main,
.footer {
  transition: width 0.28s ease, transform 0.28s ease;
}

body.chat-open .site-header,
body.chat-open main,
body.chat-open .footer {
  width: calc(100% - 380px);
}

.menu-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  flex: 0 0 auto;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 2px 0;
  border-radius: 999px;
  background: var(--ibk-blue);
}

.menu-toggle:hover {
  border-color: var(--ibk-blue);
  background: var(--sky);
}

.brand {
  display: flex;
  align-items: center;
  flex: 0 0 auto;
  gap: clamp(5px, 0.6vw, 7px);
  width: auto;
}

.brand-logo {
  display: block;
  width: clamp(170px, 19vw, 230px);
  height: auto;
}

.brand-divider {
  flex: 0 0 auto;
  width: 3px;
  height: clamp(22px, 2.1vw, 28px);
  border-radius: 2px;
  background: var(--gold);
}

.brand-group-name {
  color: #2b5296;
  font-family: Arial, "Malgun Gothic", sans-serif;
  font-size: clamp(22px, 2.1vw, 28px);
  font-weight: 900;
  line-height: 1;
  white-space: nowrap;
}

.side-menu {
  position: fixed;
  top: var(--header-offset, 92px);
  left: 0;
  z-index: 21;
  width: min(270px, calc(100vw - 56px));
  padding: 18px 14px 18px 18px;
  border: 1px solid var(--line);
  border-left: 0;
  border-radius: 0 8px 8px 0;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 18px 20px 44px rgba(22, 32, 51, 0.16);
  transform: translateX(calc(-100% + 14px));
  transition: transform 180ms ease;
}

.side-menu::after {
  content: "";
  position: absolute;
  top: 18px;
  right: -7px;
  width: 7px;
  height: 64px;
  border-radius: 0 8px 8px 0;
  background: var(--ibk-blue);
}

.side-menu-open .side-menu {
  transform: translateX(0);
}

.side-menu a {
  display: flex;
  align-items: center;
  min-height: 46px;
  margin: 6px 0;
  padding: 0 14px;
  border: 1px solid transparent;
  border-radius: 8px;
  color: var(--ink);
  font-weight: 900;
}

.side-menu a:hover {
  border-color: var(--ibk-blue);
  color: var(--ibk-blue);
  background: var(--sky);
}

.side-menu-backdrop {
  position: fixed;
  inset: 0;
  z-index: 20;
  border: 0;
  background: rgba(22, 32, 51, 0.12);
}

.side-menu-backdrop[hidden] {
  display: none;
}

.nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-left: auto;
  color: var(--ibk-blue);
  font-size: 15px;
  font-weight: 700;
}

.nav a {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.nav a:hover {
  border-color: var(--ibk-blue);
  background: var(--sky);
  color: var(--ibk-blue);
}

.nav a.active {
  border-color: var(--ibk-blue);
  color: #fff;
  background: var(--ibk-blue);
}

.page-hero {
  padding: clamp(54px, 8vw, 92px) clamp(20px, 6vw, 88px) clamp(30px, 5vw, 52px);
  background:
    radial-gradient(circle at 80% 18%, rgba(215, 168, 75, 0.22), transparent 28%),
    linear-gradient(140deg, #edf8ff 0%, #ffffff 58%, #e8f4ff 100%);
  border-bottom: 1px solid var(--line);
}

.page-hero h1 {
  max-width: 900px;
  font-size: clamp(34px, 5vw, 60px);
}

.page-hero p:not(.eyebrow) {
  max-width: 720px;
  margin: 18px 0 0;
  color: var(--muted);
  font-size: clamp(16px, 2vw, 20px);
  line-height: 1.7;
}

.media-page-hero {
  padding-top: 22px;
  padding-bottom: 18px;
}

.media-page-hero .eyebrow {
  margin-bottom: 6px;
}

.media-page-hero h1 {
  font-size: 36px;
}

.media-page-hero p:not(.eyebrow) {
  margin-top: 6px;
  font-size: 15px;
  line-height: 1.5;
}

.letter-hero {
  padding-top: 18px;
  padding-bottom: 16px;
}

.letter-hero h1 {
  font-size: clamp(28px, 3.4vw, 40px);
}

.letter-hero p:not(.eyebrow) {
  margin-top: 6px;
  font-size: 15px;
}

.letter-board-section {
  padding-top: 18px;
}

.menu-section {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
  padding: 0 clamp(20px, 6vw, 88px) clamp(54px, 8vw, 96px);
}

.menu-card {
  min-height: 150px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 14px 34px rgba(28, 74, 120, 0.08);
}

.menu-card:hover {
  border-color: var(--ibk-blue);
  transform: translateY(-2px);
}

.menu-card span {
  color: var(--gold);
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
}

.menu-card strong {
  display: block;
  margin-top: 12px;
  color: var(--ibk-blue);
  font-size: clamp(22px, 2.4vw, 30px);
}

.menu-card p {
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.55;
}

.nav a:hover {
  color: var(--ibk-blue);
}

.hero {
  position: relative;
  min-height: calc(100vh - 68px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 24px;
  overflow: hidden;
  padding: 36px clamp(20px, 6vw, 88px) 40px;
  text-align: center;
  background: #f6fbff;
  border-bottom: 1px solid var(--line);
}

.hero::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 5px;
  background: linear-gradient(90deg, var(--ibk-blue) 0 78%, var(--gold) 78% 100%);
}

.eyebrow,
.section-kicker {
  margin: 0 0 12px;
  color: var(--gold);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2 {
  margin: 0;
  letter-spacing: 0;
  line-height: 1.15;
}

h1 {
  font-size: clamp(38px, 6vw, 74px);
}

h2 {
  font-size: clamp(26px, 3.2vw, 42px);
}

.hero-message {
  max-width: 760px;
  margin: 22px auto 0;
  color: var(--muted);
  font-size: clamp(17px, 2vw, 22px);
  line-height: 1.65;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  margin-top: 30px;
}

.button {
  border: 1px solid var(--line);
  border-radius: 8px;
  min-height: 44px;
  padding: 0 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--ink);
  background: #fff;
  font-family: inherit;
  font-size: inherit;
  font-weight: 800;
  line-height: 1;
  white-space: nowrap;
  cursor: pointer;
}

.button.primary {
  color: #fff;
  border-color: var(--ibk-blue);
  background: var(--ibk-blue);
}

.button.ghost {
  background: rgba(255, 255, 255, 0.65);
}

.hero-portrait {
  width: min(1120px, 100%);
}

.portrait-frame {
  position: relative;
  display: grid;
  grid-template-columns: minmax(240px, 0.9fr) minmax(0, 1.45fr);
  gap: 36px;
  align-items: center;
  justify-content: center;
  min-height: 410px;
  width: 100%;
  overflow: hidden;
  border: 1px solid rgba(0, 91, 172, 0.2);
  border-radius: 8px;
  padding: 30px 64px 20px;
  color: var(--ink);
  background: #fff;
  box-shadow:
    0 16px 38px rgba(26, 74, 120, 0.11),
    inset 0 0 0 6px rgba(235, 246, 255, 0.7);
}

.hero-frame-photo,
.portrait-content {
  position: relative;
  z-index: 1;
}

.hero-frame-photo {
  align-self: stretch;
  width: 100%;
  min-height: 340px;
  overflow: hidden;
  border-radius: 6px;
  background: #e8f1fa;
  box-shadow: 0 16px 34px rgba(22, 63, 120, 0.18);
}

.hero-frame-photo img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: 50% 32%;
}

@media (min-width: 861px) {
  .hero-frame-photo {
    align-self: center;
    height: 360px;
    min-height: 0;
  }
}

.portrait-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-self: center;
  min-width: 0;
  width: 100%;
  overflow: hidden;
  text-align: center;
}

.portrait-frame::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 7px;
  background: linear-gradient(90deg, var(--ibk-blue) 0 72%, var(--gold) 72% 100%);
}

.portrait-frame::after {
  content: "";
  position: absolute;
  inset: 10px;
  border: 1px solid rgba(0, 91, 172, 0.12);
  border-radius: 4px;
  pointer-events: none;
}

.portrait-kicker {
  margin: 0 0 22px;
  color: var(--gold);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 23px;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
}

.portrait-identity {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: 100%;
  white-space: nowrap;
}

.portrait-identity strong {
  position: relative;
  margin: 0;
  color: var(--muted);
  font-size: clamp(24px, 1.56vw, 30px);
  font-weight: 800;
  word-break: keep-all;
}

.portrait-identity .identity-name {
  color: var(--ibk-blue);
  font-size: clamp(42px, 3.06vw, 57px);
  font-weight: 900;
  line-height: 1.05;
  word-break: keep-all;
}

.portrait-identity .identity-dash {
  color: var(--gold);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(28px, 1.96vw, 37px);
  font-weight: 700;
  line-height: 1;
}

.portrait-identity strong::before,
.portrait-identity strong::after {
  content: none;
}

.portrait-frame h1 {
  margin-top: 34px;
  max-width: 100%;
  font-size: clamp(28px, 1.9vw, 43px);
  line-height: 1.22;
  letter-spacing: 0;
  word-break: keep-all;
  overflow-wrap: normal;
  white-space: normal;
  text-wrap: balance;
  text-align: center;
}

.portrait-frame .hero-message {
  margin-top: 18px;
  margin-left: auto;
  margin-right: auto;
  max-width: none;
  font-size: clamp(19px, 1.34vw, 25px);
  text-align: center;
  word-break: keep-all;
  white-space: normal;
  text-wrap: balance;
}

.portrait-frame .hero-actions {
  justify-content: center;
  flex-wrap: nowrap;
  gap: 10px;
  margin-top: 24px;
}

.portrait-frame .hero-actions .button {
  flex: 0 1 124px;
  min-width: 0;
  width: 124px;
  max-width: 124px;
  padding-left: 10px;
  padding-right: 10px;
  font-size: clamp(14px, 0.9vw, 17px);
  word-break: keep-all;
  overflow: hidden;
}

body.chat-open .portrait-frame {
  grid-template-columns: minmax(210px, 0.82fr) minmax(0, 1.18fr);
  gap: 26px;
  padding-left: 34px;
  padding-right: 34px;
}

body.chat-open .hero-frame-photo img {
  width: 100%;
  height: 100%;
  transform: none;
  object-position: 50% 32%;
}

.hero-menu-shell {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: center;
  width: min(1120px, 100%);
}

.hero-menu-shell .menu-section {
  position: relative;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 10px;
  width: 100%;
  padding: 0;
}

.hero-menu-shell .menu-card {
  min-height: 92px;
  padding: 12px 12px 8px;
  text-align: left;
  background: #fff;
  box-shadow: 0 14px 34px rgba(28, 74, 120, 0.08);
}

.hero-menu-shell .menu-card span {
  display: block;
  overflow: hidden;
  font-size: 11px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.hero-menu-shell .menu-card strong {
  margin-top: 7px;
  font-size: 23px;
  line-height: 1.1;
  white-space: nowrap;
}

.hero-menu-shell .menu-card p {
  overflow: hidden;
  margin-top: 7px;
  font-size: 12px;
  line-height: 1.3;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.hero-menu-scroll {
  display: none;
  place-items: center;
  width: 34px;
  height: 60px;
  border: 1px solid rgba(167, 175, 185, 0.45);
  border-radius: 8px;
  padding: 0;
  color: #a7afb9;
  background: rgba(255, 255, 255, 0.82);
  font: inherit;
  font-size: 22px;
  font-weight: 700;
  cursor: pointer;
}

.hero-menu-scroll:hover:not(:disabled) {
  border-color: #8d97a5;
  color: #7a8594;
  background: #fff;
}

.hero-menu-scroll:disabled {
  opacity: 0.32;
  cursor: default;
}

.intro-band {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  margin: 0 clamp(20px, 6vw, 88px);
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--line);
}

.intro-band div {
  padding: 24px;
  background: rgba(255, 255, 255, 0.9);
}

.intro-band span {
  display: block;
  margin-bottom: 8px;
  color: var(--ibk-blue);
  font-size: 13px;
  font-weight: 900;
}

.intro-band strong {
  font-size: 18px;
  line-height: 1.5;
}

.section {
  padding: clamp(54px, 8vw, 96px) clamp(20px, 6vw, 88px);
}

.home-page main > .section {
  padding-top: 28px;
}

.home-page .media-section {
  padding-bottom: 28px;
}

.section.letter-board-section {
  padding-top: 38px;
  min-height: 620px;
}

.two-column,
.section-head {
  display: grid;
  grid-template-columns: minmax(240px, 0.75fr) minmax(0, 1.25fr);
  gap: clamp(28px, 5vw, 70px);
  align-items: start;
}

#profile.two-column {
  grid-template-columns: minmax(300px, 0.82fr) minmax(0, 1.18fr);
  gap: clamp(24px, 4vw, 56px);
  align-items: stretch;
  padding-top: 28px;
  padding-bottom: 40px;
}

.section p {
  color: var(--muted);
  line-height: 1.8;
}

.profile-intro {
  display: grid;
  grid-template-rows: auto auto auto;
  align-content: start;
  gap: 14px;
  height: 100%;
  justify-items: center;
}

.profile-intro .section-kicker {
  margin-bottom: 0;
  justify-self: start;
  font-size: 16px;
}

.profile-photo {
  position: relative;
  display: grid;
  place-items: center;
  width: min(100%, 340px);
  height: 410px;
  overflow: hidden;
  border: 0;
  border-radius: 18px;
  padding: 0;
  color: var(--ibk-blue);
  background: #fff;
  box-shadow:
    0 24px 46px rgba(22, 63, 120, 0.2),
    0 8px 18px rgba(22, 63, 120, 0.12);
  font-weight: 900;
}

.profile-photo::before,
.profile-photo::after {
  content: none;
}

.profile-photo img {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
  border-radius: inherit;
  box-shadow: none;
  object-fit: cover;
  object-position: center top;
}

.profile-nameplate {
  width: min(100%, 340px);
  text-align: center;
  margin-top: 4px;
}

.profile-nameplate span {
  display: block;
  color: var(--muted);
  font-size: 14px;
  font-weight: 800;
}

.profile-nameplate strong {
  display: block;
  margin-top: 6px;
  color: var(--ink);
  font-size: clamp(25px, 2.8vw, 36px);
  font-weight: 900;
  letter-spacing: 0;
}

.board-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
}

.media-section .board-head {
  margin-top: 0;
}

.section .section-subtitle {
  margin: 6px 0 0;
  color: #a7afb9;
  font-size: clamp(21px, calc(3.2vw - 5px), 37px);
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: 0;
}

.media-section .media-carousel {
  margin-top: 20px;
}

.timeline {
  display: grid;
  grid-template-rows: repeat(5, minmax(54px, max-content));
  align-content: space-between;
  gap: 0;
  height: calc(100% - 92px);
  margin: 49px 0 0;
  padding: 0;
  list-style: none;
}

.timeline li,
.message-row,
.media-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: 0 14px 34px rgba(28, 74, 120, 0.08);
}

.timeline li {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 22px;
  align-items: center;
  min-height: 0;
  padding: 12px 18px;
}

.timeline time {
  color: var(--ibk-blue);
  font-weight: 900;
}

.timeline span {
  color: var(--ink);
  line-height: 1.7;
}

.career-panel {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 100%;
  padding-top: 40px;
}

.career-timeline,
.career-detail-timeline {
  position: relative;
  display: grid;
  gap: clamp(18px, 2.25vw, 30px);
  margin: 0;
  padding: 8px 0 8px 34px;
  list-style: none;
}

.career-timeline::before,
.career-detail-timeline::before {
  content: "";
  position: absolute;
  top: 18px;
  bottom: 18px;
  left: 11px;
  width: 3px;
  border-radius: 999px;
  background: linear-gradient(180deg, #f3d37c, #d6a13f);
}

.career-timeline li,
.career-detail-timeline li {
  position: relative;
  display: grid;
  grid-template-columns: 118px minmax(0, 1fr);
  gap: 18px;
  align-items: center;
}

.career-timeline li::before,
.career-detail-timeline li::before {
  content: "";
  position: absolute;
  left: -31px;
  top: 50%;
  width: 13px;
  height: 13px;
  border: 3px solid #f4d47c;
  border-radius: 999px;
  background: #fff;
  box-shadow: 0 0 0 4px rgba(246, 220, 144, 0.28);
  transform: translateY(-50%);
}

.career-timeline .career-major::before,
.career-detail-timeline .career-major::before {
  width: 18px;
  height: 18px;
  left: -33px;
  background: #d7a84b;
  border-color: #fff5c8;
  box-shadow: 0 0 0 5px rgba(215, 168, 75, 0.28);
}

.career-timeline time,
.career-detail-timeline time {
  color: var(--ibk-blue);
  font-size: 17px;
  font-weight: 900;
  white-space: nowrap;
}

.career-timeline .career-current,
.career-detail-timeline .career-current {
  font-weight: 900;
  -webkit-text-stroke: 0.25px currentColor;
  text-shadow: 0 0 0 currentColor;
}

.career-timeline time {
  font-size: 15px;
}

.career-timeline span,
.career-detail-timeline span {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  column-gap: 10px;
  row-gap: 2px;
  min-width: 0;
}

.career-timeline strong,
.career-detail-timeline strong {
  color: var(--ink);
  font-size: 21px;
  font-weight: 900;
  line-height: 1.3;
  word-break: keep-all;
}

.career-timeline strong {
  font-size: 18px;
}

.career-timeline em,
.career-detail-timeline em {
  color: var(--muted);
  font-size: 17px;
  font-style: normal;
  font-weight: 800;
  line-height: 1.35;
  word-break: keep-all;
}

.career-timeline em {
  font-size: 15px;
}

.career-detail-button {
  align-self: flex-end;
  margin-top: 18px;
}

.career-dialog {
  width: min(760px, calc(100vw - 32px));
  max-height: min(86vh, 860px);
  overflow: auto;
}

.career-detail-timeline {
  gap: 14px;
  padding-top: 12px;
}

.career-detail-timeline li {
  grid-template-columns: 120px minmax(0, 1fr);
  min-height: 48px;
}

.career-detail-timeline li:not(.career-major)::before {
  width: 9px;
  height: 9px;
  left: -29px;
  border-width: 2px;
}

.career-detail-timeline strong,
.career-detail-timeline li:not(.career-major) strong {
  font-size: 18px;
  font-weight: 800;
}

.career-detail-timeline em,
.career-detail-timeline li:not(.career-major) em {
  font-size: 15px;
  font-weight: 700;
}

.live-chat-panel {
  position: fixed;
  top: 0;
  right: 0;
  z-index: 30;
  display: grid;
  grid-template-rows: auto auto minmax(0, 1fr) auto;
  gap: 14px;
  width: 380px;
  height: 100dvh;
  padding: 22px 18px;
  border-left: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.96);
  box-shadow: -18px 0 36px rgba(22, 63, 120, 0.16);
  transform: translateX(100%);
  transition: transform 0.28s ease;
}

body.chat-open .live-chat-panel {
  transform: translateX(0);
}

.live-chat-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}

.live-chat-head h2 {
  margin: 3px 0 0;
  font-size: 26px;
}

.chat-profile-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.chat-profile-row > .button {
  flex: 0 0 auto;
  min-height: 38px;
  padding: 0 13px;
  font-size: 14px;
}

.chat-profile-popup {
  position: absolute;
  left: 18px;
  right: 18px;
  top: 88px;
  z-index: 2;
  padding: 10px;
  border: 1px solid rgba(0, 91, 172, 0.18);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 18px 34px rgba(22, 63, 120, 0.18);
}

.chat-profile-popup[hidden] {
  display: none;
}

.chat-profile-popup-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  color: var(--ink);
  font-size: 15px;
  font-weight: 900;
}

.chat-profile-form {
  display: grid;
  gap: 10px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f7fbff;
}

.chat-profile-form label {
  display: grid;
  gap: 5px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.chat-profile-form input,
.chat-profile-form select,
.chat-form input {
  width: 100%;
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 12px;
  color: var(--ink);
  background: #fff;
  font: inherit;
  font-size: 15px;
}

.chat-active-profile {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex: 1 1 auto;
  min-width: 0;
  min-height: 38px;
  padding: 8px 11px;
  border-radius: 8px;
  background: #eef6ff;
  color: var(--ibk-blue);
  font-size: 14px;
  font-weight: 900;
}

.chat-active-profile span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.chat-active-profile[hidden] {
  display: none;
}

.text-button {
  border: 0;
  padding: 0;
  color: var(--muted);
  background: transparent;
  font: inherit;
  font-size: 13px;
  font-weight: 900;
  cursor: pointer;
}

.chat-list {
  min-height: 0;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 4px 2px 8px;
}

.chat-empty {
  margin: auto;
  color: var(--muted);
  font-size: 14px;
  text-align: center;
}

.chat-message {
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 8px 18px rgba(22, 63, 120, 0.07);
}

.chat-message.mine {
  border-color: rgba(0, 91, 172, 0.25);
  background: #eef6ff;
}

.chat-message-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 5px;
}

.chat-message strong {
  color: var(--ink);
  font-size: 14px;
}

.chat-message em {
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
  font-weight: 800;
}

.chat-message p {
  margin: 0;
  color: var(--ink);
  font-size: 15px;
  line-height: 1.45;
  word-break: keep-all;
  overflow-wrap: anywhere;
}

.chat-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
}

.live-chat-backdrop {
  position: fixed;
  inset: 0;
  z-index: 25;
  border: 0;
  background: rgba(22, 32, 51, 0.14);
}

.live-chat-backdrop[hidden] {
  display: none;
}

.statement {
  background: var(--ibk-blue);
  color: #fff;
}

.statement p,
.statement .section-kicker {
  color: rgba(255, 255, 255, 0.82);
}

.statement h2 {
  color: #fff;
}

.statement h3.section-subtitle {
  margin: 7px 0 0;
  color: #a7afb9;
}

.statement p:not(.section-kicker) {
  max-width: 900px;
  font-size: clamp(19px, 2.5vw, 30px);
}

.statement .note {
  font-size: 15px;
}

.taste-map-section {
  color: #fff;
  background: var(--ibk-blue);
}

.taste-map-section .section-kicker,
.taste-map-section .taste-map-heading > p {
  color: rgba(255, 255, 255, 0.82);
}

.taste-map-section h2 {
  color: #fff;
}

.taste-map-heading {
  max-width: 760px;
  margin-bottom: 28px;
}

.taste-map-heading > p:last-child {
  margin: 9px 0 0;
  font-size: 19px;
}

.taste-map-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 190px;
  gap: 18px;
  align-items: stretch;
}

.taste-map-canvas {
  position: relative;
  z-index: 0;
  isolation: isolate;
  contain: paint;
  width: 100%;
  min-height: 500px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #eaf2f7;
}

.taste-map-loading {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 24px;
  color: var(--muted);
  text-align: center;
}

.taste-map-controls {
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 18px;
  border-left: 1px solid var(--line);
  background: #fff;
}

.taste-filter-group {
  display: grid;
  gap: 8px;
}

.taste-filter {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: 0 12px;
  color: var(--ink);
  background: #fff;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.taste-filter span:last-child {
  margin-left: auto;
  color: var(--muted);
  font-size: 13px;
}

.taste-filter:hover,
.taste-filter.active {
  border-color: var(--ibk-blue);
  color: var(--ibk-blue);
  background: var(--sky);
}

.taste-dot {
  position: relative;
  display: inline-grid;
  place-items: center;
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
  border: 1px solid #fff;
  border-radius: 50% 50% 50% 5px;
  box-shadow: 0 2px 5px rgba(22, 32, 51, 0.18);
  transform: rotate(-45deg);
}

.taste-dot::after {
  content: "";
  width: 10px;
  height: 10px;
  background: #fff;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round' d='M7 2v8M4 2v5c0 2 1.3 3 3 3s3-1 3-3V2M7 10v12M16 2v20M16 2c3 2 4 5 4 8h-4'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round' d='M7 2v8M4 2v5c0 2 1.3 3 3 3s3-1 3-3V2M7 10v12M16 2v20M16 2c3 2 4 5 4 8h-4'/%3E%3C/svg%3E") center / contain no-repeat;
  transform: rotate(45deg);
}

.taste-dot.lunch {
  background: #ef8b2c;
}

.taste-dot.dinner {
  background: #7550a8;
}

.taste-dot.both {
  background: #22945b;
}

.taste-map-legend {
  display: grid;
  gap: 9px;
  padding-top: 15px;
  border-top: 1px solid var(--line);
}

.taste-map-legend p {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  font-size: 13px;
}

.taste-map-controls .button {
  margin-top: auto;
}

.taste-map-marker {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border: 3px solid #fff;
  border-radius: 50% 50% 50% 7px;
  color: #fff;
  font-size: 13px;
  font-weight: 900;
  box-shadow: 0 5px 14px rgba(22, 32, 51, 0.26);
  transform: rotate(-45deg);
}

.taste-map-marker > span,
.taste-map-marker > svg {
  transform: rotate(45deg);
}

.taste-map-marker > svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.taste-map-marker.lunch {
  background: #ef8b2c;
}

.taste-map-marker.dinner {
  background: #7550a8;
}

.taste-map-marker.both {
  background: #22945b;
}

.taste-info-window {
  width: 230px;
  padding: 14px;
  color: var(--ink);
  line-height: 1.45;
  background: #fff;
}

.taste-info-window strong,
.taste-info-window span {
  display: block;
}

.taste-info-window span {
  margin: 5px 0 10px;
  color: var(--muted);
  font-size: 12px;
}

.taste-info-window a {
  color: var(--ibk-blue);
  font-size: 13px;
  font-weight: 800;
}

.restaurant-dialog {
  width: min(720px, 100%);
}

.restaurant-search-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
}

.restaurant-search-field {
  position: relative;
}

.restaurant-search-field svg {
  position: absolute;
  top: 50%;
  left: 13px;
  width: 19px;
  height: 19px;
  fill: none;
  stroke: var(--muted);
  stroke-width: 2;
  transform: translateY(-50%);
}

.restaurant-search-field input {
  width: 100%;
  padding-left: 42px;
}

.restaurant-search-results {
  display: grid;
  gap: 8px;
  margin-top: 16px;
}

.restaurant-result {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: 13px 14px;
  color: var(--ink);
  text-align: left;
  background: #fff;
  cursor: pointer;
}

.restaurant-result:hover {
  border-color: var(--ibk-blue);
  background: var(--soft);
}

.restaurant-result strong,
.restaurant-result span {
  display: block;
}

.restaurant-result span {
  margin-top: 5px;
  color: var(--muted);
  font-size: 13px;
}

.restaurant-result svg {
  align-self: center;
  width: 18px;
  height: 18px;
  fill: none;
  stroke: var(--ibk-blue);
  stroke-width: 2;
}

.restaurant-back-button {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  border: 0;
  padding: 4px 0;
  color: var(--ibk-blue);
  background: transparent;
  font: inherit;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
}

.restaurant-back-button svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
}

.restaurant-detail-card {
  margin-top: 16px;
  padding: 18px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.restaurant-detail-card h3 {
  margin: 0 0 7px;
  font-size: 22px;
}

.restaurant-detail-card p {
  margin: 4px 0;
  color: var(--muted);
}

.restaurant-detail-card a {
  display: inline-block;
  margin-top: 12px;
  color: var(--ibk-blue);
  font-weight: 800;
}

.restaurant-register-form {
  display: grid;
  gap: 18px;
  margin-top: 18px;
}

.restaurant-register-form fieldset {
  display: flex;
  gap: 10px;
  border: 0;
  padding: 0;
  margin: 0;
}

.restaurant-register-form legend {
  width: 100%;
  margin-bottom: 10px;
  font-weight: 800;
}

.restaurant-register-form label {
  display: flex;
  align-items: center;
  gap: 7px;
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: 0 14px;
  cursor: pointer;
}

.upload-form,
.message-form {
  display: grid;
  gap: 10px;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 13px 14px;
  color: var(--ink);
  background: #fff;
  font: inherit;
}

select {
  appearance: none;
  background:
    linear-gradient(45deg, transparent 50%, var(--ibk-blue) 50%) right 18px center / 8px 8px no-repeat,
    linear-gradient(135deg, var(--ibk-blue) 50%, transparent 50%) right 13px center / 8px 8px no-repeat,
    #fff;
}

textarea {
  min-height: 118px;
  resize: vertical;
}

.media-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 18px;
  align-items: start;
  margin-top: 34px;
}

.media-page-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: 0;
}

.media-page-grid .empty {
  grid-column: 1 / -1;
}

.media-pagination {
  margin-top: 24px;
}

.media-carousel {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) 44px;
  gap: 12px;
  align-items: center;
  margin-top: 34px;
}

.carousel-window {
  min-width: 0;
  touch-action: pan-y;
}

.media-carousel-track {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  align-items: start;
  min-height: 252px;
}

.carousel-button {
  display: grid;
  place-items: center;
  width: 44px;
  height: 72px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ibk-blue);
  background: #fff;
  font: inherit;
  font-size: 26px;
  font-weight: 900;
  cursor: pointer;
}

.carousel-button:hover:not(:disabled) {
  border-color: var(--ibk-blue);
  background: var(--sky);
}

.carousel-button:disabled {
  cursor: default;
  opacity: 0.38;
}

.media-card {
  position: relative;
  align-self: start;
  overflow: hidden;
  border: 0;
  border-radius: 4px;
  padding: 4px;
  height: fit-content;
  line-height: 0;
  background: #fff;
  box-shadow: 0 10px 24px rgba(28, 74, 120, 0.1);
}

.media-grid.is-editing .media-card {
  outline: 2px solid rgba(0, 91, 172, 0.2);
  outline-offset: 2px;
}

.media-card.is-dragging {
  z-index: 3;
  opacity: 0.24;
  transform: scale(0.97);
  outline: 2px dashed rgba(0, 91, 172, 0.48);
  outline-offset: -4px;
}

.media-drag-preview {
  position: fixed;
  z-index: 1000;
  margin: 0;
  pointer-events: none;
  opacity: 0.76;
  transform: rotate(1deg) scale(1.02);
  box-shadow: 0 18px 38px rgba(22, 32, 51, 0.28);
  will-change: left, top;
}

.media-drag-handle,
.media-delete-button {
  position: absolute;
  top: 12px;
  z-index: 4;
  display: none;
  place-items: center;
  width: 36px;
  height: 36px;
  border: 1px solid rgba(219, 230, 242, 0.95);
  border-radius: 8px;
  padding: 0;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 5px 14px rgba(22, 32, 51, 0.18);
}

.media-page-grid.is-editing .media-drag-handle,
.media-page-grid.is-editing .media-delete-button {
  display: grid;
}

.media-section .media-drag-handle,
.media-section .media-delete-button {
  display: none !important;
}

.media-drag-handle {
  left: 12px;
  touch-action: none;
  cursor: grab;
}

.media-drag-handle:active {
  cursor: grabbing;
}

.media-drag-handle svg {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: var(--ibk-blue);
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.media-drag-handle circle {
  fill: var(--ibk-blue);
  stroke: none;
}

.media-delete-button {
  right: 12px;
  color: #b4232f;
  cursor: pointer;
}

.media-delete-button:hover {
  border-color: #b4232f;
  background: #fff5f5;
}

.media-delete-button svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.media-reordering {
  user-select: none;
}

.media-card img,
.media-card video {
  width: 100%;
  aspect-ratio: 4 / 3;
  display: block;
  object-fit: cover;
  border-radius: 2px;
  background: var(--sky);
}

.media-card img,
.media-card video {
  cursor: zoom-in;
}

.media-grid.is-editing .media-card img,
.media-grid.is-editing .media-card video {
  cursor: default;
}

.media-lightbox {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: grid;
  place-items: center;
  padding: clamp(16px, 4vw, 42px);
  background: rgba(10, 18, 30, 0.84);
  backdrop-filter: blur(5px);
}

.media-lightbox[hidden] {
  display: none;
}

.media-lightbox-content {
  position: relative;
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr) 52px;
  gap: clamp(8px, 2vw, 22px);
  place-items: center;
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
}

.media-lightbox-stage {
  display: grid;
  place-items: center;
  min-width: 0;
  width: 100%;
  height: 100%;
}

.media-lightbox-stage img,
.media-lightbox-stage video {
  display: block;
  max-width: min(82vw, 1500px);
  max-height: 88vh;
  border: 5px solid #fff;
  border-radius: 4px;
  object-fit: contain;
  background: #000;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.38);
}

.media-lightbox-stage img {
  background: #fff;
}

.media-lightbox-stage [hidden] {
  display: none;
}

.media-lightbox-close {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(255, 255, 255, 0.55);
  border-radius: 50%;
  padding: 0;
  color: #fff;
  background: rgba(22, 32, 51, 0.86);
  cursor: pointer;
}

.media-lightbox-arrow {
  display: grid;
  place-items: center;
  width: 48px;
  height: 72px;
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 8px;
  padding: 0;
  color: rgba(255, 255, 255, 0.9);
  background: rgba(255, 255, 255, 0.1);
  font: inherit;
  font-size: 30px;
  cursor: pointer;
}

.media-lightbox-arrow:hover:not(:disabled) {
  color: #fff;
  background: rgba(255, 255, 255, 0.2);
}

.media-lightbox-arrow:disabled {
  opacity: 0.2;
  cursor: default;
}

.media-lightbox-close svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
}

.media-section-highlight {
  background: var(--ibk-blue);
  color: #fff;
}

.media-section-highlight .section-kicker {
  color: rgba(255, 255, 255, 0.76);
}

.media-section-highlight h2 {
  color: #fff;
}

.media-section-highlight .section-subtitle {
  color: #a7afb9;
}

.media-section-highlight .button.ghost,
.media-section-highlight .button.primary {
  border-color: rgba(255, 255, 255, 0.72);
  color: var(--ibk-blue);
  background: #fff;
}

.media-section-highlight .button.ghost:hover,
.media-section-highlight .button.primary:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.14);
}

.media-section-highlight .carousel-button {
  border-color: rgba(255, 255, 255, 0.58);
  color: #fff;
  background: rgba(255, 255, 255, 0.12);
}

.media-section-highlight .carousel-button:hover:not(:disabled) {
  border-color: #fff;
  background: rgba(255, 255, 255, 0.2);
}

.media-section-highlight .media-card {
  background: #fff;
  box-shadow: 0 18px 40px rgba(0, 33, 75, 0.22);
}

.media-section-highlight .empty {
  border-color: rgba(255, 255, 255, 0.56);
  color: rgba(255, 255, 255, 0.86);
  background: rgba(255, 255, 255, 0.12);
}

.voice-letter-section {
  overflow: hidden;
  background: #f7f9fc;
}

.voice-letter-heading {
  text-align: center;
}

.voice-letter-heading h2 {
  margin-top: 8px;
  font-size: clamp(32px, 4vw, 54px);
}

.voice-letter-experience {
  display: grid;
  justify-items: center;
  margin-top: 12px;
}

.voice-letter-stage {
  position: relative;
  width: min(860px, 100%);
  height: clamp(470px, 50vw, 560px);
  perspective: 1500px;
}

.voice-letter-envelope {
  position: absolute;
  left: 50%;
  top: clamp(58px, 7vw, 86px);
  z-index: 3;
  display: block;
  width: min(620px, 86vw);
  aspect-ratio: 1.68 / 1;
  border: 0;
  padding: 0;
  color: inherit;
  background: transparent;
  filter: drop-shadow(0 24px 22px rgba(30, 59, 99, 0.22));
  transform: translateX(-50%);
  transform-style: preserve-3d;
  cursor: pointer;
}

.voice-letter-envelope::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 6;
  border-radius: 6px;
  background:
    repeating-linear-gradient(135deg, #b92336 0 13px, #fff 13px 22px, #2c5d9a 22px 35px, #fff 35px 44px) top / 100% 10px no-repeat,
    repeating-linear-gradient(135deg, #b92336 0 13px, #fff 13px 22px, #2c5d9a 22px 35px, #fff 35px 44px) bottom / 100% 10px no-repeat,
    repeating-linear-gradient(45deg, #b92336 0 13px, #fff 13px 22px, #2c5d9a 22px 35px, #fff 35px 44px) left / 10px 100% no-repeat,
    repeating-linear-gradient(45deg, #b92336 0 13px, #fff 13px 22px, #2c5d9a 22px 35px, #fff 35px 44px) right / 10px 100% no-repeat;
  pointer-events: none;
}

.envelope-back,
.envelope-front,
.envelope-flap,
.letter-paper,
.envelope-seal {
  position: absolute;
  display: block;
}

.envelope-back {
  inset: 0;
  border: 1px solid #d8cdbb;
  border-radius: 6px;
  background: linear-gradient(#fffaf0, #eee4d2);
}

.letter-paper {
  left: 8%;
  right: 8%;
  top: 9%;
  height: 76%;
  z-index: 1;
  border: 1px solid #d9d5cb;
  border-radius: 4px;
  padding: 12% 11%;
  text-align: left;
  opacity: 0;
  background: #fffdf8;
  box-shadow: 0 4px 16px rgba(39, 52, 70, 0.13);
  transform: translateY(38%);
  transition: transform 750ms cubic-bezier(0.22, 0.75, 0.2, 1), opacity 160ms ease;
}

.letter-paper-title {
  color: var(--ibk-blue);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(18px, 3vw, 30px);
  font-weight: 700;
}

.letter-paper-line {
  width: 76%;
  height: 1px;
  margin-top: 26px;
  background: #d9dee7;
}

.letter-paper-line.short {
  width: 54%;
  margin-top: 14px;
}

.envelope-front {
  inset: 0;
  z-index: 2;
  border-radius: 6px;
  background:
    linear-gradient(135deg, transparent 49.6%, rgba(151, 126, 91, 0.22) 50%, transparent 50.4%) left top / 50% 100% no-repeat,
    linear-gradient(225deg, transparent 49.6%, rgba(151, 126, 91, 0.22) 50%, transparent 50.4%) right top / 50% 100% no-repeat,
    linear-gradient(180deg, #fbf4e5, #f0e4d0);
  clip-path: polygon(0 0, 50% 43%, 100% 0, 100% 100%, 0 100%);
  filter: drop-shadow(0 -2px 1px rgba(128, 102, 69, 0.16));
}

.envelope-flap {
  left: 0;
  right: 0;
  top: 0;
  z-index: 4;
  height: 66%;
  background: linear-gradient(180deg, #fff9ed, #eadfca);
  clip-path: polygon(0 0, 100% 0, 50% 100%);
  filter: drop-shadow(0 2px 1px rgba(128, 102, 69, 0.2));
  transform-origin: top;
  transform-style: preserve-3d;
  backface-visibility: visible;
  transition: transform 650ms cubic-bezier(0.35, 0, 0.2, 1), z-index 100ms 320ms;
}

.envelope-seal {
  left: 50%;
  top: 54%;
  z-index: 5;
  display: grid;
  place-items: center;
  width: 66px;
  height: 62px;
  border: 0;
  border-radius: 47% 53% 44% 56% / 52% 45% 55% 48%;
  background:
    radial-gradient(circle at 31% 24%, rgba(255, 174, 137, 0.68), transparent 19%),
    radial-gradient(circle at 68% 72%, rgba(86, 5, 12, 0.42), transparent 34%),
    radial-gradient(ellipse at 50% 48%, #bc2b31 0 48%, #8e1820 72%, #661018 100%);
  box-shadow:
    inset 3px 4px 5px rgba(255, 190, 158, 0.34),
    inset -4px -5px 8px rgba(74, 2, 10, 0.46),
    2px 7px 11px rgba(87, 12, 18, 0.34),
    -3px 2px 0 -1px #9e2028,
    4px -2px 0 -2px #7d151c;
  transform: translate(-50%, -50%) rotate(-4deg);
  transition: opacity 180ms ease;
}

.envelope-seal::before,
.envelope-seal::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
}

.envelope-seal::before {
  width: 42px;
  height: 42px;
  border: 2px solid rgba(255, 196, 166, 0.4);
  border-radius: 50%;
  box-shadow:
    inset 0 0 0 3px rgba(91, 4, 13, 0.26),
    0 1px 1px rgba(255, 180, 149, 0.24);
}

.envelope-seal::after {
  content: "⚜";
  width: auto;
  height: auto;
  color: rgba(255, 196, 166, 0.58);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 27px;
  line-height: 1;
  text-shadow:
    1px 2px 1px rgba(79, 3, 10, 0.52),
    -1px -1px 0 rgba(255, 180, 145, 0.18);
  transform: translate(-50%, -52%) rotate(4deg);
}

.voice-letter-video {
  position: absolute;
  left: 50%;
  top: clamp(32px, 4vw, 52px);
  z-index: 2;
  width: min(620px, 86vw);
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border: 10px solid #fff;
  border-radius: 6px;
  opacity: 0;
  background: #101722;
  box-shadow: 0 24px 46px rgba(26, 55, 94, 0.26);
  transform: translate(-50%, 110px) scale(0.78);
  transition: transform 850ms cubic-bezier(0.22, 0.78, 0.2, 1), opacity 260ms ease;
}

.voice-letter-video video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #101722;
}

.voice-letter-experience.is-open .envelope-flap {
  z-index: 0;
  transform: rotateX(180deg) translateZ(-1px);
}

.voice-letter-experience.is-open .envelope-seal {
  opacity: 0;
}

.voice-letter-experience.is-open .letter-paper {
  opacity: 1;
  transform: translateY(-32%);
}

.voice-letter-experience.is-open .voice-letter-video {
  z-index: 6;
  opacity: 1;
  transform: translate(-50%, -16px) scale(1);
}


.message-list {
  display: grid;
  gap: 8px;
  margin-top: 10px;
}

.letter-list-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.letter-count {
  color: var(--ink);
  font-size: 18px;
  font-weight: 700;
  white-space: nowrap;
}

.letter-count-number {
  margin-left: 3px;
  color: var(--ibk-blue);
}

.message-search {
  width: min(320px, 100%);
  min-width: 0;
}

.message-search input {
  width: 100%;
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 9px 13px;
  color: var(--ink);
  background: #fff;
}

.message-search input:focus {
  border-color: var(--ibk-blue);
  outline: 3px solid rgba(26, 86, 166, 0.12);
}

.message-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-top: 22px;
}

.message-pagination[hidden] {
  display: none;
}

.message-pagination button {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 0;
  padding: 0;
  color: var(--ink);
  font: inherit;
  background: transparent;
  cursor: pointer;
}

.message-pagination button:hover:not(:disabled) {
  color: var(--ibk-blue);
  background: var(--sky);
}

.message-pagination .pagination-page.active {
  color: var(--ibk-blue);
  font-weight: 800;
}

.message-pagination button:disabled {
  color: var(--line);
  cursor: default;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.board-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 0;
}

.tab-button {
  min-height: 38px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 12px;
  color: var(--ibk-blue);
  background: #fff;
  font: inherit;
  font-size: 14px;
  font-weight: 800;
  cursor: pointer;
}

.tab-button:hover {
  border-color: var(--ibk-blue);
  background: var(--sky);
}

.tab-button.active {
  border-color: var(--ibk-blue);
  color: #fff;
  background: var(--ibk-blue);
}

.board-write-row {
  display: flex;
  justify-content: flex-end;
  margin-top: 18px;
}

.media-manage-row {
  gap: 10px;
}

.media-manage-row .button.ghost,
.media-manage-row .button.ghost.active {
  color: var(--ibk-blue);
  background: #fff;
}

.dialog-backdrop {
  position: fixed;
  inset: 0;
  z-index: 30;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(22, 32, 51, 0.46);
}

.dialog-backdrop[hidden] {
  display: none;
}

.message-dialog {
  width: min(620px, 100%);
  max-height: min(720px, calc(100vh - 40px));
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: clamp(20px, 4vw, 28px);
  background: #fff;
  box-shadow: 0 24px 60px rgba(22, 32, 51, 0.22);
}

.dialog-head {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 22px;
}

.dialog-head h2 {
  font-size: clamp(24px, 3vw, 34px);
}

.message-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  min-height: 54px;
  padding: 9px 14px;
}

.message-main {
  display: grid;
  grid-template-columns: max-content max-content minmax(0, 1fr) max-content;
  column-gap: 8px;
  align-items: center;
  min-width: 0;
}

.message-main strong {
  color: var(--ibk-blue);
  font-size: 15px;
  white-space: nowrap;
}

.message-department,
.message-main time {
  color: var(--muted);
  font-size: 13px;
  white-space: nowrap;
}

.message-main p {
  margin: 0 0 0 14px;
  color: var(--ink);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.message-actions {
  display: flex;
  gap: 6px;
}

.icon-button {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ibk-blue);
  background: #fff;
  cursor: pointer;
}

.icon-button:hover {
  border-color: var(--ibk-blue);
  background: var(--sky);
}

.icon-button svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.empty {
  border: 1px dashed var(--line);
  border-radius: 8px;
  padding: 28px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.72);
}

.footer {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 28px clamp(20px, 6vw, 88px);
  color: var(--muted);
  border-top: 1px solid var(--line);
}

@media (max-width: 860px) {
  .footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .site-header {
    align-items: center;
    flex-direction: row;
    flex-wrap: nowrap;
    gap: clamp(6px, 1.8vw, 10px);
    padding: 10px clamp(10px, 3vw, 18px);
  }

  .menu-toggle,
  .music-toggle {
    width: clamp(38px, 10vw, 44px);
    height: clamp(38px, 10vw, 44px);
  }

  .brand {
    flex: 1 1 auto;
    min-width: 0;
    gap: clamp(4px, 1.2vw, 6px);
  }

  .brand-logo {
    width: clamp(130px, 34vw, 190px);
    min-width: 0;
  }

  .brand-divider {
    width: 3px;
    height: clamp(20px, 5vw, 26px);
  }

  .brand-group-name {
    font-size: clamp(17px, 4.2vw, 24px);
  }

  .sub-page .site-header {
    flex-wrap: wrap;
    align-items: center;
  }

  .sub-page .brand {
    flex: 1 1 calc(100% - 56px);
  }

  .sub-page .nav {
    order: 3;
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    width: 100%;
    margin-left: 0;
    gap: 7px;
  }

  .sub-page .nav a {
    justify-content: center;
    min-height: 38px;
    padding: 0 6px;
    font-size: clamp(13px, 3.3vw, 15px);
    white-space: nowrap;
  }

  .hero,
  .two-column,
  .section-head {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
    gap: 38px;
    padding-top: 52px;
    padding-bottom: 46px;
  }

  .portrait-frame {
    grid-template-columns: 1fr;
    gap: 24px;
    min-height: 0;
    padding: 28px 26px 30px;
  }

  .hero-frame-photo {
    min-height: 0;
    aspect-ratio: 4 / 3;
  }

  .portrait-content {
    align-items: center;
    text-align: center;
  }

  .portrait-identity {
    justify-content: center;
  }

  .portrait-frame h1 {
    font-size: clamp(20px, 5.2vw, 34px);
    white-space: normal;
    text-wrap: balance;
    word-break: keep-all;
    overflow-wrap: normal;
  }

  .portrait-frame .hero-message {
    text-align: center;
    font-size: clamp(15px, 3.8vw, 20px);
    white-space: normal;
  }

  .portrait-frame .hero-actions {
    justify-content: center;
  }

  .portrait-frame .hero-actions .button {
    flex: 1 1 118px;
    min-width: min(118px, 100%);
    width: auto;
  }

  .hero-frame-photo img {
    width: 100%;
    height: 100%;
    transform: none;
    object-position: 50% 32%;
  }

  .live-chat-panel {
    width: min(380px, 92vw);
    padding: 18px 14px;
  }

  .hero-portrait {
    width: min(720px, 100%);
  }

  .intro-band {
    grid-template-columns: 1fr;
  }

  .menu-section {
    grid-template-columns: 1fr;
  }

  .timeline li {
    grid-template-columns: 1fr;
  }

  #profile.two-column {
    grid-template-columns: 1fr;
    gap: 30px;
    align-items: start;
  }

  #profile .profile-intro {
    grid-template-rows: auto auto auto;
    gap: 10px;
    width: 100%;
    height: auto;
  }

  #profile .profile-photo {
    width: min(100%, 300px);
    height: auto;
    aspect-ratio: 4 / 5;
  }

  #profile .profile-nameplate {
    width: min(100%, 300px);
  }

  #profile .profile-nameplate strong {
    font-size: 28px;
  }

  #profile .timeline {
    grid-template-rows: none;
    gap: 10px;
    width: 100%;
    height: auto;
    margin: 0;
  }

  #profile .timeline li {
    grid-template-columns: 92px minmax(0, 1fr);
    gap: 12px;
    min-height: 62px;
    padding: 11px 14px;
  }

  #profile .timeline span {
    line-height: 1.55;
  }

  #profile .career-panel {
    width: 100%;
    padding-top: 0;
    justify-content: center;
  }

  #profile .career-timeline {
    gap: 16px;
    padding-left: 30px;
  }

  #profile .career-timeline li {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  #profile .career-timeline time {
    font-size: 16px;
  }

  #profile .career-timeline strong {
    font-size: 20px;
  }

  .career-detail-button {
    align-self: stretch;
  }

  .career-dialog {
    max-height: 84vh;
  }

  .message-row,
  .message-main {
    grid-template-columns: 1fr;
  }

  .message-main {
    gap: 6px;
  }

  .message-main p {
    white-space: normal;
  }

  .message-actions {
    justify-content: flex-end;
  }

  .board-head {
    align-items: stretch;
    flex-direction: column;
  }

  .media-section .board-head {
    position: relative;
    display: block;
    min-height: 0;
    padding-right: 88px;
  }

  .media-section .board-head > .button {
    position: absolute;
    top: 0;
    right: 0;
    width: auto;
    min-height: 38px;
    padding: 0 13px;
    white-space: nowrap;
  }

  .media-section .media-carousel {
    margin-top: 14px;
  }

  .media-carousel {
    grid-template-columns: 38px minmax(0, 1fr) 38px;
  }

  .media-carousel-track {
    grid-template-columns: 1fr;
    min-height: 0;
  }

  .media-page-grid {
    grid-template-columns: 1fr;
  }
}

@media (min-width: 861px) and (max-width: 1180px) {
  .portrait-frame {
    grid-template-columns: minmax(220px, 0.82fr) minmax(0, 1.18fr);
    gap: 26px;
    padding-left: 34px;
    padding-right: 34px;
  }

  .portrait-frame h1 {
    font-size: clamp(27px, 2.6vw, 35px);
  }

  .portrait-identity strong {
    font-size: 28px;
  }

  .portrait-identity .identity-name {
    font-size: 51px;
  }

  .portrait-identity .identity-dash {
    font-size: 33px;
  }

  .portrait-frame .hero-message {
    font-size: clamp(17px, 1.9vw, 22px);
  }

  .portrait-frame .hero-actions .button {
    width: 112px;
    max-width: 112px;
    font-size: clamp(12px, 1.12vw, 15px);
  }

  .menu-section {
    gap: 10px;
    padding-left: clamp(16px, 3vw, 36px);
    padding-right: clamp(16px, 3vw, 36px);
  }

  .menu-card {
    min-height: 142px;
    padding: 14px;
  }

  .menu-card strong {
    font-size: 22px;
  }

  .menu-card p {
    font-size: 13px;
  }
}

@media (max-width: 1180px) {
  body.chat-open .site-header,
  body.chat-open main,
  body.chat-open .footer {
    width: 100%;
  }
}

@media (max-width: 1100px) {
  .hero-menu-shell.is-scrollable {
    grid-template-columns: 34px minmax(0, 1fr) 34px;
    gap: 7px;
  }

  .hero-menu-shell.is-scrollable .hero-menu-scroll {
    display: grid;
  }

  .hero-menu-shell .menu-section {
    grid-template-columns: none;
    grid-auto-flow: column;
    grid-auto-columns: 210px;
    justify-content: start;
    overflow-x: auto;
    overscroll-behavior-inline: contain;
    scroll-snap-type: inline mandatory;
    scrollbar-width: none;
  }

  .hero-menu-shell .menu-section::-webkit-scrollbar {
    display: none;
  }

  .hero-menu-shell .menu-card {
    min-height: 92px;
    scroll-snap-align: start;
  }
}

@media (max-width: 540px) {
  .home-page main > .section {
    padding-top: 24px;
  }

  .media-lightbox {
    padding: 12px;
  }

  .media-lightbox-content {
    grid-template-columns: 1fr;
  }

  .media-lightbox-stage {
    grid-column: 1;
    grid-row: 1;
  }

  .media-lightbox-stage img,
  .media-lightbox-stage video {
    max-width: 94vw;
    max-height: 84vh;
  }

  .media-lightbox-arrow {
    position: fixed;
    top: 50%;
    z-index: 3;
    width: 40px;
    height: 60px;
    transform: translateY(-50%);
  }

  .media-lightbox-prev {
    left: 8px;
  }

  .media-lightbox-next {
    right: 8px;
  }

  .media-lightbox-close {
    top: 12px;
    right: 12px;
  }

  .nav {
    width: 100%;
    justify-content: space-between;
  }

  .hero-actions,
  .button {
    width: 100%;
  }

  .hero {
    gap: 22px;
    padding-top: 44px;
    padding-bottom: 40px;
  }

  .hero-message {
    margin-top: 18px;
    font-size: 17px;
  }

  .hero-actions {
    margin-top: 24px;
  }

  .portrait-frame .hero-actions {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    width: 100%;
    gap: 8px;
  }

  .portrait-frame .hero-actions .button {
    min-width: 0;
    width: 100%;
    min-height: 42px;
    padding-left: 8px;
    padding-right: 8px;
    font-size: clamp(11px, 3vw, 16px);
    white-space: nowrap;
    word-break: keep-all;
    overflow: hidden;
  }

  .hero-portrait {
    width: 100%;
  }

  .portrait-frame {
    min-height: 440px;
    width: 100%;
    padding: 34px 20px 30px;
  }

  .portrait-kicker {
    margin-bottom: 15px;
    font-size: 21px;
  }

  .portrait-identity strong {
    font-size: 24px;
  }

  .portrait-identity {
    gap: 6px;
  }

  .portrait-identity .identity-name {
    font-size: 45px;
  }

  .portrait-identity .identity-dash {
    font-size: 29px;
  }

  .portrait-frame h1 {
    margin-top: 25px;
    font-size: 32px;
    line-height: 1.25;
    white-space: normal;
    text-wrap: balance;
  }

  .hero-menu-shell .menu-section {
    grid-auto-columns: 210px;
    gap: 7px;
    padding-top: 0;
  }

  .hero-menu-shell .menu-card {
    min-height: 88px;
    padding: 9px 10px 7px;
  }

  .hero-menu-shell .menu-card span {
    font-size: 10px;
  }

  .hero-menu-shell .menu-card strong {
    margin-top: 6px;
    font-size: 20px;
  }

  .hero-menu-shell .menu-card p {
    display: block;
    margin-top: 6px;
    font-size: 12px;
  }

  #profile.two-column {
    gap: 24px;
    padding-top: 24px;
    padding-bottom: 36px;
  }

  #profile .profile-intro .section-kicker {
    font-size: 18px;
  }

  #profile .profile-photo {
    width: min(78vw, 270px);
  }

  #profile .profile-nameplate {
    width: min(78vw, 270px);
  }

  #profile .profile-nameplate span {
    font-size: 13px;
  }

  #profile .profile-nameplate strong {
    margin-top: 3px;
    font-size: 24px;
  }

  #profile .timeline {
    gap: 8px;
  }

  #profile .timeline li {
    grid-template-columns: 72px minmax(0, 1fr);
    gap: 9px;
    min-height: 56px;
    padding: 9px 11px;
    font-size: 14px;
  }

  #profile .timeline time {
    font-size: 14px;
  }

  #profile .career-timeline {
    gap: 14px;
    padding-left: 28px;
  }

  #profile .career-timeline time {
    font-size: 14px;
  }

  #profile .career-timeline strong {
    font-size: 17px;
  }

  #profile .career-timeline em {
    font-size: 14px;
  }

  .career-detail-timeline {
    gap: 13px;
    padding-left: 28px;
  }

  .career-detail-timeline li {
    grid-template-columns: 1fr;
    gap: 3px;
    min-height: 44px;
  }

  .career-detail-timeline time {
    font-size: 14px;
  }

  .career-detail-timeline strong {
    font-size: 16px;
  }

  .career-detail-timeline em {
    font-size: 14px;
  }

  .message-row {
    position: relative;
    display: block;
    min-height: 0;
    padding: 8px 10px;
  }

  .message-main {
    display: grid;
    grid-template-columns: max-content minmax(0, 1fr) 64px;
    gap: 4px 7px;
    align-items: center;
  }

  .message-main strong {
    grid-column: 1;
    grid-row: 1;
    font-size: 14px;
  }

  .message-department {
    grid-column: 2;
    grid-row: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    font-size: 12px;
  }

  .message-main p {
    grid-column: 1 / -1;
    grid-row: 2;
    margin: 2px 0 0;
    line-height: 1.45;
  }

  .message-main time {
    grid-column: 1 / -1;
    grid-row: 3;
    margin-top: 1px;
    font-size: 11px;
    line-height: 1.2;
  }

  .message-actions {
    position: absolute;
    top: 7px;
    right: 8px;
    gap: 4px;
  }

  .message-actions .icon-button {
    width: 28px;
    height: 28px;
  }

  .message-actions .icon-button svg {
    width: 15px;
    height: 15px;
  }

  .taste-map-layout {
    grid-template-columns: 1fr;
  }

  .taste-map-canvas {
    min-height: 390px;
  }

  .taste-map-controls {
    padding: 0;
    border-left: 0;
    background: transparent;
  }

  .taste-filter-group {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .taste-filter {
    justify-content: center;
    padding: 0 8px;
  }

  .taste-filter span:last-child {
    margin-left: 2px;
  }

  .taste-map-legend {
    grid-template-columns: repeat(3, 1fr);
    gap: 6px;
  }

  .taste-map-legend p {
    justify-content: center;
    font-size: 11px;
  }

  .restaurant-search-form {
    grid-template-columns: 1fr;
  }

  .restaurant-register-form fieldset {
    flex-wrap: wrap;
  }

  .voice-letter-heading h2 {
    font-size: 30px;
  }

  .voice-letter-stage {
    height: 330px;
  }

  .voice-letter-experience.is-open .voice-letter-video {
    transform: translate(-50%, -12px) scale(1);
  }

  .envelope-seal {
    width: 46px;
    height: 46px;
  }

  .envelope-seal::before {
    width: 31px;
    height: 31px;
  }

  .envelope-seal::after {
    font-size: 20px;
  }
}

@media (min-width: 861px) and (max-width: 960px) {
  .portrait-frame h1 {
    font-size: 29px;
    white-space: normal;
    text-wrap: balance;
    word-break: keep-all;
    overflow-wrap: normal;
  }

  .portrait-frame .hero-message {
    font-size: 19px;
    white-space: normal;
    word-break: keep-all;
    overflow-wrap: normal;
  }
}

@media (max-width: 380px) {
  .portrait-frame h1 {
    font-size: 29px;
  }

  .portrait-identity strong {
    font-size: 22px;
  }

  .portrait-identity .identity-name {
    font-size: 41px;
  }

  .portrait-identity .identity-dash {
    font-size: 27px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .letter-paper,
  .envelope-flap,
  .envelope-seal,
  .voice-letter-video {
    transition-duration: 1ms;
  }
}
