:root {
  color-scheme: dark;
  --bg: #101417;
  --surface: #171c20;
  --surface-soft: #1d2328;
  --text: #f3f5f6;
  --muted: #aab3b9;
  --line: #30383e;
  --accent: #57c8d4;
  --accent-dark: #173e43;
  --warm: #d5e46c;
  --max-width: 1240px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 88px;
}

body {
  margin: 0;
  min-width: 320px;
  overflow-x: hidden;
  background: var(--bg);
  color: var(--text);
  font-family: "Inter", system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  letter-spacing: 0;
}

body,
button,
a {
  -webkit-font-smoothing: antialiased;
}

img {
  display: block;
  max-width: 100%;
}

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

button {
  color: inherit;
  font: inherit;
}

.skip-link {
  position: fixed;
  z-index: 100;
  top: 12px;
  left: 12px;
  padding: 10px 14px;
  background: var(--text);
  color: var(--bg);
  transform: translateY(-180%);
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  position: fixed;
  z-index: 30;
  inset: 0 0 auto;
  border-bottom: 1px solid rgba(255, 255, 255, 0.11);
  background: #101417;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(calc(100% - 40px), var(--max-width));
  min-height: 72px;
  margin: 0 auto;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  font-family: "Manrope", sans-serif;
  font-size: 1.05rem;
  font-weight: 800;
}

.brand img {
  border: 1px solid #394249;
  border-radius: 6px;
  background: #0d1114;
  object-fit: contain;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 28px;
}

.main-nav a {
  color: #c5ccd1;
  font-size: 0.88rem;
  font-weight: 600;
  transition: color 160ms ease;
}

.main-nav a:hover,
.main-nav a:focus-visible {
  color: #fff;
}

.main-nav .calendar-nav-link {
  min-height: 38px;
  padding: 0 15px;
  border: 1px solid rgba(87, 220, 244, 0.68);
  border-radius: 999px;
  background: rgba(35, 167, 207, 0.12);
  color: #e7fbff;
  box-shadow: 0 0 18px rgba(54, 205, 234, 0.12), inset 0 0 14px rgba(54, 205, 234, 0.06);
}

.main-nav .calendar-nav-link:hover,
.main-nav .calendar-nav-link:focus-visible {
  border-color: #7eeeff;
  background: rgba(35, 180, 220, 0.2);
}

.main-nav .profile-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  padding: 0 14px;
  border: 1px solid #465057;
  border-radius: 6px;
}

.main-nav svg,
.button svg,
.text-link svg,
.resource-links svg,
.service-list svg {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
  stroke-width: 1.8;
}

.nav-toggle {
  display: none;
  place-items: center;
  width: 42px;
  height: 42px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--surface);
  cursor: pointer;
}

.nav-toggle svg {
  width: 21px;
  height: 21px;
}

.hero {
  position: relative;
  display: grid;
  min-height: min(780px, 82svh);
  padding-top: 72px;
  overflow: hidden;
  isolation: isolate;
}

.hero-image,
.hero-overlay {
  position: absolute;
  z-index: -2;
  inset: 0;
}

.hero-image {
  background: url("assets/builds/ign/img1.png") center 44% / cover no-repeat;
}

.hero-overlay {
  z-index: -1;
  background: rgba(8, 12, 14, 0.72);
}

.hero-content {
  align-self: center;
  width: min(calc(100% - 40px), var(--max-width));
  margin: 0 auto;
  padding: 72px 0 126px;
}

.eyebrow {
  margin: 0 0 16px;
  color: var(--accent);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.hero h1,
.section-heading h2 {
  margin: 0;
  font-family: "Manrope", sans-serif;
  line-height: 1.05;
  letter-spacing: 0;
}

.hero h1 {
  max-width: 850px;
  font-size: 8rem;
  font-weight: 800;
}

.hero-copy {
  max-width: 690px;
  margin: 26px 0 0;
  color: #d9dee1;
  font-size: 1.35rem;
  line-height: 1.55;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 36px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 0 20px;
  border: 1px solid transparent;
  border-radius: 6px;
  font-size: 0.92rem;
  font-weight: 700;
  transition: background-color 160ms ease, border-color 160ms ease, color 160ms ease;
}

.button-primary {
  background: var(--accent);
  color: #071214;
}

.button-primary:hover,
.button-primary:focus-visible {
  background: #86dce4;
}

.button-secondary {
  border-color: rgba(255, 255, 255, 0.42);
  background: rgba(8, 12, 14, 0.46);
}

.button-secondary:hover,
.button-secondary:focus-visible {
  border-color: #fff;
  background: rgba(8, 12, 14, 0.78);
}

.hero-scope {
  position: absolute;
  inset: auto 0 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(12, 16, 18, 0.86);
}

.hero-scope span {
  padding: 19px 24px;
  border-right: 1px solid rgba(255, 255, 255, 0.12);
  color: #c5cdd1;
  font-size: 0.77rem;
  font-weight: 600;
  text-align: center;
  text-transform: uppercase;
}

.hero-scope span:last-child {
  border-right: 0;
}

.section {
  width: min(calc(100% - 40px), var(--max-width));
  margin: 0 auto;
  padding: 112px 0;
}

.section-heading h2 {
  max-width: 760px;
  font-size: 3.8rem;
  font-weight: 700;
}

.intro {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(300px, 0.85fr);
  gap: 48px 90px;
}

.intro-copy {
  align-self: end;
}

.intro-copy > p {
  margin: 0;
  color: var(--muted);
  font-size: 1.08rem;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-top: 22px;
  color: var(--text);
  font-weight: 700;
}

.text-link:hover,
.text-link:focus-visible {
  color: var(--accent);
}

.service-list {
  grid-column: 1 / -1;
  margin-top: 26px;
  border-top: 1px solid var(--line);
}

.service-list article {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr) auto;
  align-items: center;
  gap: 24px;
  min-height: 130px;
  border-bottom: 1px solid var(--line);
}

.service-list article > span {
  color: #747f86;
  font-size: 0.78rem;
  font-weight: 700;
}

.service-list h3 {
  margin: 0 0 7px;
  font-family: "Manrope", sans-serif;
  font-size: 1.35rem;
}

.service-list p {
  margin: 0;
  color: var(--muted);
}

.service-list article > svg {
  width: 28px;
  height: 28px;
  color: var(--accent);
}

.events-showcase {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: 112px max(20px, calc((100% - var(--max-width)) / 2));
  border-top: 1px solid rgba(87, 200, 212, 0.22);
  border-bottom: 1px solid rgba(87, 200, 212, 0.22);
  background:
    radial-gradient(circle at 76% 10%, rgba(31, 153, 220, 0.18), transparent 34%),
    radial-gradient(circle at 8% 76%, rgba(87, 200, 212, 0.12), transparent 28%),
    linear-gradient(145deg, #061019 0%, #071823 52%, #07121b 100%);
}

.events-showcase::before {
  position: absolute;
  z-index: -2;
  inset: 0;
  background-image:
    linear-gradient(rgba(87, 200, 212, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(87, 200, 212, 0.035) 1px, transparent 1px);
  background-size: 52px 52px;
  content: "";
  mask-image: linear-gradient(to bottom, transparent, #000 18%, #000 82%, transparent);
}

.events-inner {
  position: relative;
  z-index: 2;
  width: min(100%, var(--max-width));
  margin: 0 auto;
}

.events-heading {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 48px;
}

.events-heading h1,
.events-heading h2 {
  max-width: 820px;
  margin: 0;
  font-family: "Manrope", sans-serif;
  font-size: clamp(3rem, 5.2vw, 5.25rem);
  font-weight: 700;
  line-height: 0.98;
  letter-spacing: -0.04em;
}

.events-heading > div:first-child > p:last-child {
  max-width: 700px;
  margin: 24px 0 0;
  color: #9fb5c3;
  font-size: 1.04rem;
}

.events-mark {
  display: flex;
  align-items: center;
  gap: 15px;
  min-width: 300px;
  padding: 15px 18px;
  border: 1px solid rgba(79, 210, 236, 0.34);
  border-radius: 14px;
  background: rgba(5, 21, 32, 0.68);
  box-shadow: inset 0 0 26px rgba(45, 189, 232, 0.06);
}

.events-mark img {
  width: 62px;
  height: 62px;
  border: 1px solid rgba(95, 224, 245, 0.5);
  border-radius: 50%;
  background: #08131b;
  object-fit: contain;
  box-shadow: 0 0 28px rgba(57, 210, 242, 0.22);
}

.events-mark span {
  display: grid;
}

.events-mark strong {
  font-family: "Manrope", sans-serif;
  font-size: 1.2rem;
}

.events-mark small {
  color: #83a8b9;
  font-size: 0.76rem;
}

.events-orb {
  position: absolute;
  z-index: -1;
  width: 210px;
  aspect-ratio: 1;
  border: 1px solid rgba(107, 226, 248, 0.36);
  border-radius: 50%;
  background:
    radial-gradient(circle at 34% 28%, rgba(255, 255, 255, 0.26), transparent 8%),
    radial-gradient(circle at 60% 65%, rgba(27, 145, 210, 0.24), transparent 54%),
    rgba(21, 95, 130, 0.05);
  box-shadow:
    inset -24px -24px 50px rgba(4, 12, 24, 0.65),
    inset 16px 16px 34px rgba(85, 224, 249, 0.12),
    0 0 54px rgba(31, 159, 211, 0.13);
  opacity: 0.58;
  pointer-events: none;
}

.events-orb::after {
  position: absolute;
  inset: 11%;
  border-top: 1px solid rgba(255, 255, 255, 0.38);
  border-radius: 50%;
  content: "";
  transform: rotate(-34deg);
}

.events-orb-one {
  top: 58px;
  right: -92px;
}

.events-orb-two {
  bottom: 32px;
  left: -122px;
  width: 290px;
}

.events-orb-three {
  top: 43%;
  right: 3%;
  width: 74px;
  opacity: 0.38;
}

.event-filters {
  display: flex;
  gap: 9px;
  margin: 44px 0 18px;
  padding: 9px;
  overflow-x: auto;
  border: 1px solid rgba(111, 177, 205, 0.28);
  border-radius: 14px;
  background: rgba(6, 24, 36, 0.72);
  scrollbar-width: thin;
}

.event-filters button {
  flex: 0 0 auto;
  min-height: 40px;
  padding: 0 20px;
  border: 1px solid rgba(116, 171, 195, 0.3);
  border-radius: 999px;
  background: rgba(11, 35, 50, 0.8);
  color: #b8cbd5;
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
  transition: border-color 160ms ease, background-color 160ms ease, color 160ms ease, box-shadow 160ms ease;
}

.calendar-categories button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-width: 132px;
}

.calendar-categories button svg {
  width: 16px;
  height: 16px;
}

.event-filters button:hover,
.event-filters button:focus-visible,
.event-filters button.is-active {
  border-color: #5ee8ff;
  background: rgba(31, 181, 222, 0.16);
  color: #fff;
  box-shadow: 0 0 20px rgba(62, 219, 246, 0.22), inset 0 0 12px rgba(62, 219, 246, 0.08);
}

.events-list {
  display: grid;
  gap: 11px;
}

.event-entry {
  overflow: hidden;
  border: 1px solid rgba(91, 171, 205, 0.44);
  border-radius: 14px;
  background: linear-gradient(110deg, rgba(10, 36, 51, 0.92), rgba(5, 21, 32, 0.88));
  box-shadow: 0 14px 38px rgba(0, 0, 0, 0.18);
  transition: border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.event-entry:hover {
  border-color: rgba(96, 224, 249, 0.7);
  transform: translateY(-1px);
}

.event-entry.is-open {
  border-color: #59dff7;
  box-shadow: 0 0 0 1px rgba(89, 223, 247, 0.34), 0 0 34px rgba(36, 186, 224, 0.16);
}

.event-entry[hidden],
.event-entry-detail[hidden] {
  display: none;
}

.event-entry-summary {
  display: grid;
  grid-template-columns: 110px minmax(240px, 1fr) minmax(150px, 0.45fr) minmax(175px, 0.55fr) 42px;
  align-items: center;
  gap: 18px;
  width: 100%;
  min-height: 82px;
  padding: 9px 14px 9px 9px;
  border: 0;
  background: transparent;
  text-align: left;
  cursor: pointer;
}

.event-thumb {
  display: grid;
  width: 110px;
  height: 64px;
  place-items: center;
  overflow: hidden;
  border: 1px solid rgba(92, 225, 249, 0.34);
  border-radius: 10px;
  background:
    radial-gradient(circle at 50% 40%, rgba(54, 216, 243, 0.22), transparent 48%),
    linear-gradient(135deg, #103b52, #071823);
}

.event-thumb img {
  width: calc(100% - 14px);
  max-width: 92px;
  height: 52px;
  object-fit: contain;
  filter: drop-shadow(0 0 12px rgba(87, 220, 245, 0.3));
}

.event-entry-title {
  display: grid;
  min-width: 0;
}

.event-entry-title strong {
  overflow: hidden;
  font-family: "Manrope", sans-serif;
  font-size: 1.08rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.event-entry-title small {
  overflow: hidden;
  color: #9eb4c0;
  font-size: 0.79rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.event-entry-fact {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #c5d5dc;
  font-size: 0.75rem;
  font-weight: 600;
}

.event-entry-fact svg {
  width: 18px;
  height: 18px;
  color: #46d9fb;
}

.event-entry-chevron {
  width: 38px;
  height: 38px;
  padding: 9px;
  border: 1px solid rgba(79, 210, 236, 0.46);
  border-radius: 50%;
  color: #77eaff;
  background: rgba(32, 160, 195, 0.1);
  transition: transform 180ms ease;
}

.event-entry.is-open .event-entry-chevron {
  transform: rotate(180deg);
}

.event-entry-detail {
  display: grid;
  grid-template-columns: minmax(240px, 0.74fr) minmax(0, 1.26fr);
  gap: 30px;
  margin: 0 14px 14px;
  padding: 18px;
  border-top: 1px solid rgba(85, 210, 236, 0.2);
  border-radius: 12px;
  background: rgba(3, 15, 24, 0.54);
}

.event-detail-art {
  position: relative;
  display: grid;
  min-height: 240px;
  place-items: center;
  overflow: hidden;
  border: 1px solid rgba(94, 217, 242, 0.32);
  border-radius: 12px;
  background:
    radial-gradient(circle at 50% 42%, rgba(67, 222, 244, 0.24), transparent 30%),
    linear-gradient(145deg, #0a3145, #07151f 66%);
}

.event-detail-art::before,
.event-detail-art::after {
  position: absolute;
  width: 210px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(89, 225, 250, 0.7), transparent);
  content: "";
  transform: rotate(32deg);
}

.event-detail-art::after {
  transform: rotate(-32deg);
}

.event-detail-art-featured {
  background:
    radial-gradient(circle at 50% 42%, rgba(115, 236, 255, 0.32), transparent 32%),
    radial-gradient(circle at 82% 18%, rgba(96, 111, 255, 0.18), transparent 30%),
    linear-gradient(145deg, #0b4058, #07151f 68%);
}

.event-detail-art-addon {
  background:
    radial-gradient(circle at 50% 42%, rgba(210, 228, 108, 0.18), transparent 34%),
    radial-gradient(circle at 76% 20%, rgba(87, 200, 212, 0.18), transparent 30%),
    linear-gradient(145deg, #29381e, #07151f 70%);
}

.event-detail-art img {
  position: relative;
  z-index: 1;
  width: min(82%, 260px);
  height: 160px;
  object-fit: contain;
  filter: drop-shadow(0 0 28px rgba(88, 224, 248, 0.35));
}

.event-detail-art > span {
  position: absolute;
  z-index: 1;
  right: 14px;
  bottom: 12px;
  padding: 4px 9px;
  border: 1px solid rgba(108, 223, 243, 0.25);
  border-radius: 999px;
  color: #7fb3c4;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.event-detail-copy {
  display: flex;
  align-items: flex-start;
  flex-direction: column;
  justify-content: center;
}

.event-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 5px 10px;
  border: 1px solid rgba(82, 222, 247, 0.46);
  border-radius: 999px;
  color: #77eaff;
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
}

.event-badge svg,
.event-detail-meta svg,
.event-coming-soon svg {
  width: 15px;
  height: 15px;
}

.event-detail-copy h2,
.event-detail-copy h3 {
  margin: 17px 0 8px;
  font-family: "Manrope", sans-serif;
  font-size: clamp(1.8rem, 3.1vw, 2.8rem);
  line-height: 1.05;
}

.calendar-page .calendar-showcase {
  min-height: 100svh;
  padding-top: 152px;
}

.calendar-background {
  position: absolute;
  z-index: -3;
  inset: 0;
  background-position: center;
  background-size: cover;
  opacity: 0;
  transform: scale(1.035);
  transition: opacity 320ms ease, transform 700ms ease;
}

.calendar-background.is-visible {
  opacity: 0.64;
  transform: scale(1);
}

.calendar-effects {
  position: absolute;
  z-index: 0;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.calendar-effects > span,
.calendar-effects::before,
.calendar-effects::after {
  position: absolute;
  display: block;
  content: "";
  pointer-events: none;
}

/* NPC or Die: cold, irregular camera flashes. */
.effect-flashes {
  mix-blend-mode: screen;
}

.effect-flashes::before {
  inset: 0;
  background: rgba(197, 239, 255, 0.34);
  opacity: 0;
  animation: npc-screen-flash 6.2s steps(1, end) infinite;
}

.fx-flash {
  top: -12%;
  left: var(--x);
  width: clamp(2px, 0.22vw, 5px);
  height: 78%;
  background: linear-gradient(180deg, transparent, #dff8ff 16%, #7edfff 62%, transparent);
  filter: blur(1px) drop-shadow(0 0 14px #7be4ff);
  opacity: 0;
  transform: rotate(var(--tilt)) scaleY(0.15);
  transform-origin: top;
  animation: npc-lightning var(--duration) var(--delay) infinite ease-out;
}

@keyframes npc-screen-flash {
  0%, 69%, 72%, 100% { opacity: 0; }
  70% { opacity: 0.32; }
  71% { opacity: 0.05; }
  71.5% { opacity: 0.2; }
}

@keyframes npc-lightning {
  0%, 76%, 81%, 100% { opacity: 0; transform: rotate(var(--tilt)) scaleY(0.15); }
  77% { opacity: 0.95; transform: rotate(var(--tilt)) scaleY(1); }
  78% { opacity: 0.14; }
  79% { opacity: 0.72; transform: rotate(var(--tilt)) scaleY(0.92); }
}

/* El Hoyo: heavy layers of smoke drifting through the page. */
.effect-fog {
  filter: saturate(0.6);
}

.effect-fog::after {
  inset: 0;
  background: linear-gradient(180deg, transparent 30%, rgba(187, 196, 196, 0.12), rgba(84, 91, 91, 0.2));
}

.fx-fog {
  top: var(--y);
  left: -70vw;
  width: 72vw;
  height: clamp(100px, 17vw, 240px);
  border-radius: 50%;
  background:
    radial-gradient(ellipse at 25% 50%, rgba(226, 231, 229, 0.3), transparent 46%),
    radial-gradient(ellipse at 64% 45%, rgba(159, 171, 170, 0.3), transparent 54%);
  filter: blur(28px);
  opacity: 0;
  animation: hoyo-fog var(--duration) var(--delay) linear infinite;
}

@keyframes hoyo-fog {
  0% { opacity: 0; transform: translate3d(0, 18px, 0) scale(var(--scale)); }
  16%, 76% { opacity: 0.52; }
  100% { opacity: 0; transform: translate3d(235vw, -25px, 0) scale(var(--scale)); }
}

/* Christmas Build Cup: snow with varied depth and speed. */
.effect-snow {
  background: linear-gradient(180deg, rgba(210, 244, 255, 0.04), transparent 56%);
}

.fx-snowflake {
  top: -3%;
  left: var(--x);
  width: var(--size);
  height: var(--size);
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 8px rgba(206, 244, 255, 0.9);
  opacity: 0;
  animation: calendar-snow var(--duration) var(--delay) linear infinite;
}

@keyframes calendar-snow {
  0% { opacity: 0; transform: translate3d(0, -8vh, 0) rotate(0); }
  10%, 82% { opacity: 0.9; }
  100% { opacity: 0; transform: translate3d(var(--drift), 115vh, 0) rotate(320deg); }
}

/* MikuRush: crossing spotlights from a live show. */
.effect-concert {
  mix-blend-mode: screen;
}

.effect-concert::after {
  right: 0;
  bottom: 0;
  left: 0;
  height: 26%;
  background: radial-gradient(ellipse at bottom, rgba(73, 231, 255, 0.2), transparent 67%);
  animation: concert-stage-glow 2.4s ease-in-out infinite alternate;
}

.fx-beam {
  bottom: -22%;
  left: var(--x);
  width: clamp(70px, 10vw, 170px);
  height: 132%;
  background: linear-gradient(to top, var(--beam-color), transparent 78%);
  clip-path: polygon(45% 100%, 55% 100%, 92% 0, 8% 0);
  filter: blur(5px);
  opacity: 0.32;
  transform: rotate(var(--angle));
  transform-origin: 50% 100%;
  animation: concert-beam var(--duration) var(--delay) ease-in-out infinite alternate;
}

@keyframes concert-beam {
  from { opacity: 0.15; transform: rotate(calc(var(--angle) - 14deg)); }
  50% { opacity: 0.48; }
  to { opacity: 0.2; transform: rotate(calc(var(--angle) + 14deg)); }
}

@keyframes concert-stage-glow {
  from { opacity: 0.42; transform: scaleX(0.86); }
  to { opacity: 0.9; transform: scaleX(1.08); }
}

/* Sakura Academy: blossom petals with a gentle lateral drift. */
.effect-petals {
  background: linear-gradient(135deg, rgba(255, 177, 217, 0.08), transparent 38%);
}

.fx-petal {
  top: -4%;
  left: var(--x);
  width: var(--size);
  height: 9px;
  border-radius: 85% 15% 85% 25%;
  background: linear-gradient(135deg, #fff1f8, #ff91c4 72%);
  box-shadow: 0 0 7px rgba(255, 153, 204, 0.48);
  opacity: 0;
  animation: sakura-fall var(--duration) var(--delay) linear infinite;
}

@keyframes sakura-fall {
  0% { opacity: 0; transform: translate3d(0, -8vh, 0) rotate(0); }
  9%, 85% { opacity: 0.88; }
  50% { transform: translate3d(38px, 55vh, 0) rotate(280deg); }
  100% { opacity: 0; transform: translate3d(var(--drift), 116vh, 0) rotate(var(--spin)); }
}

/* Made in Abyss: a pulsing curse closing in from the viewport edges. */
.effect-abyss::before {
  z-index: 1;
  inset: 0;
  border: clamp(16px, 3.5vw, 58px) solid rgba(120, 34, 197, 0.1);
  box-shadow:
    inset 0 0 65px rgba(174, 66, 255, 0.65),
    inset 0 0 145px rgba(61, 0, 116, 0.68),
    0 0 55px rgba(155, 47, 246, 0.34);
  opacity: 0.72;
  animation: abyss-border 4.4s ease-in-out infinite;
}

.effect-abyss::after {
  inset: 0;
  background: radial-gradient(circle at center, transparent 38%, rgba(50, 0, 82, 0.38) 78%, rgba(20, 0, 38, 0.7));
  animation: abyss-vignette 5.6s ease-in-out infinite alternate;
}

.fx-curse {
  top: var(--y);
  left: var(--x);
  width: clamp(70px, 12vw, 180px);
  aspect-ratio: 1;
  border: 2px solid rgba(206, 111, 255, 0.62);
  border-radius: 44% 56% 62% 38%;
  filter: blur(5px) drop-shadow(0 0 18px #9d36ed);
  opacity: 0.42;
  animation: abyss-curse var(--duration) var(--delay) ease-in-out infinite alternate;
}

@keyframes abyss-border {
  0%, 100% { opacity: 0.48; filter: hue-rotate(-8deg); }
  50% { opacity: 0.92; filter: hue-rotate(18deg); }
}

@keyframes abyss-vignette {
  from { opacity: 0.55; transform: scale(1); }
  to { opacity: 0.92; transform: scale(1.04); }
}

@keyframes abyss-curse {
  from { transform: translate3d(-12px, -8px, 0) rotate(0) scale(var(--scale)); }
  to { transform: translate3d(14px, 12px, 0) rotate(110deg) scale(var(--scale)); }
}

/* Who's Dreaming?: bright sun bloom and soft impossible clouds. */
.effect-dream {
  filter: saturate(0.85);
}

.fx-sun {
  top: -8vw;
  right: -4vw;
  width: clamp(250px, 36vw, 570px);
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 253, 211, 0.98) 0 8%, rgba(255, 231, 147, 0.52) 19%, rgba(160, 222, 255, 0.17) 44%, transparent 70%);
  filter: blur(2px);
  mix-blend-mode: screen;
  animation: dream-sun 5.5s ease-in-out infinite alternate;
}

.fx-cloud {
  top: var(--y);
  left: var(--x);
  width: clamp(180px, 28vw, 430px);
  height: clamp(58px, 8vw, 120px);
  border-radius: 999px;
  background: rgba(231, 248, 255, 0.24);
  box-shadow: 0 0 38px rgba(213, 244, 255, 0.2);
  filter: blur(13px);
  opacity: 0;
  animation: dream-cloud var(--duration) var(--delay) linear infinite;
}

.fx-cloud::before,
.fx-cloud::after {
  position: absolute;
  border-radius: 50%;
  background: inherit;
  content: "";
}

.fx-cloud::before {
  top: -45%;
  left: 18%;
  width: 42%;
  aspect-ratio: 1;
}

.fx-cloud::after {
  top: -72%;
  right: 16%;
  width: 50%;
  aspect-ratio: 1;
}

@keyframes dream-sun {
  from { opacity: 0.68; transform: scale(0.94); }
  to { opacity: 1; transform: scale(1.08); }
}

@keyframes dream-cloud {
  0% { opacity: 0; transform: translate3d(-24vw, 0, 0) scale(var(--scale)); }
  14%, 78% { opacity: 0.55; }
  100% { opacity: 0; transform: translate3d(134vw, -22px, 0) scale(var(--scale)); }
}

/* BorderCraft: repeating radial firework bursts over Shibuya. */
.effect-fireworks {
  mix-blend-mode: screen;
}

.fx-firework {
  top: var(--y);
  left: var(--x);
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--firework-color);
  box-shadow:
    0 -72px var(--firework-color),
    51px -51px var(--firework-color),
    72px 0 var(--firework-color),
    51px 51px var(--firework-color),
    0 72px var(--firework-color),
    -51px 51px var(--firework-color),
    -72px 0 var(--firework-color),
    -51px -51px var(--firework-color),
    27px -66px var(--firework-color),
    66px -27px var(--firework-color),
    66px 27px var(--firework-color),
    27px 66px var(--firework-color),
    -27px 66px var(--firework-color),
    -66px 27px var(--firework-color),
    -66px -27px var(--firework-color),
    -27px -66px var(--firework-color);
  filter: drop-shadow(0 0 7px var(--firework-color));
  opacity: 0;
  animation: bordercraft-firework var(--duration) var(--delay) ease-out infinite;
}

.fx-firework::after {
  position: absolute;
  inset: -12px;
  border: 1px solid var(--firework-color);
  border-radius: 50%;
  content: "";
}

@keyframes bordercraft-firework {
  0%, 14% { opacity: 0; transform: scale(0.04); }
  18% { opacity: 1; }
  62% { opacity: 0.72; transform: scale(var(--scale)); }
  82%, 100% { opacity: 0; transform: scale(var(--scale)) translateY(18px); }
}

.calendar-showcase::before {
  z-index: -1;
  opacity: 0.58;
}

.calendar-showcase::after {
  position: absolute;
  z-index: -2;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(3, 12, 18, 0.56), rgba(4, 15, 23, 0.78)),
    linear-gradient(90deg, rgba(3, 13, 20, 0.3), rgba(3, 13, 20, 0.62));
  content: "";
  pointer-events: none;
}

.calendar-heading {
  display: block;
  text-align: center;
}

.calendar-heading h1 {
  max-width: none;
  font-size: clamp(3.6rem, 7vw, 6.6rem);
}

.calendar-categories {
  justify-content: center;
  width: fit-content;
  max-width: 100%;
  margin-right: auto;
  margin-left: auto;
}

.calendar-content-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(340px, 0.75fr);
  align-items: start;
  gap: 22px;
}

.calendar-selector-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.calendar-event-option {
  display: grid;
  grid-template-rows: auto minmax(110px, 1fr);
  gap: 14px;
  min-width: 0;
  min-height: 188px;
  padding: 17px;
  overflow: hidden;
  border: 1px solid rgba(111, 177, 205, 0.34);
  border-radius: 14px;
  background: linear-gradient(145deg, rgba(9, 31, 45, 0.88), rgba(4, 17, 27, 0.86));
  color: #dceaf0;
  cursor: pointer;
  backdrop-filter: blur(14px);
  box-shadow: 0 16px 38px rgba(0, 0, 0, 0.2);
  transition: border-color 180ms ease, background-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.calendar-event-option:hover,
.calendar-event-option:focus-visible {
  border-color: rgba(99, 226, 249, 0.78);
  transform: translateY(-2px);
}

.calendar-event-option.is-selected {
  border-color: #66e5fb;
  background: linear-gradient(145deg, rgba(19, 76, 98, 0.88), rgba(5, 27, 40, 0.9));
  color: #fff;
  box-shadow: 0 0 0 1px rgba(102, 229, 251, 0.28), 0 0 30px rgba(46, 199, 231, 0.2);
}

.calendar-event-option > strong {
  overflow: hidden;
  font-family: "Manrope", sans-serif;
  font-size: 0.98rem;
  line-height: 1.2;
  text-align: center;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.calendar-option-logo {
  display: grid;
  min-width: 0;
  place-items: center;
}

.calendar-option-logo img {
  width: 100%;
  height: 112px;
  object-fit: contain;
  filter: drop-shadow(0 12px 18px rgba(0, 0, 0, 0.34));
}

.calendar-detail {
  position: sticky;
  top: 94px;
  min-height: 420px;
  overflow: hidden;
  border: 1px solid rgba(91, 215, 239, 0.52);
  border-radius: 16px;
  background:
    radial-gradient(circle at 88% 10%, rgba(70, 218, 242, 0.14), transparent 34%),
    rgba(3, 16, 25, 0.88);
  backdrop-filter: blur(18px);
  box-shadow: 0 22px 54px rgba(0, 0, 0, 0.32), inset 0 0 32px rgba(51, 202, 230, 0.05);
}

.calendar-detail-content {
  display: flex;
  min-height: 420px;
  align-items: flex-start;
  flex-direction: column;
  justify-content: center;
  padding: clamp(24px, 3.5vw, 42px);
}

.calendar-detail h2 {
  margin: 18px 0 13px;
  font-family: "Manrope", sans-serif;
  font-size: clamp(2rem, 3.6vw, 3.3rem);
  line-height: 1;
}

.calendar-detail-date {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: #7beaff;
  font-size: 0.88rem;
  font-weight: 800;
}

.calendar-detail-date svg {
  width: 19px;
  height: 19px;
}

.calendar-detail .event-description {
  margin-top: 24px;
}

.calendar-detail .event-description p {
  font-size: 0.94rem;
  line-height: 1.65;
}

@media (max-width: 1080px) {
  .calendar-content-layout {
    grid-template-columns: minmax(0, 1fr) minmax(310px, 0.72fr);
  }

  .calendar-selector-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 820px) {
  .calendar-content-layout {
    grid-template-columns: 1fr;
  }

  .calendar-detail {
    position: static;
    min-height: 0;
  }

  .calendar-detail-content {
    min-height: 360px;
  }
}

@media (max-width: 560px) {
  .calendar-page .calendar-showcase {
    padding-top: 122px;
  }

  .calendar-selector-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 9px;
  }

  .calendar-event-option {
    grid-template-rows: auto minmax(82px, 1fr);
    min-height: 148px;
    padding: 12px 9px;
  }

  .calendar-event-option > strong {
    font-size: 0.78rem;
  }

  .calendar-option-logo img {
    height: 86px;
  }

  .calendar-detail-content {
    min-height: 330px;
    padding: 22px;
  }
}

.event-detail-copy > p,
.event-description p {
  max-width: 650px;
  margin: 0;
  color: #a9bdc7;
  font-size: 0.9rem;
}

.event-description p + p {
  margin-top: 10px;
}

.event-description strong {
  color: #eefcff;
}

.event-detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 11px 24px;
  margin-top: 20px;
}

.event-detail-meta span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #ccdae0;
  font-size: 0.78rem;
  font-weight: 600;
}

.event-detail-meta svg {
  color: #51ddf9;
}

.event-coming-soon {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-height: 42px;
  margin-top: 24px;
  padding: 0 17px;
  border: 1px solid #50daf5;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(35, 167, 207, 0.32), rgba(61, 224, 243, 0.16));
  color: #eafcff;
  font-size: 0.78rem;
  font-weight: 800;
  box-shadow: 0 0 22px rgba(61, 220, 244, 0.15);
}

.work {
  width: 100%;
  padding-right: max(20px, calc((100% - var(--max-width)) / 2));
  padding-left: max(20px, calc((100% - var(--max-width)) / 2));
  border-top: 1px solid #232a2f;
  border-bottom: 1px solid #232a2f;
  background: #0c1012;
}

.work-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 42px;
  margin-bottom: 42px;
}

.work-heading > p {
  max-width: 410px;
  margin: 0 0 5px;
  color: var(--muted);
}

.project-grid {
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  gap: 16px;
}

.project {
  position: relative;
  min-height: 300px;
  overflow: hidden;
  border: 1px solid #333b40;
  border-radius: 6px;
  background: #171c20;
}

.project-featured {
  grid-row: span 2;
  min-height: 616px;
}

.project img,
.project-shade {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.project img {
  object-fit: cover;
  transition: transform 420ms ease;
}

.project-shade {
  background: rgba(4, 7, 8, 0.57);
  transition: background-color 200ms ease;
}

.project-content {
  position: absolute;
  inset: auto 0 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 28px;
}

.project-content small {
  margin-bottom: 6px;
  color: var(--warm);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
}

.project-content strong {
  font-family: "Manrope", sans-serif;
  font-size: 2.4rem;
  line-height: 1.15;
}

.project-content > span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 16px;
  color: #d2d8dc;
  font-size: 0.86rem;
  font-weight: 600;
}

.project:hover img,
.project:focus-visible img {
  transform: scale(1.025);
}

.project:hover .project-shade,
.project:focus-visible .project-shade {
  background: rgba(4, 7, 8, 0.42);
}

.resources {
  display: grid;
  grid-template-columns: 0.75fr 1.25fr;
  gap: 80px;
}

.resource-links {
  border-top: 1px solid var(--line);
}

.resource-links a {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr) auto;
  align-items: center;
  gap: 16px;
  min-height: 98px;
  border-bottom: 1px solid var(--line);
  transition: background-color 160ms ease, padding 160ms ease;
}

.resource-links a:hover,
.resource-links a:focus-visible {
  padding-inline: 14px;
  background: var(--surface);
}

.resource-links > a > svg:first-child {
  width: 24px;
  height: 24px;
  color: var(--accent);
}

.resource-links span {
  display: flex;
  flex-direction: column;
}

.resource-links strong {
  font-family: "Manrope", sans-serif;
  font-size: 1.05rem;
}

.resource-links small {
  color: var(--muted);
}

.site-footer {
  display: grid;
  grid-template-columns: 1fr auto auto;
  align-items: end;
  gap: 42px;
  padding: 46px max(20px, calc((100% - var(--max-width)) / 2));
  border-top: 1px solid var(--line);
  background: #0b0e10;
}

.footer-brand {
  margin-bottom: 12px;
}

.site-footer p,
.site-footer small {
  margin: 0;
  color: #88939a;
  font-size: 0.82rem;
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
}

.site-footer nav a {
  color: #b9c1c6;
  font-size: 0.86rem;
  font-weight: 600;
}

.site-footer nav a:hover,
.site-footer nav a:focus-visible {
  color: var(--accent);
}

/* Home visual language aligned with the Calendar page. */
.home-page {
  --bg: #061019;
  --surface: #0a1b26;
  --surface-soft: #0d2532;
  --text: #f2fbff;
  --muted: #9fb5c3;
  --line: rgba(102, 204, 227, 0.22);
  --accent: #66e5fb;
  --accent-dark: #0d4b5d;
  background:
    linear-gradient(rgba(82, 205, 232, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(82, 205, 232, 0.025) 1px, transparent 1px),
    radial-gradient(circle at 82% 8%, rgba(29, 148, 205, 0.15), transparent 30%),
    #061019;
  background-size: 52px 52px, 52px 52px, auto, auto;
}

.home-page .site-header {
  border-bottom-color: rgba(102, 224, 248, 0.2);
  background: rgba(4, 15, 23, 0.9);
  box-shadow: 0 12px 34px rgba(0, 0, 0, 0.2);
  backdrop-filter: blur(18px);
}

.home-page .brand img {
  border-color: rgba(102, 229, 251, 0.42);
  background: #07141d;
  box-shadow: 0 0 20px rgba(69, 213, 239, 0.14);
}

.home-page .main-nav a:not(.profile-link):not(.calendar-nav-link) {
  color: #a9bec8;
}

.home-page .main-nav .profile-link {
  border-color: rgba(102, 210, 233, 0.34);
  border-radius: 999px;
  background: rgba(11, 39, 54, 0.48);
}

.home-page .hero {
  min-height: min(900px, 92svh);
  border-bottom: 1px solid rgba(87, 214, 240, 0.2);
}

.home-page .hero-image {
  background-position: center 44%;
  filter: saturate(0.82) contrast(1.04);
  transform: scale(1.015);
}

.home-page .hero-overlay {
  background:
    radial-gradient(circle at 72% 32%, rgba(40, 190, 224, 0.2), transparent 32%),
    linear-gradient(90deg, rgba(3, 12, 19, 0.96) 0%, rgba(3, 15, 23, 0.78) 48%, rgba(3, 15, 23, 0.46) 100%),
    linear-gradient(180deg, rgba(4, 13, 20, 0.12), #061019 100%);
}

.home-page .hero-content {
  padding-top: 118px;
}

.home-page .eyebrow {
  color: #73e9ff;
  text-shadow: 0 0 18px rgba(81, 219, 245, 0.24);
}

.home-page .hero h1 {
  font-size: clamp(4.5rem, 11vw, 8.5rem);
  letter-spacing: -0.055em;
  background: linear-gradient(115deg, #ffffff 18%, #b6f4ff 56%, #5ddff7 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  text-shadow: 0 20px 48px rgba(0, 0, 0, 0.24);
}

.home-page .hero-copy {
  color: #c2d5dd;
}

.home-page .button {
  border-radius: 999px;
}

.home-page .button-primary {
  border-color: #73ecff;
  background: linear-gradient(90deg, #4fd8ef, #80efff);
  box-shadow: 0 0 26px rgba(70, 216, 241, 0.22);
}

.home-page .button-secondary {
  border-color: rgba(139, 224, 240, 0.4);
  background: rgba(5, 24, 35, 0.64);
  backdrop-filter: blur(12px);
}

.home-page .hero-scope {
  inset: auto max(20px, calc((100% - var(--max-width)) / 2)) 20px;
  overflow: hidden;
  border: 1px solid rgba(101, 209, 232, 0.3);
  border-radius: 14px;
  background: rgba(4, 21, 31, 0.78);
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.24), inset 0 0 28px rgba(59, 205, 234, 0.04);
  backdrop-filter: blur(18px);
}

.home-page .hero-scope span {
  border-right-color: rgba(101, 209, 232, 0.18);
  color: #b8d0da;
}

.home-page .section {
  padding-top: 122px;
  padding-bottom: 122px;
}

.home-page .section-heading h2 {
  font-size: clamp(2.8rem, 5.4vw, 4.6rem);
  letter-spacing: -0.04em;
}

.home-page .intro-copy > p {
  color: #9fb5c3;
}

.home-page .service-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  border: 0;
}

.home-page .service-list article {
  grid-template-columns: 42px minmax(0, 1fr);
  align-content: start;
  min-height: 210px;
  padding: 24px;
  border: 1px solid rgba(101, 202, 224, 0.24);
  border-radius: 14px;
  background:
    radial-gradient(circle at 92% 8%, rgba(75, 213, 239, 0.1), transparent 36%),
    rgba(7, 28, 40, 0.7);
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.18);
  backdrop-filter: blur(14px);
}

.home-page .service-list article > span {
  color: #64dff7;
}

.home-page .service-list article > svg {
  grid-column: 1;
  width: 24px;
  height: 24px;
}

.home-page .service-list h3 {
  color: #effcff;
}

.home-page .service-list p {
  color: #93acb8;
}

.home-page .work {
  border-color: rgba(88, 203, 228, 0.2);
  background:
    radial-gradient(circle at 8% 18%, rgba(37, 173, 211, 0.12), transparent 30%),
    linear-gradient(145deg, #041019, #071923 58%, #05121a);
}

.home-page .project {
  border-color: rgba(104, 205, 227, 0.3);
  border-radius: 16px;
  background: #081b26;
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.28);
}

.home-page .project-shade {
  background: linear-gradient(180deg, rgba(3, 10, 15, 0.12), rgba(3, 13, 20, 0.88));
}

.home-page .project-content small {
  color: #6fe7fb;
}

.home-page .project:hover,
.home-page .project:focus-visible {
  border-color: rgba(105, 229, 250, 0.72);
  box-shadow: 0 0 34px rgba(53, 205, 234, 0.14), 0 22px 52px rgba(0, 0, 0, 0.3);
}

.home-page .resources {
  align-items: start;
}

.home-page .resource-links {
  display: grid;
  gap: 11px;
  border: 0;
}

.home-page .resource-links a {
  min-height: 104px;
  padding: 0 20px;
  border: 1px solid rgba(100, 201, 224, 0.24);
  border-radius: 13px;
  background: rgba(7, 29, 41, 0.64);
  backdrop-filter: blur(12px);
}

.home-page .resource-links a:hover,
.home-page .resource-links a:focus-visible {
  padding-inline: 25px;
  border-color: rgba(102, 226, 248, 0.62);
  background: rgba(10, 44, 59, 0.78);
  box-shadow: 0 0 28px rgba(52, 204, 232, 0.11);
}

.home-page .site-footer {
  border-top-color: rgba(93, 201, 225, 0.2);
  background: #030c12;
}

@media (max-width: 820px) {
  .home-page .service-list {
    grid-template-columns: 1fr;
  }

  .home-page .service-list article {
    min-height: 150px;
  }
}

@media (max-width: 560px) {
  .home-page .hero-content {
    padding-top: 92px;
  }

  .home-page .hero-scope {
    right: 14px;
    left: 14px;
  }

  .home-page .section {
    padding-top: 90px;
    padding-bottom: 90px;
  }

  .home-page .service-list article {
    min-height: 0;
  }
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

@media (max-width: 1080px) {
  .event-entry-summary {
    grid-template-columns: 90px minmax(0, 1fr) 42px;
    gap: 8px 16px;
  }

  .event-thumb {
    grid-row: 1 / span 3;
    width: 90px;
    height: 76px;
  }

  .event-entry-title {
    grid-column: 2;
  }

  .event-entry-fact {
    grid-column: 2;
  }

  .event-entry-chevron {
    grid-column: 3;
    grid-row: 1;
  }
}

@media (max-width: 820px) {
  .hero h1 {
    font-size: 6rem;
  }

  .section-heading h2 {
    font-size: 3rem;
  }

  .nav-toggle {
    display: grid;
  }

  .main-nav {
    position: absolute;
    top: calc(100% + 1px);
    right: 20px;
    left: 20px;
    display: grid;
    gap: 0;
    padding: 8px;
    border: 1px solid var(--line);
    border-radius: 6px;
    background: #151a1e;
    box-shadow: 0 18px 45px rgba(0, 0, 0, 0.34);
    visibility: hidden;
    opacity: 0;
    transform: translateY(-8px);
    transition: opacity 160ms ease, transform 160ms ease, visibility 160ms ease;
  }

  .main-nav.is-open {
    visibility: visible;
    opacity: 1;
    transform: translateY(0);
  }

  .main-nav a,
  .main-nav .profile-link {
    min-height: 46px;
    padding: 0 12px;
    border: 0;
    border-radius: 4px;
  }

  .main-nav a:hover,
  .main-nav a:focus-visible {
    background: var(--surface-soft);
  }

  .intro,
  .resources {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .events-heading {
    grid-template-columns: 1fr;
    align-items: start;
    gap: 30px;
  }

  .events-mark {
    justify-self: start;
  }

  .event-entry-detail {
    grid-template-columns: minmax(190px, 0.7fr) minmax(0, 1.3fr);
    gap: 22px;
  }

  .work-heading {
    display: block;
  }

  .work-heading > p {
    margin-top: 18px;
  }

  .project-grid {
    grid-template-columns: 1fr;
  }

  .project,
  .project-featured {
    grid-row: auto;
    min-height: 420px;
  }

  .project-content strong {
    font-size: 2rem;
  }

  .site-footer {
    grid-template-columns: 1fr;
    align-items: start;
    gap: 24px;
  }
}

@media (max-width: 680px) {
  .event-entry-detail {
    grid-template-columns: 1fr;
  }

  .event-detail-art {
    min-height: 210px;
  }
}

@media (max-width: 560px) {
  .header-inner,
  .hero-content,
  .section {
    width: min(calc(100% - 28px), var(--max-width));
  }

  .hero {
    min-height: 720px;
  }

  .hero-content {
    padding-top: 76px;
    padding-bottom: 190px;
  }

  .hero h1 {
    font-size: 4rem;
  }

  .hero-copy {
    font-size: 1.08rem;
  }

  .section-heading h2 {
    font-size: 2.35rem;
  }

  .events-showcase {
    padding: 82px 14px;
  }

  .events-heading h1,
  .events-heading h2 {
    font-size: 2.55rem;
  }

  .events-mark {
    width: 100%;
    min-width: 0;
  }

  .event-filters {
    margin-top: 34px;
  }

  .event-entry-summary {
    grid-template-columns: 62px minmax(0, 1fr) 36px;
    gap: 7px 12px;
    padding: 9px;
  }

  .event-thumb {
    width: 62px;
    height: 62px;
  }

  .event-thumb img {
    width: calc(100% - 8px);
    max-width: 54px;
    height: 50px;
  }

  .event-entry-chevron {
    width: 34px;
    height: 34px;
    padding: 8px;
  }

  .event-entry-title strong {
    font-size: 0.98rem;
  }

  .event-entry-title small {
    font-size: 0.72rem;
  }

  .event-entry-fact {
    grid-column: 2 / 4;
    font-size: 0.69rem;
  }

  .event-entry-detail {
    margin: 0 8px 8px;
    padding: 13px;
  }

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

  .hero-scope {
    grid-template-columns: repeat(2, 1fr);
  }

  .hero-scope span:nth-child(2) {
    border-right: 0;
  }

  .hero-scope span:nth-child(-n + 2) {
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  }

  .section {
    padding: 82px 0;
  }

  .service-list article {
    grid-template-columns: 38px minmax(0, 1fr);
    gap: 15px;
    padding: 23px 0;
  }

  .service-list article > svg {
    display: none;
  }

  .service-list h3 {
    font-size: 1.12rem;
  }

  .project,
  .project-featured {
    min-height: 360px;
  }

  .project-content {
    padding: 22px;
  }

  .project-content strong {
    font-size: 1.55rem;
  }

  .resource-links a {
    min-height: 90px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
