/* ==========================================================================
   EXAGGERATED MINIMALISM - AWWWARDS CONCEPT
   Uncommon Palette: Alabaster Bone, Ink Black, Electric Ultramarine
   ========================================================================== */
:root {
  --bg: #EAE8E2;
  --fg: #0F0F0F;
  --accent: #3F00FF;
  /* Electric Ultramarine */
  --border: #0F0F0F;

  --font-display: 'Inter Tight', 'Plus Jakarta Sans', sans-serif;
  --font-body: 'Inter', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  --ease-expo: cubic-bezier(0.19, 1, 0.22, 1);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

::selection {
  background-color: var(--accent);
  color: var(--bg);
}

body {
  background-color: var(--bg);
  color: var(--fg);
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  text-transform: uppercase;
}

/* ==========================================================================
   NATIVE CURSOR SUPPRESSION (DESKTOP / POINTER DEVICES)
   ========================================================================== */
@media (pointer: fine) {
  *,
  *::before,
  *::after {
    cursor: none !important;
  }

  html,
  body,
  a,
  button,
  input,
  textarea,
  select,
  label,
  [role="button"],
  .accordion-trigger,
  .proof-viewport,
  .case-image,
  .lightbox-close,
  .nav-item-link,
  .btn-raw {
    cursor: none !important;
  }
}

/* ==========================================================================
   INTERACTIVE CUSTOM CURSOR (AWWWARDS EXAGGERATED MINIMALISM)
/* ==========================================================================
   INTERACTIVE CUSTOM CURSOR (LOWER-RIGHT TOOLTIP HINT)
   ========================================================================== */
#custom-cursor {
  position: fixed;
  top: 0;
  left: 0;
  width: 0;
  height: 0;
  pointer-events: none;
  z-index: 999999;
  transition: opacity 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

#custom-cursor.cursor-hidden {
  opacity: 0 !important;
}

/* Precision Center Point (Always visible click point) */
.cursor-point-wrap {
  position: fixed;
  top: 0;
  left: 0;
  pointer-events: none;
  z-index: 1000002;
  will-change: transform;
}

.cursor-dot {
  width: 8px;
  height: 8px;
  background-color: var(--accent);
  border: 1.5px solid var(--fg);
  box-sizing: border-box;
  transform: translate(-50%, -50%);
  border-radius: 0;
  transition: transform 0.15s cubic-bezier(0.16, 1, 0.3, 1),
              background-color 0.15s ease,
              border-color 0.15s ease;
}

/* When hovering an interactive item, the dot stays visible & sharp */
#custom-cursor.has-hint .cursor-dot {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1.15);
}

/* Trailing Follower Wrap */
.cursor-follower-wrap {
  position: fixed;
  top: 0;
  left: 0;
  pointer-events: none;
  z-index: 1000001;
  will-change: transform;
}

/* Tooltip Hint Badge — Positioned to the LOWER-RIGHT of the main cursor */
.cursor-ring,
.cursor-tooltip {
  position: absolute;
  top: 0;
  left: 0;
  transform: translate(16px, 16px) scale(0.85);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  border-radius: 0;
  opacity: 0;
  visibility: hidden;
  box-sizing: border-box;
  background-color: var(--accent);
  color: #FFFFFF;
  border: 1.5px solid var(--fg);
  box-shadow: 3.5px 3.5px 0px var(--fg);
  padding: 4px 10px;
  transition: opacity 0.16s ease,
              visibility 0.16s ease,
              transform 0.18s cubic-bezier(0.16, 1, 0.3, 1),
              box-shadow 0.16s ease;
}

/* Tooltip Typography */
.cursor-hint {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #FFFFFF;
  white-space: nowrap;
  line-height: 1.2;
}

/* State: Hovering Interactive Element (Floats at lower-right) */
#custom-cursor.has-hint .cursor-ring,
#custom-cursor.has-hint .cursor-tooltip {
  opacity: 1;
  visibility: visible;
  transform: translate(16px, 16px) scale(1);
}

/* Edge Boundary Collisions: Flip to Lower-Left near right screen edge */
#custom-cursor.has-hint.flip-x .cursor-ring,
#custom-cursor.has-hint.flip-x .cursor-tooltip {
  transform: translate(calc(-100% - 16px), 16px) scale(1);
}

/* Edge Boundary Collisions: Flip to Upper-Right near bottom screen edge */
#custom-cursor.has-hint.flip-y .cursor-ring,
#custom-cursor.has-hint.flip-y .cursor-tooltip {
  transform: translate(16px, calc(-100% - 16px)) scale(1);
}

/* Edge Boundary Collisions: Flip to Upper-Left near bottom-right corner */
#custom-cursor.has-hint.flip-x.flip-y .cursor-ring,
#custom-cursor.has-hint.flip-x.flip-y .cursor-tooltip {
  transform: translate(calc(-100% - 16px), calc(-100% - 16px)) scale(1);
}

/* State: Active Mouse Down / Click */
#custom-cursor.is-down .cursor-dot {
  transform: translate(-50%, -50%) scale(0.75);
}

#custom-cursor.is-down.has-hint .cursor-ring,
#custom-cursor.is-down.has-hint .cursor-tooltip {
  transform: translate(16px, 16px) scale(0.95);
  box-shadow: 1.5px 1.5px 0px var(--fg);
}

#custom-cursor.is-down.has-hint.flip-x .cursor-ring,
#custom-cursor.is-down.has-hint.flip-x .cursor-tooltip {
  transform: translate(calc(-100% - 16px), 16px) scale(0.95);
  box-shadow: 1.5px 1.5px 0px var(--fg);
}

/* High-contrast support when inside dark Lightbox */
body.has-lightbox-open #custom-cursor .cursor-dot {
  background-color: #FFFFFF;
  border-color: var(--accent);
}

body.has-lightbox-open #custom-cursor.has-hint .cursor-ring,
body.has-lightbox-open #custom-cursor.has-hint .cursor-tooltip {
  border-color: #FFFFFF;
  box-shadow: 3.5px 3.5px 0px #000000;
}

/* Fallback for Touch / Mobile Screens */
@media (pointer: coarse), (hover: none) {
  #custom-cursor {
    display: none !important;
  }
}

/* Brutalist Header */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  display: flex;
  justify-content: space-between;
  padding: 1.5rem 2vw;
  border-bottom: 2px solid var(--border);
  background: var(--bg);
  z-index: 100;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  font-weight: 700;
}

.nav-brand {
  text-decoration: none;
  color: var(--fg);
  transition: color 0.2s ease;
}

.nav-brand:hover {
  color: var(--accent);
}

.nav-menu {
  display: flex;
  gap: 3vw;
}

.nav-item-link {
  text-decoration: none;
  color: var(--fg);
}

.nav-item-link:hover,
.nav-item-link.active {
  color: var(--accent);
}

.btn-raw {
  background: none;
  border: none;
  font-family: inherit;
  font-weight: inherit;
  color: var(--fg);
  text-transform: uppercase;
  margin-left: 1.5rem;
}

.btn-raw:hover {
  color: var(--accent);
}

/* Typography */
.text-accent {
  color: var(--accent);
}

.text-outline {
  color: transparent;
  -webkit-text-stroke: 2px var(--fg);
}

/* Sections & Spacing (Massive Whitespace) */
main {
  padding-top: 100px;
}

.section-wrapper {
  padding: 15vh 2vw;
  border-bottom: 2px solid var(--border);
}

.section-header {
  margin-bottom: 10vh;
}

.section-header h2 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 6rem);
  font-weight: 800;
  letter-spacing: -0.03em;
}

/* Hero Section */
.hero {
  min-height: 90vh;
  padding: 5vh 2vw;
  display: flex;
  flex-direction: column;
  justify-content: center;
  border-bottom: 2px solid var(--border);
}

.hero-top-meta {
  display: flex;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  margin-bottom: 5vh;
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 7vw, 10rem);
  font-weight: 800;
  line-height: 0.85;
  letter-spacing: -0.02em;
  margin-bottom: 10vh;
  width: 100%;
  text-align: center;
  /* Anchors the typography perfectly in the middle */
}

.hero-title .block {
  display: block;
  white-space: nowrap;
}

.hero-title .indent {
  margin-left: 0;
  /* Removes the manual offset to maintain perfect center symmetry */
}

/* Dossier Grid (Brutalist Table) */
.dossier-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 2px solid var(--border);
  border-left: 2px solid var(--border);
}

.bento-course-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  border-top: 2px solid var(--border);
  border-left: 2px solid var(--border);
}

.dossier-cell,
.bento-cell {
  padding: 2rem;
  border-right: 2px solid var(--border);
  border-bottom: 2px solid var(--border);
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: flex-start;
  gap: 0.75rem;
}

.bento-cell.huge-cell {
  grid-column: span 1;
}

.bento-cell.full-width {
  grid-column: span 2;
}

.dossier-label,
.bento-label {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--accent);
  margin-bottom: 0.25rem;
}

.dossier-val {
  font-family: var(--font-display);
  font-size: clamp(1rem, 1.5vw, 2rem);
  font-weight: 700;
  line-height: 1.25;
}

.bento-heading {
  font-family: var(--font-display);
  font-size: clamp(2rem, 3.5vw, 3rem);
  line-height: 1.15;
}

.bento-value {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  font-weight: 700;
}

/* Proof Gallery */
.proof-gallery {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2vw;
  align-items: stretch;
}

.proof-card {
  border: 2px solid var(--border);
  display: flex;
  flex-direction: column;
  background-color: #FFFFFF;
}

.proof-meta {
  display: flex;
  justify-content: space-between;
  padding: 1rem;
  border-bottom: 2px solid var(--border);
  font-family: var(--font-mono);
  font-weight: 700;
  background-color: var(--bg);
}

.proof-viewport {
  flex: 1;
  aspect-ratio: 1024 / 721;
  width: 100%;
  overflow: hidden;
  background-color: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.proof-viewport img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  display: block;
  filter: grayscale(100%) contrast(1.2);
  transition: transform 0.6s var(--ease-expo), filter 0.6s;
}

.proof-viewport:hover img {
  filter: grayscale(0%);
  transform: scale(1.03);
}

/* ==========================================================================
   REFLECTIONS ACCORDION (PROPORTIONAL HIERARCHY & STARK AFFORDANCE)
   ========================================================================== */
.accordion-helper-strip {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 2rem;
}

.accordion-helper-strip .helper-bullet {
  font-size: 0.7rem;
  animation: pulse-dot 2s infinite;
}

.reflection-accordion {
  border-top: 2px solid var(--border);
}

.accordion-item {
  border-bottom: 2px solid var(--border);
  transition: background-color 0.25s var(--ease-expo);
  position: relative;
}

.accordion-trigger {
  width: 100%;
  background: none;
  border: none;
  text-align: left;
  padding: 3rem 1.5rem;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 2.5rem;
  color: var(--fg);
  transition: background-color 0.25s, color 0.25s;
}

.accordion-trigger:hover {
  background-color: rgba(63, 0, 255, 0.03);
}

.accordion-lead {
  display: flex;
  align-items: flex-start;
  gap: 2.5rem;
  flex: 1;
}

.accordion-index {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  font-weight: 800;
  line-height: 0.9;
  color: var(--accent);
  min-width: 60px;
}

.accordion-meta-text {
  flex: 1;
}

.accordion-theme {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/* Clear, Commanding Question Typography Hierarchy */
.accordion-question {
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 2.2vw, 2.25rem);
  font-weight: 800;
  line-height: 1.25;
  letter-spacing: -0.02em;
  color: var(--fg);
  text-transform: none;
  max-width: 55ch;
  transition: color 0.25s;
}

.accordion-trigger:hover .accordion-question {
  color: var(--accent);
}

/* Prominent Interactive Action Badge with Animated Border Beam */
.accordion-action-badge {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.8rem 1.4rem;
  border: 2px solid rgba(15, 15, 15, 0.2);
  color: var(--fg);
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  white-space: nowrap;
  flex-shrink: 0;
  margin-top: 0.5rem;
  border-radius: 0;
  overflow: hidden;
  z-index: 1;
  background: transparent;
  transition: transform 0.25s var(--ease-expo), box-shadow 0.25s, border-color 0.25s;
  box-shadow: 0 4px 12px rgba(15, 15, 15, 0.05);
}

/* Rotating glowing beam around border */
.accordion-action-badge::before {
  content: '';
  position: absolute;
  top: -150%;
  left: -150%;
  width: 400%;
  height: 400%;
  background: conic-gradient(
    from 0deg,
    transparent 0deg,
    transparent 260deg,
    var(--accent) 320deg,
    #60a5fa 350deg,
    #ffffff 360deg
  );
  animation: rotate-border-beam 3.5s linear infinite;
  z-index: -2;
  will-change: transform;
}

/* Button interior background surface */
.accordion-action-badge::after {
  content: '';
  position: absolute;
  inset: 2px;
  background: var(--bg);
  z-index: -1;
  transition: background-color 0.25s var(--ease-expo);
}

/* Hover: Beam accelerates and badge elevates */
.accordion-trigger:hover .accordion-action-badge {
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(63, 0, 255, 0.18);
  border-color: rgba(63, 0, 255, 0.5);
}

.accordion-trigger:hover .accordion-action-badge::before {
  animation-duration: 1.6s;
}

.accordion-trigger:hover .accordion-action-badge::after {
  background: #f4f3ef;
}

/* Active / Collapsed state: Inverts face to Electric Ultramarine */
.accordion-item.active .accordion-action-badge {
  color: #ffffff;
  border-color: rgba(63, 0, 255, 0.8);
}

.accordion-item.active .accordion-action-badge::before {
  background: conic-gradient(
    from 0deg,
    transparent 0deg,
    transparent 260deg,
    #ffffff 330deg,
    #93c5fd 355deg,
    #ffffff 360deg
  );
}

.accordion-item.active .accordion-action-badge::after {
  background: var(--accent);
}

.accordion-trigger:hover .accordion-item.active .accordion-action-badge::after {
  background: #3200cc;
}

@keyframes rotate-border-beam {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

.accordion-action-symbol {
  font-weight: 800;
}

/* 100% Leak-Proof Smooth Grid Transition */
.accordion-content {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.45s var(--ease-expo), visibility 0.45s;
  overflow: hidden;
  visibility: hidden;
}

.accordion-item.active .accordion-content {
  grid-template-rows: 1fr;
  visibility: visible;
}

.accordion-inner {
  min-height: 0;
  overflow: hidden;
  opacity: 0;
  transform: translateY(-12px);
  transition: opacity 0.35s ease, transform 0.35s var(--ease-expo);
  padding: 0 1.5rem 3rem calc(1.5rem + 60px + 2.5rem);
}

.accordion-item.active .accordion-inner {
  opacity: 1;
  transform: translateY(0);
}

.accordion-answer-label {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 0.75rem;
  display: block;
}

/* Disciplined, High-Legibility Answer Typography */
.accordion-answer-text {
  font-family: var(--font-body);
  font-size: clamp(1.05rem, 1.2vw, 1.25rem);
  line-height: 1.85;
  text-transform: none;
  font-weight: 400;
  color: #1a1a1a;
  max-width: 75ch;
}

@media (max-width: 850px) {
  .accordion-trigger {
    flex-direction: column;
    align-items: stretch;
    gap: 1.5rem;
  }

  .accordion-action-badge {
    align-self: flex-start;
  }
}

@media (max-width: 768px) {
  .accordion-lead {
    flex-direction: column;
    gap: 1rem;
  }

  .accordion-inner {
    padding-left: 1.5rem;
  }
}

/* ==========================================================================
   PART 4: CASE STUDY & UI AUDIT (CENTERED STAGE & BOTTOM ANSWERS)
   ========================================================================== */
.case-study-container {
  border: 2px solid var(--border);
  background: var(--bg);
}

.case-meta-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem 2vw;
  border-bottom: 2px solid var(--border);
  font-weight: 700;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  letter-spacing: 0.05em;
}

/* Centered UI Mockup Presentation Stage */
.case-stage {
  padding: 4rem 2vw;
  background: rgba(15, 15, 15, 0.03);
  display: flex;
  justify-content: center;
  align-items: center;
  border-bottom: 2px solid var(--border);
}

.case-image {
  width: 100%;
  max-width: 880px;
  background: #0F0F0F;
  border: 2px solid var(--border);
  box-shadow: none;
  overflow: hidden;
  position: relative;
  transition: transform 0.3s var(--ease-expo);
}

.case-image:hover {
  box-shadow: none;
}

.case-image img {
  width: 100%;
  height: auto;
  display: block;
  image-rendering: auto;
  transition: transform 0.6s var(--ease-expo);
}

.case-image:hover img {
  transform: scale(1.02);
}

/* Bottom Answers: 2-Column Balanced Audit Grid */
.audit-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
}

.audit-block {
  padding: 3.5rem 3vw;
  border-right: 2px solid var(--border);
  display: flex;
  flex-direction: column;
}

.audit-block:last-child {
  border-right: none;
}

.audit-label {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 700;
  display: block;
  margin-bottom: 1.5rem;
  letter-spacing: 0.08em;
}

.audit-block h4 {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 2.3vw, 2.5rem);
  margin-bottom: 1.5rem;
  line-height: 1.15;
}

.audit-desc {
  text-transform: none;
  font-size: 1.05rem;
  line-height: 1.7;
  margin-bottom: 2rem;
  color: #222222;
  max-width: 65ch;
}

.audit-list {
  list-style: none;
  padding-left: 0;
  text-transform: none;
  line-height: 1.75;
}

.audit-list li {
  margin-bottom: 1.25rem;
  padding-left: 1.75rem;
  position: relative;
  font-size: 0.95rem;
  color: #1a1a1a;
}

.audit-list li::before {
  content: '→';
  position: absolute;
  left: 0;
  top: 0;
  font-weight: 700;
  color: var(--accent);
  font-family: var(--font-mono);
}

.audit-list li strong {
  font-weight: 700;
  color: var(--fg);
  text-transform: uppercase;
  font-size: 0.9rem;
  letter-spacing: 0.03em;
  margin-right: 0.25rem;
}

/* Responsive Audit Layout */
@media (max-width: 1024px) {
  .case-stage {
    padding: 2.5rem 1.5rem;
  }

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

  .audit-block {
    border-right: none;
    border-bottom: 2px solid var(--border);
    padding: 2.5rem 1.5rem;
  }

  .audit-block:last-child {
    border-bottom: none;
  }
}

/* Lightbox Modal */
.lightbox-modal {
  position: fixed;
  inset: 0;
  background: var(--bg);
  z-index: 2000;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s;
}

.lightbox-modal.active {
  opacity: 1;
  visibility: visible;
}

.lightbox-close {
  position: absolute;
  top: 2rem;
  right: 2rem;
  background: none;
  border: none;
  font-family: var(--font-mono);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--fg);
}

.lightbox-close:hover {
  color: var(--accent);
}

.lightbox-modal img {
  max-width: 90vw;
  max-height: 80vh;
  border: 2px solid var(--fg);
}

.lightbox-caption {
  margin-top: 1rem;
  font-family: var(--font-mono);
}

/* Toast */
.toast-capsule {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  background: var(--accent);
  color: var(--bg);
  padding: 1rem 2rem;
  font-family: var(--font-mono);
  font-weight: 700;
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.4s var(--ease-expo);
}

.toast-capsule.show {
  opacity: 1;
  transform: translateY(0);
}

/* Scroll Reveal */
.reveal-on-scroll {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s var(--ease-expo), transform 0.8s var(--ease-expo);
}

.reveal-on-scroll.is-revealed {
  opacity: 1;
  transform: translateY(0);
}

.site-footer {
  text-align: center;
  padding: 5vh;
  border-top: 2px solid var(--border);
  font-family: var(--font-mono);
  font-weight: 700;
}

@media (max-width: 1024px) {

  .dossier-grid,
  .bento-course-grid,
  .proof-gallery,
  .audit-grid {
    grid-template-columns: 1fr;
    border-left: none;
  }

  .dossier-cell,
  .bento-cell,
  .audit-block {
    border-right: none;
  }

  .reflection-entry {
    grid-template-columns: 1fr;
  }

  .hero-title .indent {
    margin-left: 0;
  }

  .nav-menu {
    display: none;
  }
}

/* ==========================================================================
   MOBILE VIEWPORT NOTICE MODAL (EXAGGERATED MINIMALISM)
   ========================================================================== */
.notice-modal {
  position: fixed;
  inset: 0;
  background: rgba(15, 15, 15, 0.88);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 1000050;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s cubic-bezier(0.16, 1, 0.3, 1),
              visibility 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.notice-modal.active {
  opacity: 1;
  visibility: visible;
}

.notice-modal-card {
  width: 100%;
  max-width: 420px;
  background-color: var(--bg);
  border: 2px solid var(--border);
  box-shadow: none;
  display: flex;
  flex-direction: column;
  transform: translateY(16px) scale(0.97);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  box-sizing: border-box;
}

.notice-modal.active .notice-modal-card {
  transform: translateY(0) scale(1);
}

.notice-content {
  padding: 2.25rem 2rem 1.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.notice-message {
  font-family: var(--font-body);
  font-size: 1.05rem;
  line-height: 1.65;
  color: var(--fg);
  text-transform: none;
  font-weight: 500;
  text-align: center;
}

.notice-actions {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  padding: 0 2rem 2rem;
}

.btn-notice-primary {
  width: 100%;
  padding: 0.95rem 1.25rem;
  background-color: var(--fg);
  color: var(--bg);
  border: 2px solid var(--border);
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: background-color 0.15s ease, color 0.15s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.btn-notice-primary:hover,
.btn-notice-primary:active {
  background-color: var(--accent);
  color: #FFFFFF;
}

.btn-notice-secondary {
  width: 100%;
  padding: 0.85rem 1.25rem;
  background-color: transparent;
  color: var(--fg);
  border: 1.5px solid var(--border);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: background-color 0.15s ease, color 0.15s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.btn-notice-secondary:hover,
.btn-notice-secondary:active {
  background-color: var(--fg);
  color: var(--bg);
}

body.has-modal-open {
  overflow: hidden !important;
}