@font-face {
  font-family: 'Plus Jakarta Sans';
  font-style: normal;
  font-weight: 600 700;
  font-display: swap;
  src: url('../fonts/plus-jakarta-sans-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: 'Plus Jakarta Sans';
  font-style: normal;
  font-weight: 600 700;
  font-display: swap;
  src: url('../fonts/plus-jakarta-sans-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: 'Caveat';
  font-style: normal;
  font-weight: 400 500;
  font-display: swap;
  src: url('../fonts/caveat-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: 'Caveat';
  font-style: normal;
  font-weight: 400 500;
  font-display: swap;
  src: url('../fonts/caveat-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}


html, body, input, select, textarea, button, a, p, h1, h2, h3, h4, h5, h6, span, li {
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif !important;
  letter-spacing: normal !important;
}

.skip-link {
  position: fixed;
  top: 0.75rem;
  left: 0.75rem;
  z-index: 10001;
  padding: 0.7rem 1rem;
  border-radius: 0.7rem;
  background: #ffffff;
  color: #0f172a;
  transform: translateY(-180%);
}

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

:root {
  --primary-color: #0f172a;
  --secondary-color: #244c7a;
  --accent-color: #5db4ff;
  --accent-soft: #bfe4ff;
  --mint-color: #8fe3c4;
  --light-grey: #eef6ff;
  --mid-grey: #b6c4d6;
  --dark-grey: #5f7188;
  --glass-white: rgba(255, 255, 255, 0.58);
  --glass-stroke: rgba(255, 255, 255, 0.5);
  --glass-shadow: rgba(28, 72, 122, 0.14);
}

body, #page-wrapper {
  background: linear-gradient(
    180deg,
    #c7d8ff 0%,
    #dde0e6 12%,
    #e0d7ff 24%,
    #dde0e6 38%,
    #c7d8ff 54%,
    #b5ffe7 68%,
    #dde0e6 84%,
    #c7d8ff 100%
  ) !important;
}

body {
  position: relative;
  overflow-x: hidden;
  --bg-shift-y: 0px;
  --bg-tilt-x: 0px;
}

body:before {
  content: "";
  position: fixed;
  inset: -12%;
  pointer-events: none;
  z-index: -1;
  background:
    radial-gradient(70% 44% at 18% 8%, rgba(199, 216, 255, 0.72), transparent 48%),
    radial-gradient(56% 42% at 72% 22%, rgba(221, 224, 230, 0.64), transparent 46%),
    radial-gradient(54% 42% at 30% 48%, rgba(224, 215, 255, 0.58), transparent 46%),
    radial-gradient(56% 42% at 68% 62%, rgba(181, 255, 231, 0.54), transparent 46%),
    radial-gradient(64% 46% at 24% 88%, rgba(199, 216, 255, 0.52), transparent 48%);
  transform: translate3d(var(--bg-tilt-x), var(--bg-shift-y), 0) scale(1.04);
  filter: blur(24px);
  transition: transform 0.14s linear;
}

#banner {
  background: transparent !important;
}

#banner:before,
#banner:after {
  background: transparent !important;
}

.button,
.button.primary {
  background: linear-gradient(180deg, rgba(255,255,255,0.58), rgba(229,241,255,0.44)) !important;
  border: 1px solid rgba(255,255,255,0.48) !important;
  border-radius: 18px !important;
  color: var(--primary-color) !important;
  box-shadow:
    0 10px 30px rgba(77, 137, 196, 0.16),
    inset 0 1px 0 rgba(255,255,255,0.95) !important;
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.button.primary:hover,
.button:hover {
  background: linear-gradient(180deg, rgba(255,255,255,0.70), rgba(214,234,255,0.54)) !important;
  transform: translateY(-1px);
}


#banner .button,
#banner .button.primary {
  background: linear-gradient(180deg, rgba(255,255,255,0.36), rgba(229,241,255,0.24)) !important;
  border-color: rgba(255,255,255,0.34) !important;
  box-shadow:
    0 8px 24px rgba(77, 137, 196, 0.10),
    inset 0 1px 0 rgba(255,255,255,0.72) !important;
}

#banner .button.primary:hover,
#banner .button:hover {
  background: linear-gradient(180deg, rgba(255,255,255,0.50), rgba(214,234,255,0.32)) !important;
}


#contact .button,
#contact .button.primary,
#menu ul li a {
  background: linear-gradient(180deg, rgba(255,255,255,0.36), rgba(229,241,255,0.24)) !important;
  border-color: rgba(255,255,255,0.34) !important;
  box-shadow:
    0 8px 24px rgba(77, 137, 196, 0.10),
    inset 0 1px 0 rgba(255,255,255,0.72) !important;
}

#contact .button.primary:hover,
#contact .button:hover,
#menu ul li a:hover {
  background: linear-gradient(180deg, rgba(255,255,255,0.50), rgba(214,234,255,0.32)) !important;
}

.major.style1:before { background-color: var(--secondary-color) !important; }
.major.style2:before { background-color: var(--accent-color) !important; }
.major.style3:before { background-color: var(--mint-color) !important; }

#header,
#header.alt {
  background: rgba(255, 255, 255, 0.28) !important;
  border-bottom: 1px solid rgba(255,255,255,0.65);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 10px 30px rgba(32, 92, 150, 0.1);
}

#header {
  position: fixed !important;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
}

#header a,
#header span,
#header h1 a,
#header.alt a,
#header.alt span,
#header.alt h1 a {
  color: var(--primary-color) !important;
}

#header nav > ul > li > a.menuToggle {
  border-bottom: 0 !important;
  transition: transform 0.18s ease;
}

#header nav > ul > li > a.menuToggle:after {
  filter: brightness(0) saturate(100%) !important;
  opacity: 1;
}

#header nav > ul > li > a.menuToggle:hover,
#header nav > ul > li > a.menuToggle:focus-visible {
  transform: translateY(-1px);
}

#header nav > ul > li > a.menuToggle:active {
  transform: translateY(0) scale(0.97);
}

#header h1 a {
  display: inline-block;
  transition: transform 0.18s ease;
}

#header h1 a:hover,
#header h1 a:focus-visible {
  transform: translateY(-1px);
}

#header h1 a:active {
  transform: translateY(0) scale(0.97);
}

.handwritten-quote {
  width: min(96%, 68rem);
  min-height: 3.5rem;
  margin: 1.45rem auto 1.85rem;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border: 0;
  color: #050505;
  font-style: normal;
  text-align: center;
}

.handwritten-quote-text {
  display: grid;
  justify-items: center;
  max-width: 100%;
  font-family: 'Caveat', 'Segoe Print', 'Bradley Hand', cursive !important;
  font-size: 1.8rem;
  font-weight: 400;
  line-height: 1.15;
  letter-spacing: 0 !important;
}

.handwritten-quote-line {
  display: block;
  max-width: 100%;
  padding: 0 0.6em;
  white-space: nowrap;
  font-family: 'Caveat', 'Segoe Print', 'Bradley Hand', cursive !important;
  font-weight: 400 !important;
  color: #050505;
  opacity: 0;
  clip-path: inset(0 100% 0 0);
  will-change: clip-path, opacity;
}

.quote-opening-mark,
.quote-closing-mark {
  display: inline-block;
  font-family: inherit !important;
  font-weight: inherit !important;
}

body:not(.is-preload) .handwritten-quote-line-1 {
  animation: writeQuote 3.2s linear 2.82s forwards;
}

@keyframes writeQuote {
  0% {
    opacity: 1;
    clip-path: inset(0 100% 0 0);
  }
  100% {
    opacity: 1;
    clip-path: inset(0 0 0 0);
  }
}

html.js #banner .more {
  opacity: 0;
  transform: translateY(8.5em);
  transition: none !important;
}

html.js body:not(.is-preload) #banner .more {
  animation: revealLearnMore 0.75s ease 6.15s forwards;
}

@keyframes revealLearnMore {
  from {
    opacity: 0;
    transform: translateY(8.5em);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  body:not(.is-preload) .handwritten-quote-line {
    animation: none;
    opacity: 1;
    clip-path: none;
  }
}

#footer {
  background: rgba(255, 255, 255, 0.18) !important;
  border-top: 1px solid rgba(255,255,255,0.65);
  backdrop-filter: blur(22px);
  -webkit-backdrop-filter: blur(22px);
  box-shadow: 0 -10px 30px rgba(32, 92, 150, 0.08);
}

#footer .icons a,
#footer .copyright {
  color: var(--primary-color) !important;
}

#footer .icons .social-link {
  display: inline-flex;
  width: 1.5em;
  height: 1.5em;
  align-items: center;
  justify-content: center;
  border-bottom: 0;
}

#footer .icons .social-link svg {
  width: 1em;
  height: 1em;
  fill: currentColor;
}

.spotlight .content h2 { color: var(--primary-color); }

.wrapper.style1,
.wrapper.style2,
.wrapper.style4,
.wrapper.alt.style2 {
  background: transparent !important;
}

#about,
#apps,
#games,
#contact {
  position: relative;
  overflow: hidden;
}

#about:before,
#apps:before,
#games:before,
#contact:before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: none;
}

/* Card */
.game-card {
  position: relative; /* ensure it sits above backgrounds on mobile */
  z-index: 1;
  background: linear-gradient(180deg, rgba(255,255,255,0.42), rgba(240,246,253,0.28));
  padding: 2rem;
  border-radius: 24px;
  margin-bottom: 2rem;
  text-align: center;
  border: 1px solid rgba(255, 255, 255, 0.34);
  box-shadow:
    0 18px 40px rgba(28, 72, 122, 0.1),
    inset 0 1px 0 rgba(255,255,255,0.62);
  backdrop-filter: blur(22px);
  -webkit-backdrop-filter: blur(22px);
}

.app-icon {
  width: 120px !important;
  height: 120px !important;
  border-radius: 22px;
  margin-bottom: 1.5rem;
  object-fit: cover;
  display: block;
  margin-left: auto;
  margin-right: auto;
  background: transparent;
  transition: transform 0.18s ease;
}

@media (hover: hover) {
  .spotlight .app-icon:hover {
    transform: translateY(-3px);
  }
}

.game-card h3 {
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif !important;
  font-weight: 700 !important;
  color: var(--primary-color);
  margin-bottom: 1rem;
  font-size: 1.5rem;
  letter-spacing: -0.02em;
  text-transform: none !important;
}

.game-card p {
  color: var(--primary-color) !important;
  margin-bottom: 1.5rem;
  line-height: 1.6;
}

/* ===== BUTTON FIXES + 1.2x SIZE ===== */

/* Remove dotted/underlined link styling around image-buttons (Spectral can add borders/underline) */
.game-card a {
  text-decoration: none !important;
  border-bottom: 0 !important;
  outline: none !important;
  box-shadow: none !important;
}
.game-card a:focus,
.game-card a:active,
.game-card a:focus-visible {
  outline: none !important;
  box-shadow: none !important;
}
.game-card a img {
  border: 0 !important;
  outline: none !important;
  box-shadow: none !important;
}

/* Reuse existing sizing for BOTH new custom buttons — now 1.2x bigger (150px -> 180px) */
.app-store-badge { width: 180px !important; height: auto; transition: transform 0.2s ease; }
.app-store-badge:hover { transform: scale(1.05); }

@media (min-width: 769px) {
  .game-card > a:first-of-type .app-store-badge {
    margin-left: -14px;
  }
}

/* Neutralize Spectral's default nth-child flip; we control with .reverse */
.wrapper.alt.style2 .spotlight { flex-direction: row; }
.wrapper.alt.style2 .spotlight:nth-child(2n) { flex-direction: row; }

.spotlight {
  display: flex;
  align-items: center;
  padding: 3rem 0;
  background: transparent !important;
  border-top: 0 !important;
  border-bottom: 0 !important;
  box-shadow: none !important;
}
.spotlight .image {
  flex: 0 0 auto;
  margin: 0 3rem 0 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.spotlight .image picture {
  display: block;
}
.spotlight .content {
  flex: 1;
  text-align: left;
  overflow: visible; /* prevent clipping on small screens */
}
.spotlight.reverse { flex-direction: row-reverse !important; }
.spotlight.reverse .image { margin: 0 0 0 3rem; }

.wrapper.alt.style2 .spotlight,
.wrapper.alt.style2 .spotlight:nth-child(2n),
.wrapper.alt.style2 .spotlight:nth-child(2n+1) {
  background: transparent !important;
}

.wrapper.alt.style2 .spotlight:before,
.wrapper.alt.style2 .spotlight:after {
  display: none !important;
}

.scroll-reveal-card,
.scroll-reveal-icon {
  opacity: 0;
  will-change: transform, opacity, filter;
}

.scroll-reveal-card {
  transform: translate3d(0, 26px, 0) scale(0.985);
  filter: blur(0.8px);
  transition:
    transform 0.8s cubic-bezier(0.22, 1, 0.36, 1),
    opacity 0.8s ease,
    filter 0.8s ease;
}

.scroll-reveal-icon {
  transform: translate3d(0, 22px, 0) scale(0.94);
  filter: blur(0.6px);
  transition:
    transform 0.72s cubic-bezier(0.22, 1, 0.36, 1),
    opacity 0.72s ease,
    filter 0.72s ease;
}

.scroll-reveal-card.is-visible,
.scroll-reveal-icon.is-visible {
  opacity: 1;
  transform: translate3d(0, 0, 0) scale(1);
  filter: blur(0);
}

.scroll-reveal-icon.is-visible {
  transition-delay: 0.06s;
}

/* --- Mobile fixes: ensure descriptions always show, esp. in .reverse rows --- */
@media (max-width: 768px) {
  .spotlight {
    flex-direction: column !important;
    text-align: center;
    align-items: center !important;
    padding-left: 1.25rem !important;
    padding-right: 1.25rem !important;
    box-sizing: border-box;
  }
  /* Force stack order: image first, content second for ALL rows (reverse included) */
  .spotlight .image { order: 1; margin: 0 0 1.25rem 0 !important; width: 100% !important; }
  .spotlight .content {
    order: 2;
    width: min(100%, 34rem) !important;
    max-width: 34rem !important;
    margin-left: auto !important;
    margin-right: auto !important;
    text-align: center;
  }

  /* Make sure paragraph is visible and not overlapped */
  .game-card {
    width: min(100%, 34rem) !important;
    max-width: 34rem !important;
    margin: 0 auto 2rem auto;
  }
  .game-card p { display: block !important; opacity: 1 !important; visibility: visible !important; }

  /* Avoid any stray theme rules affecting reverse rows on mobile */
  .spotlight.reverse { flex-direction: column !important; }
  .spotlight.reverse .image { margin: 0 0 1.25rem 0 !important; }
}

.coming-soon {
  background-color: var(--dark-grey) !important;
  cursor: not-allowed !important;
  opacity: 0.7 !important;
}

/* Banner tweaks */
#banner .inner p { line-height: 1.8 !important; }
.banner-text { margin-bottom: 0.5rem !important; line-height: 1.6 !important; }
.banner-description { margin-top: 1.5rem !important; margin-bottom: 1.5rem !important; }
#banner .actions.special { margin-top: 3.5rem !important; }

@media (max-width: 768px) {
  .handwritten-quote {
    width: min(calc(100vw - 1rem), 34rem);
    min-height: 3.25rem;
    margin-top: 1.2rem;
    margin-bottom: 1.6rem;
    position: relative;
    left: 50%;
    transform: translateX(-50%);
    overflow: visible;
  }

  .handwritten-quote-text {
    font-size: clamp(0.9rem, 4.5vw, 1.1rem);
  }

  .quote-closing-mark {
    margin-left: 0.08em;
  }

  #banner .more {
    display: block;
  }

  #banner .inner p { line-height: 2.2 !important; }
  .banner-description { margin-top: 2rem !important; }
  #banner .actions.special { margin-top: 2.5rem !important; }
}

/* Ensure all major icons are equally visible (prevent any theme opacity differences) */
#about .icons.major .icon {
  opacity: 1 !important;
  filter: none !important;
}

#about .major p,
#contact header p,
#banner .inner p,
#footer,
.wrapper,
.spotlight .content p {
  color: var(--primary-color) !important;
}

#contact .inner,
#about .inner {
  background: linear-gradient(180deg, rgba(255,255,255,0.48), rgba(243,248,255,0.36));
  border: 1px solid rgba(255,255,255,0.5);
  border-radius: 28px;
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  box-shadow: 0 18px 40px rgba(36, 76, 122, 0.08);
  padding: 2.5rem;
}

#banner .inner,
#banner .inner h2,
#banner .inner p {
  color: var(--primary-color) !important;
}

#banner .inner {
  text-shadow: none;
}

#banner p.banner-text,
#banner p.banner-description,
#banner p.banner-text *,
#banner p.banner-description *,
#banner a.more,
#banner a.more:after,
#about .major h2,
#contact header h2 {
  color: #000 !important;
}

#about header.major h2 {
  border-bottom: 0 !important;
}

#about header.major h2:after {
  content: '';
  position: absolute;
  right: 6%;
  bottom: 0;
  left: 6%;
  display: block;
  height: 1px;
  border-radius: 999px;
  background: linear-gradient(
    90deg,
    rgba(91, 104, 124, 0) 0%,
    rgba(91, 104, 124, 0.42) 18%,
    rgba(55, 68, 88, 0.72) 50%,
    rgba(91, 104, 124, 0.42) 82%,
    rgba(91, 104, 124, 0) 100%
  );
  box-shadow:
    0 1px 2px rgba(15, 23, 42, 0.14),
    0 -1px 0 rgba(255, 255, 255, 0.18);
}

#banner a.more {
  border-bottom-color: transparent !important;
}

#banner a.more:after {
  border-left-color: #000 !important;
  border-bottom-color: #000 !important;
  border-top-color: transparent !important;
  border-right-color: transparent !important;
}

#banner .inner h2:before,
#banner .inner h2:after {
  display: none !important;
  content: none !important;
}

.hero-name {
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif !important;
  font-weight: 700 !important;
  font-size: clamp(1.25rem, 3.1vw, 2rem) !important;
  line-height: 0.95;
  text-transform: none !important;
  margin-bottom: 0.35rem !important;
  overflow: visible;
  display: flex !important;
  width: 100%;
  justify-content: center;
}

.hero-mark {
  display: inline-grid;
  width: 4ch;
  justify-items: stretch;
  row-gap: 0.22rem;
}

.hero-mark-top,
.hero-mark-bottom,
.hero-mark-line {
  opacity: 0;
  filter: blur(6px);
}

.hero-mark-top {
  text-align: center;
  letter-spacing: -0.04em;
}

.hero-mark-line {
  display: block;
  width: 100%;
  height: 1px;
  background: currentColor;
  transform-origin: center;
}

.hero-mark-bottom {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  align-items: center;
  justify-items: center;
  width: 100%;
  letter-spacing: 0;
}

body:not(.is-preload) .hero-mark-top,
body:not(.is-preload) .hero-mark-line,
body:not(.is-preload) .hero-mark-bottom {
  animation-timing-function: cubic-bezier(0.22, 1, 0.36, 1);
  animation-fill-mode: forwards;
}

body:not(.is-preload) .hero-mark-top {
  animation-name: heroTopIn;
  animation-duration: 0.72s;
  animation-delay: 0.08s;
}

body:not(.is-preload) .hero-mark-line {
  animation-name: heroLineIn;
  animation-duration: 0.56s;
  animation-delay: 0.46s;
}

body:not(.is-preload) .hero-mark-bottom {
  animation-name: heroBottomIn;
  animation-duration: 0.72s;
  animation-delay: 0.82s;
}

@keyframes heroTopIn {
  from {
    opacity: 0;
    transform: translateY(-24px);
    filter: blur(6px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
    filter: blur(0);
  }
}

@keyframes heroLineIn {
  from {
    opacity: 0;
    transform: scaleX(0.2);
    filter: blur(4px);
  }
  to {
    opacity: 1;
    transform: scaleX(1);
    filter: blur(0);
  }
}

@keyframes heroBottomIn {
  from {
    opacity: 0;
    transform: translateY(24px);
    filter: blur(6px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
    filter: blur(0);
  }
}

#banner .inner,
#apps .inner,
#games .inner {
  position: relative;
  z-index: 1;
}

#menu {
  background:
    linear-gradient(180deg, rgba(255,255,255,0.4), rgba(226,237,249,0.26)) !important;
  backdrop-filter: blur(26px);
  -webkit-backdrop-filter: blur(26px);
  border-left: 1px solid rgba(255,255,255,0.48);
  box-shadow: -16px 0 40px rgba(25, 68, 116, 0.12);
}

#menu ul {
  border-top: 0 !important;
}

#menu ul li {
  border-top: 0 !important;
}

#menu ul li a {
  color: var(--primary-color) !important;
  border: 0 !important;
  border-radius: 16px;
  margin-bottom: 0.45rem;
  padding: 0.95rem 1rem !important;
  background: linear-gradient(180deg, rgba(255,255,255,0.42), rgba(238,245,252,0.2));
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.65),
    0 8px 24px rgba(25, 68, 116, 0.06);
  transition:
    background 0.18s ease,
    box-shadow 0.18s ease,
    transform 0.18s ease;
}

#menu ul li a:hover,
#menu ul li a:focus-visible {
  background: linear-gradient(180deg, rgba(255,255,255,0.62), rgba(225,239,255,0.34)) !important;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.88),
    0 11px 26px rgba(25, 68, 116, 0.11) !important;
  transform: translateX(-4px);
}

#menu ul li a:active {
  transform: translateX(-2px) scale(0.985);
}

#menu .close {
  color: var(--primary-color) !important;
  filter: brightness(0) saturate(100%) !important;
  opacity: 0.78;
  transform-origin: calc(100% - 1.65em) 1.5em;
  transition: opacity 0.18s ease, transform 0.24s cubic-bezier(0.22, 1, 0.36, 1);
}

#menu .close:hover,
#menu .close:focus-visible {
  opacity: 1;
  transform: rotate(90deg) scale(1.06);
}

#menu .close:active {
  opacity: 0.58;
  transform: rotate(90deg) scale(0.94);
}

.brand-icon-row {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-top: 2rem;
}

.brand-icon-row img {
  width: 42px;
  height: 42px;
  object-fit: cover;
  border-radius: 11px;
  box-shadow: 0 8px 18px rgba(22, 54, 94, 0.12);
  background: rgba(255,255,255,0.35);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.brand-icon-row picture {
  display: block;
}

.brand-icon-row a {
  border-bottom: 0 !important;
}

.brand-icon-row a:hover img {
  transform: scale(1.14);
  box-shadow: 0 12px 26px rgba(22, 54, 94, 0.18);
}


.mobile-only-break { display: none; }
.desktop-only-break { display: inline; }

@media (max-width: 768px) {
  .mobile-only-break { display: inline; }
  .desktop-only-break { display: none; }
}


.banner-sequence {
  opacity: 0;
  transform: translateY(10px);
  filter: blur(4px);
}

body:not(.is-preload) .banner-sequence {
  animation: bannerFadeIn 0.46s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

body:not(.is-preload) .banner-sequence-1 { animation-delay: 1.50s; }
body:not(.is-preload) .banner-sequence-2 { animation-delay: 1.84s; }
body:not(.is-preload) .banner-sequence-3 { animation-delay: 2.18s; }

html:not(.js) .hero-mark-top,
html:not(.js) .hero-mark-line,
html:not(.js) .hero-mark-bottom,
html:not(.js) .banner-sequence,
html:not(.js) .handwritten-quote-line {
  animation: none !important;
  clip-path: none !important;
  filter: none !important;
  opacity: 1 !important;
  transform: none !important;
}

@media (prefers-reduced-motion: reduce) {
  .hero-mark-top,
  .hero-mark-line,
  .hero-mark-bottom,
  .banner-sequence,
  .handwritten-quote-line,
  #banner .more {
    animation: none !important;
    clip-path: none !important;
    filter: none !important;
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
}

@keyframes bannerFadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
    filter: blur(4px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
    filter: blur(0);
  }
}
