/* ==========================================================================
   RISK Labs — styles.css
   Complete stylesheet for the RISK_OS desktop landing page.
   All design tokens sourced from design-system.md v1.0
   ========================================================================== */

/* ==========================================================================
   1. CSS Custom Properties (Design Tokens)
   ========================================================================== */

:root {
  /* Backgrounds */
  --bg-primary: #0A0A0F;
  --bg-secondary: #12121A;
  --bg-modal: #141420;
  --bg-modal-titlebar: #1A1A28;
  --bg-overlay: rgba(2, 2, 8, 0.72);
  --bg-input: #0E0E18;
  --bg-boot: #000000;

  /* Text */
  --text-primary: #E8E8F0;
  --text-secondary: #9999AA;
  --text-muted: #55556A;
  --text-boot: #00CCFF;
  --text-on-accent: #FFFFFF;

  /* Accent — brand blue */
  --accent: #0088FF;
  --accent-hover: #33AAFF;
  --accent-active: #0066DD;
  --accent-muted: rgba(0, 136, 255, 0.12);
  --accent-glow: rgba(0, 136, 255, 0.30);

  /* Brand gradient */
  --gradient-brand: linear-gradient(135deg, #0055FF 0%, #00CCFF 100%);

  /* Borders */
  --border-default: rgba(255, 255, 255, 0.06);
  --border-hover: rgba(255, 255, 255, 0.12);
  --border-focus: #0088FF;
  --border-modal: rgba(255, 255, 255, 0.08);

  /* Status */
  --success: #00E57A;
  --success-bg: rgba(0, 229, 122, 0.10);
  --error: #FF3B5C;
  --error-bg: rgba(255, 59, 92, 0.10);
  --warning: #FFB020;

  /* Window dots */
  --dot-close: #FF5F57;
  --dot-minimize: #FFBD2E;
  --dot-maximize: #28C840;

  /* Typography */
  --font-mono: 'JetBrains Mono', 'Fira Code', 'Courier New', monospace;
  --font-sans: 'Inter', 'Helvetica Neue', Arial, sans-serif;

  /* Spacing */
  --sp-1: 0.25rem;
  --sp-2: 0.5rem;
  --sp-3: 0.75rem;
  --sp-4: 1rem;
  --sp-5: 1.25rem;
  --sp-6: 1.5rem;
  --sp-8: 2rem;
  --sp-10: 2.5rem;
  --sp-12: 3rem;
  --sp-16: 4rem;
  --sp-20: 5rem;
  --sp-24: 6rem;

  /* Z-index */
  --z-canvas: 0;
  --z-desktop: 1;
  --z-scanlines: 2;
  --z-vignette: 3;
  --z-dock: 100;
  --z-overlay: 500;
  --z-modal: 510;
  --z-boot: 1000;
  --z-access: 1001;

  /* Classified accent */
  --classified-red: #FF3B5C;
  --classified-red-muted: rgba(255, 59, 92, 0.15);

  /* Transitions */
  --ease-out-spring: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-out: cubic-bezier(0.25, 0, 0.25, 1);
  --ease-in: cubic-bezier(0.42, 0, 1, 1);
  --duration-fast: 120ms;
  --duration-normal: 200ms;
  --duration-slow: 400ms;
}


/* ==========================================================================
   2. Reset & Base
   ========================================================================== */

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

html {
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-sans);
  font-weight: 400;
  line-height: 1.6;
  color: var(--text-primary);
  background: var(--bg-primary);
  overflow: hidden;
  height: 100vh;
  width: 100vw;
}

/* Scrollbar — Webkit */
::-webkit-scrollbar { width: 4px; }
::-webkit-scrollbar-track { background: var(--bg-secondary); }
::-webkit-scrollbar-thumb { background: var(--text-muted); border-radius: 2px; }

/* Scrollbar — Firefox */
* {
  scrollbar-width: thin;
  scrollbar-color: var(--text-muted) var(--bg-secondary);
}

a {
  color: var(--accent);
  text-decoration: none;
}

a:hover {
  color: var(--accent-hover);
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
  color: inherit;
}

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

/* Focus ring for keyboard navigation */
*:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px #0A0A0F, 0 0 0 5px #0088FF;
  transition: box-shadow 120ms ease-out;
}

/* Touch device enhancements */
button, a, [role="button"] {
  -webkit-tap-highlight-color: transparent;
}


/* ==========================================================================
   3. Boot Sequence
   ========================================================================== */

.boot-screen {
  position: fixed;
  inset: 0;
  background: var(--bg-boot);
  z-index: var(--z-boot);
  display: flex;
  align-items: flex-start;
  justify-content: flex-start;
  padding: var(--sp-12);
}

.boot-screen[hidden] {
  display: none;
}

.boot-text-container {
  max-width: 640px;
  width: 100%;
}

.boot-line {
  font-family: var(--font-mono);
  font-size: 0.9375rem; /* --boot-text: 15px */
  font-weight: 400;
  line-height: 1.5;
  color: var(--text-boot);
  opacity: 0;
  transform: translateY(4px);
  white-space: pre;
}

.boot-line.visible {
  animation: bootLineIn 120ms ease-out forwards;
}

.boot-cursor {
  display: inline-block;
  color: var(--text-boot);
  font-family: var(--font-mono);
  font-size: 0.9375rem;
  animation: cursorBlink 1.06s step-end infinite;
  vertical-align: baseline;
  line-height: 1.5;
}

.boot-screen.fade-out {
  animation: bootFadeOut 400ms var(--ease-in) forwards;
}

.boot-skip {
  position: fixed;
  bottom: var(--sp-8);
  right: var(--sp-8);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-muted);
  z-index: calc(var(--z-boot) + 1);
  cursor: pointer;
  background: none;
  border: none;
  padding: var(--sp-2) var(--sp-3);
  transition: color 160ms ease-out;
}

.boot-skip:hover {
  color: var(--text-secondary);
}

.boot-skip[hidden] {
  display: none;
}

/* Boot keyframes */
@keyframes bootLineIn {
  from {
    opacity: 0;
    transform: translateY(4px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes cursorBlink {
  0%, 49%   { opacity: 1; }
  50%, 100% { opacity: 0; }
}

@keyframes bootFadeOut {
  from { opacity: 1; }
  to   { opacity: 0; }
}


/* ==========================================================================
   4. Desktop
   ========================================================================== */

.desktop {
  position: fixed;
  inset: 0;
  background: #080a14;
  overflow: hidden;
  z-index: var(--z-desktop);
  opacity: 0;
}

.desktop.visible {
  animation: desktopFadeIn 800ms ease-out forwards;
}

.desktop.skip-animation {
  opacity: 1;
  animation: none;
}

/* Subtle ambient blue glow + scan effect */
.desktop::after {
  content: '';
  position: fixed;
  inset: 0;
  background:
    radial-gradient(ellipse at 50% 50%, rgba(0, 60, 180, 0.10) 0%, transparent 70%),
    linear-gradient(
      180deg,
      transparent 0%,
      rgba(0, 136, 255, 0.03) 50%,
      transparent 100%
    );
  background-size: 100% 100%, 100% 200%;
  animation: ambientScan 8s ease-in-out infinite;
  pointer-events: none;
  z-index: 0;
}

@keyframes ambientScan {
  0%, 100% { background-position: 0% 0%, 0% 0%; }
  50%      { background-position: 0% 0%, 0% 100%; }
}

@keyframes desktopFadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Desktop watermark — animated RISK logo */
.desktop-watermark {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-family: var(--font-mono);
  font-size: clamp(4rem, 10vw, 10rem);
  font-weight: 800;
  color: rgba(0, 136, 255, 0.06);
  letter-spacing: 0.15em;
  white-space: nowrap;
  pointer-events: none;
  user-select: none;
  z-index: 0;
  text-shadow:
    0 0 40px rgba(0, 136, 255, 0.08),
    0 0 80px rgba(0, 136, 255, 0.04);
  animation: watermarkPulse 6s ease-in-out infinite;
}

@keyframes watermarkPulse {
  0%, 100% {
    color: rgba(0, 136, 255, 0.06);
    text-shadow:
      0 0 40px rgba(0, 136, 255, 0.08),
      0 0 80px rgba(0, 136, 255, 0.04);
  }
  50% {
    color: rgba(0, 136, 255, 0.12);
    text-shadow:
      0 0 60px rgba(0, 136, 255, 0.15),
      0 0 120px rgba(0, 136, 255, 0.06);
  }
}


/* ==========================================================================
   5. Desktop Icons
   ========================================================================== */

.icon-grid {
  position: absolute;
  top: 48px;
  left: 48px;
  right: 48px;
  display: grid;
  grid-template-columns: repeat(auto-fill, 120px);
  grid-auto-rows: 120px;
  gap: 8px;
  justify-content: start;
  align-content: start;
  z-index: 1;
}

.desktop-icon {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--sp-2);
  cursor: pointer;
  width: 88px;
  height: 100px;
  justify-self: center;
  align-self: center;
  border-radius: 12px;
  transition: transform 180ms ease-out,
              color 180ms ease-out,
              background-color 180ms ease-out,
              box-shadow 180ms ease-out;
  background: transparent;
  border: none;
  padding: var(--sp-2);
  /* Start hidden for stagger animation */
  opacity: 0;
}

.desktop-icon.appear {
  animation: iconAppear 300ms ease-out forwards;
}

.desktop-icon.skip-animation {
  opacity: 1;
  animation: none;
}

.desktop-icon:hover {
  transform: translateY(-2px);
  background-color: var(--accent-muted);
  box-shadow: 0 4px 16px rgba(0, 136, 255, 0.12);
}

/* Keyboard focus for desktop icons */
.desktop-icon:focus-visible {
  box-shadow: inset 0 0 0 2px var(--accent), 0 0 12px rgba(0, 136, 255, 0.3);
  background-color: var(--accent-muted);
}

/* Press state */
.desktop-icon.pressing {
  transform: scale(0.95);
  transition: transform 80ms ease-out;
}

.desktop-icon:hover .icon-visual {
  color: var(--accent);
}

.desktop-icon:hover .icon-label {
  color: var(--text-primary);
}

.desktop-icon:active {
  transform: translateY(0);
  transition-duration: 80ms;
}

.desktop-icon:active .icon-visual {
  color: var(--accent-active);
}

.icon-visual {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  transition: color 180ms ease-out;
  font-size: 40px;
}

.icon-visual--img {
  border-radius: 10px;
  overflow: hidden;
}

.icon-image {
  width: 40px;
  height: 40px;
  object-fit: cover;
  border-radius: 10px;
}

.icon-label {
  font-family: var(--font-sans);
  font-size: 0.6875rem; /* 11px */
  font-weight: 500;
  line-height: 1.3;
  letter-spacing: 0.01em;
  color: var(--text-secondary);
  text-align: center;
  max-width: 88px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  transition: color 180ms ease-out;
}

@keyframes iconAppear {
  from {
    opacity: 0;
    transform: scale(0.8) translateY(8px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}


/* ==========================================================================
   6. Dock / Taskbar
   ========================================================================== */

.dock {
  position: fixed;
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 4px;
  padding: var(--sp-2) var(--sp-4);
  background: rgba(18, 18, 26, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border-default);
  border-radius: 14px;
  z-index: var(--z-dock);
  opacity: 0;
  transition: opacity 300ms ease-out;
}

.dock.visible {
  opacity: 1;
}

.dock.skip-animation {
  opacity: 1;
}

.dock-brand {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--text-secondary);
  letter-spacing: 0.04em;
  padding: 0 var(--sp-3);
  white-space: nowrap;
}

.dock-divider {
  width: 1px;
  height: 20px;
  background: var(--border-default);
  margin: 0 var(--sp-2);
}

.dock-links {
  display: flex;
  align-items: center;
  gap: 2px;
}

.dock-item {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  border-radius: 8px;
  transition: color 140ms ease-out, transform 140ms ease-out, background-color 140ms ease-out;
  cursor: pointer;
  background: none;
  border: none;
  font-size: 20px;
  position: relative;
  text-decoration: none;
}

.dock-item:hover {
  color: var(--text-primary);
  transform: scale(1.15);
  background-color: var(--accent-muted);
}

.dock-item:active {
  transform: scale(1.05);
}

/* Tooltip */
.dock-item[data-tooltip]::before {
  content: attr(data-tooltip);
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(-8px);
  font-family: var(--font-sans);
  font-size: 0.6875rem;
  font-weight: 500;
  color: var(--text-primary);
  background: var(--bg-secondary);
  border: 1px solid var(--border-default);
  border-radius: 6px;
  padding: 4px 8px;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 140ms ease-out, transform 140ms ease-out;
}

.dock-item[data-tooltip]:hover::before {
  opacity: 1;
  transform: translateX(-50%) translateY(-12px);
}

/* Locked desktop icons (before welcome CTA click) */
.icons-locked .desktop-icon {
  opacity: 0.35;
  pointer-events: none;
  filter: grayscale(0.5);
  transition: opacity 0.4s ease, filter 0.4s ease;
}

/* Disabled dock items (coming soon) */
.dock-item--disabled {
  opacity: 0.25;
  cursor: not-allowed;
  pointer-events: none;
}

.dock-clock {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--text-muted);
  padding: 0 var(--sp-3);
  white-space: nowrap;
  min-width: 48px;
  text-align: center;
}


/* ==========================================================================
   7. Overlay
   ========================================================================== */

.modal-overlay {
  position: fixed;
  inset: 0;
  background: var(--bg-overlay);
  z-index: var(--z-overlay);
  cursor: pointer;
}

.modal-overlay.no-dismiss {
  cursor: default;
}

.modal-overlay[hidden] {
  display: none;
}

.modal-overlay.overlay-enter {
  animation: overlayIn 200ms ease-out forwards;
}

.modal-overlay.overlay-exit {
  animation: overlayOut 180ms var(--ease-in) forwards;
}

@keyframes overlayIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

@keyframes overlayOut {
  from { opacity: 1; }
  to   { opacity: 0; }
}


/* ==========================================================================
   8. Modal Windows
   ========================================================================== */

.modal-window {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 640px;
  max-width: 90vw;
  max-height: 80vh;
  z-index: var(--z-modal);
  border-radius: 12px;
  border: 1px solid var(--border-modal);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.5), 0 8px 24px rgba(0, 0, 0, 0.3);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

/* Brand gradient top border on modals */
.modal-window::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--gradient-brand);
  border-radius: 12px 12px 0 0;
  z-index: 1;
}

.modal-window[hidden] {
  display: none;
}

.modal-window.modal-enter {
  animation: modalIn 280ms var(--ease-out-spring) forwards;
}

.modal-window.modal-exit {
  animation: modalOut 180ms var(--ease-in) forwards;
}

@keyframes modalIn {
  from {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.92) translateY(12px);
  }
  to {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1) translateY(0);
  }
}

@keyframes modalOut {
  from {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1) translateY(0);
  }
  to {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.96) translateY(8px);
  }
}

/* Title Bar */
.modal-titlebar {
  height: 44px;
  min-height: 44px;
  background: var(--bg-modal-titlebar);
  border-bottom: 1px solid var(--border-default);
  border-radius: 12px 12px 0 0;
  padding: 0 16px;
  display: flex;
  align-items: center;
  position: relative;
  flex-shrink: 0;
}

.window-dots {
  display: flex;
  align-items: center;
  gap: 8px;
  z-index: 1;
}

.window-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: none;
  cursor: default;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.15);
  transition: filter 140ms ease-out, transform 140ms ease-out;
  padding: 0;
  background: none;
}

.window-dot--close {
  background-color: var(--dot-close);
  cursor: pointer;
}

.window-dot--close:hover {
  filter: brightness(1.2);
  transform: scale(1.1);
}

.window-dot--close:active {
  filter: brightness(1.4);
  transform: scale(0.95);
}

.window-dot--minimize {
  background-color: var(--dot-minimize);
}

.window-dot--maximize {
  background-color: var(--dot-maximize);
}

.modal-title {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  font-family: var(--font-mono);
  font-size: 0.8125rem; /* 13px */
  font-weight: 500;
  color: var(--text-secondary);
}

/* Window Body */
.modal-body {
  background: var(--bg-modal);
  padding: var(--sp-8);
  overflow-y: auto;
  flex: 1;
  border-radius: 0 0 12px 12px;
}


/* ==========================================================================
   9. Window Content — Welcome
   ========================================================================== */

.welcome-content {
  text-align: center;
  padding: var(--sp-8) 0;
}

/* RISK Logo in welcome window */
.welcome-logo {
  width: 80px;
  height: 80px;
  margin: 0 auto var(--sp-6);
  border-radius: 16px;
  overflow: hidden;
  position: relative;
}

.risk-logo-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 16px;
}

.risk-logo-fallback {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 16px;
  position: absolute;
  inset: 0;
}

/* Fallback layered behind video — shows if video can't play */
.risk-logo-video.playing + .risk-logo-fallback {
  opacity: 0;
}

.risk-logo-fallback {
  transition: opacity 300ms ease-out;
}

.welcome-headline {
  font-family: var(--font-mono);
  font-size: 2.5rem;
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.03em;
  color: var(--text-primary);
  margin-bottom: var(--sp-4);
}

.welcome-tagline {
  font-family: var(--font-sans);
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.6;
  color: var(--text-secondary);
  margin-bottom: var(--sp-3);
  max-width: 460px;
  margin-left: auto;
  margin-right: auto;
}

.welcome-subtext {
  font-family: var(--font-mono);
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-muted);
  margin-bottom: var(--sp-8);
}

.welcome-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-4);
  flex-wrap: wrap;
}


/* ==========================================================================
   10. Window Content — Project Detail (dynamic)
   ========================================================================== */

.project-detail {
  padding: var(--sp-4) 0;
}

.project-detail-header {
  display: flex;
  align-items: center;
  gap: var(--sp-5);
  margin-bottom: var(--sp-6);
}

.project-detail-logo {
  width: 56px;
  height: 56px;
  border-radius: 12px;
  overflow: hidden;
  flex-shrink: 0;
  background: var(--bg-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border-default);
}

.project-detail-logo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.project-detail-logo i {
  font-size: 28px;
  color: var(--accent);
}

.project-detail-name {
  font-family: var(--font-mono);
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: var(--text-primary);
}

.project-detail-tagline {
  font-family: var(--font-sans);
  font-size: 0.875rem;
  font-weight: 400;
  line-height: 1.5;
  color: var(--text-muted);
  margin-top: var(--sp-1);
}

.project-detail-desc {
  font-family: var(--font-sans);
  font-size: 0.9375rem;
  font-weight: 400;
  line-height: 1.65;
  color: var(--text-secondary);
  margin-bottom: var(--sp-6);
}

.project-detail-desc p {
  margin: 0 0 var(--sp-3) 0;
}

.project-detail-desc p:last-child {
  margin-bottom: 0;
}

.project-detail-status {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--accent);
  background: var(--accent-muted);
  padding: 6px 12px;
  border-radius: 6px;
  margin-bottom: var(--sp-6);
}

.project-detail-status::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  animation: statusPulse 2s ease-in-out infinite;
}

@keyframes statusPulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

.project-detail-actions {
  display: flex;
  gap: var(--sp-3);
  flex-wrap: wrap;
}


/* ==========================================================================
   11. Window Content — About
   ========================================================================== */

.about-text {
  font-family: var(--font-sans);
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.6;
  color: var(--text-secondary);
  margin-bottom: var(--sp-8);
}

.about-values-heading {
  font-family: var(--font-mono);
  font-size: 1.25rem;
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: -0.01em;
  color: var(--text-primary);
  margin-bottom: var(--sp-4);
}

.values-list {
  list-style: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
}

.values-list li {
  font-family: var(--font-mono);
  font-size: 0.875rem;
  font-weight: 500;
  line-height: 1.5;
  color: var(--text-secondary);
  padding-left: var(--sp-6);
  position: relative;
}

.values-list li::before {
  content: '>';
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: 700;
}


/* ==========================================================================
   12. Window Content — Contact
   ========================================================================== */

.contact-intro {
  font-family: var(--font-sans);
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.6;
  color: var(--text-secondary);
  margin-bottom: var(--sp-8);
}

.form-group {
  margin-bottom: var(--sp-6);
}

.form-group label {
  display: block;
  font-family: var(--font-sans);
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-secondary);
  margin-bottom: var(--sp-2);
}

.form-group input,
.form-group textarea {
  width: 100%;
  height: 48px;
  background: var(--bg-input);
  border: 1px solid var(--border-default);
  border-radius: 8px;
  padding: 12px 16px;
  font-family: var(--font-sans);
  font-size: 1rem; /* 16px — prevents iOS zoom */
  font-weight: 400;
  color: var(--text-primary);
  transition: border-color 160ms ease-out, box-shadow 160ms ease-out;
}

.form-group textarea {
  height: 140px;
  resize: vertical;
  min-height: 100px;
  max-height: 300px;
  line-height: 1.5;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--text-muted);
  font-style: normal;
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--border-focus);
  box-shadow: 0 0 0 3px var(--accent-glow);
  outline: none;
}

/* Validation error state */
.form-group input.field-error,
.form-group textarea.field-error {
  border-color: var(--error);
  box-shadow: 0 0 0 3px rgba(255, 59, 92, 0.15);
}

.field-error-message {
  display: block;
  font-family: var(--font-sans);
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--error);
  margin-top: 8px;
}

/* Form banners (success/error) */
.form-banner {
  border-radius: 8px;
  padding: var(--sp-4);
  font-family: var(--font-mono);
  font-size: 0.875rem;
  line-height: 1.5;
  margin-bottom: var(--sp-6);
  white-space: pre-line;
}

.form-success {
  background: var(--success-bg);
  border: 1px solid rgba(0, 229, 122, 0.25);
  color: var(--success);
}

.form-error {
  background: var(--error-bg);
  border: 1px solid rgba(255, 59, 92, 0.25);
  color: var(--error);
}

.form-submit-row {
  margin-top: var(--sp-8);
}


/* ==========================================================================
   13. Buttons
   ========================================================================== */

.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-2);
  background: var(--accent);
  color: var(--text-on-accent);
  font-family: var(--font-mono);
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 12px 24px;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  transition: background-color 160ms ease-out,
              box-shadow 160ms ease-out,
              transform 160ms ease-out;
  white-space: nowrap;
}

.btn-primary:hover {
  background: var(--accent-hover);
  box-shadow: 0 0 16px rgba(0, 136, 255, 0.25), 0 0 32px rgba(0, 136, 255, 0.08);
  transform: translateY(-1px);
}

.btn-primary:active {
  background: var(--accent-active);
  box-shadow: none;
  transform: translateY(0);
  transition-duration: 80ms;
}

.btn-primary:disabled {
  opacity: 0.4;
  pointer-events: none;
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-2);
  background: transparent;
  color: var(--text-primary);
  font-family: var(--font-mono);
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 12px 24px;
  border-radius: 8px;
  border: 1px solid var(--border-default);
  cursor: pointer;
  transition: all 160ms ease-out;
  white-space: nowrap;
}

.btn-secondary:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: rgba(0, 136, 255, 0.08);
}

.btn-secondary:active {
  border-color: var(--accent-active);
  color: var(--accent-active);
}

.btn-text {
  background: none;
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: 0.875rem;
  font-weight: 500;
  padding: 4px 0;
  border: none;
  border-bottom: 1px solid transparent;
  cursor: pointer;
  transition: border-color 160ms ease-out, color 160ms ease-out;
}

.btn-text:hover {
  border-bottom-color: var(--accent);
  color: var(--accent-hover);
}

.btn-text:active {
  color: var(--accent-active);
}


/* ==========================================================================
   14a. Atmosphere — Video Background
   ========================================================================== */

.bg-video {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  object-fit: cover;
  z-index: 0;
  pointer-events: none;
  opacity: 0.06;
  filter: saturate(0.3) brightness(0.5);
}

/* ==========================================================================
   14b. Atmosphere — Canvas Background
   ========================================================================== */

.bg-canvas {
  position: fixed;
  inset: 0;
  z-index: var(--z-canvas);
  pointer-events: none;
  opacity: 0.6;
}

/* ==========================================================================
   15. Atmosphere — Scanlines Overlay
   ========================================================================== */

.scanlines {
  position: fixed;
  inset: 0;
  z-index: var(--z-scanlines);
  pointer-events: none;
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 2px,
    rgba(0, 0, 0, 0.03) 2px,
    rgba(0, 0, 0, 0.03) 4px
  );
  mix-blend-mode: multiply;
}

/* ==========================================================================
   16. Atmosphere — Vignette Overlay
   ========================================================================== */

.vignette {
  position: fixed;
  inset: 0;
  z-index: var(--z-vignette);
  pointer-events: none;
  background: radial-gradient(
    ellipse at center,
    transparent 50%,
    rgba(0, 0, 0, 0.4) 100%
  );
}

/* ==========================================================================
   17. ACCESS GRANTED Screen
   ========================================================================== */

.access-granted {
  position: fixed;
  inset: 0;
  z-index: var(--z-access);
  background: var(--bg-boot);
  display: flex;
  align-items: center;
  justify-content: center;
}

.access-granted[hidden] {
  display: none;
}

.access-granted-inner {
  text-align: center;
  animation: accessPulseIn 600ms var(--ease-out-spring) forwards;
}

.access-granted-icon {
  font-size: 48px;
  color: #0088FF;
  margin-bottom: var(--sp-4);
  filter: drop-shadow(0 0 20px rgba(0, 136, 255, 0.5));
}

.access-granted-text {
  font-family: var(--font-mono);
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  background: var(--gradient-brand);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  filter: drop-shadow(0 0 30px rgba(0, 100, 255, 0.4)) drop-shadow(0 0 60px rgba(0, 136, 255, 0.15));
  margin-bottom: var(--sp-2);
}

.access-granted-sub {
  font-family: var(--font-mono);
  font-size: 0.875rem;
  font-weight: 400;
  color: var(--text-muted);
  letter-spacing: 0.05em;
}

.access-granted.fade-out {
  animation: accessFadeOut 500ms var(--ease-in) forwards;
}

@keyframes accessPulseIn {
  0% {
    opacity: 0;
    transform: scale(0.9);
  }
  50% {
    opacity: 1;
    transform: scale(1.02);
  }
  100% {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes accessFadeOut {
  from { opacity: 1; }
  to { opacity: 0; }
}

/* ==========================================================================
   18. Classified Badges & Labels
   ========================================================================== */

.classified-badge {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.625rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--classified-red);
  background: var(--classified-red-muted);
  border: 1px solid rgba(255, 59, 92, 0.3);
  padding: 2px 8px;
  border-radius: 3px;
  line-height: 1.4;
}

.classified-label {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  font-weight: 400;
  color: var(--text-muted);
  letter-spacing: 0.02em;
}

.desktop-classification {
  position: absolute;
  top: 16px;
  right: 20px;
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  z-index: 1;
  opacity: 0;
  transition: opacity 800ms ease-out;
}

.desktop.visible .desktop-classification {
  opacity: 1;
}

/* Modal classification label */
.modal-classification {
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  font-family: var(--font-mono);
  font-size: 0.5625rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  background: var(--accent-muted);
  border: 1px solid rgba(0, 136, 255, 0.2);
  padding: 2px 6px;
  border-radius: 3px;
}

.modal-classification--red {
  color: var(--classified-red);
  background: var(--classified-red-muted);
  border-color: rgba(255, 59, 92, 0.3);
}


/* ==========================================================================
   20. Icon Status Dots
   ========================================================================== */

.icon-status-dot {
  position: absolute;
  top: 8px;
  right: 12px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--text-muted);
  z-index: 1;
}

.icon-status-dot--active {
  background: var(--accent);
  box-shadow: 0 0 6px rgba(0, 136, 255, 0.6);
  animation: statusPulse 2s ease-in-out infinite;
}

.desktop-icon {
  position: relative;
}

/* ==========================================================================
   21. Dock Secure Indicator
   ========================================================================== */

.dock-secure-indicator {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  padding: 0 var(--sp-3);
}

.secure-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 6px rgba(0, 136, 255, 0.6);
  animation: statusPulse 2s ease-in-out infinite;
}

.dock-brand {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  font-weight: 600;
  color: var(--text-muted);
  letter-spacing: 0.06em;
  white-space: nowrap;
}

/* ==========================================================================
   22. About — Classified Stamp
   ========================================================================== */

.about-footer {
  margin-top: var(--sp-10);
  padding-top: var(--sp-6);
  border-top: 1px solid var(--border-default);
  text-align: center;
}

.classified-stamp {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--classified-red);
  opacity: 0.55;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

/* ==========================================================================
   23. Boot Progress Bar (verification)
   ========================================================================== */

.boot-progress {
  font-family: var(--font-mono);
  font-size: 0.9375rem;
  font-weight: 400;
  line-height: 1.5;
  color: var(--text-boot);
  opacity: 0;
  transform: translateY(4px);
  white-space: pre;
}

.boot-progress.visible {
  animation: bootLineIn 120ms ease-out forwards;
}

.boot-progress-bar {
  color: var(--accent);
}

/* ==========================================================================
   24. Stats Widget
   ========================================================================== */

.stats-widget {
  position: absolute;
  bottom: 80px;
  right: 20px;
  background: rgba(10, 10, 15, 0.7);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid var(--border-default);
  border-radius: 10px;
  padding: 12px 16px;
  z-index: 1;
  opacity: 0;
  transition: opacity 600ms ease-out;
  min-width: 140px;
}

.desktop.visible .stats-widget {
  opacity: 1;
}

.stats-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--sp-4);
  padding: 3px 0;
}

.stats-label {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 500;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.stats-value {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  font-weight: 600;
  color: var(--text-secondary);
}

.stats-value--active {
  color: var(--success);
}

/* ==========================================================================
   25. Notification Toast
   ========================================================================== */

.notification {
  position: fixed;
  bottom: 80px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  background: rgba(18, 18, 26, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border-default);
  border-radius: 10px;
  padding: 12px 20px;
  z-index: 200;
  opacity: 0;
  cursor: pointer;
  transition: opacity 400ms ease-out, transform 400ms ease-out, background-color 200ms ease-out;
}

.notification:hover {
  background: rgba(18, 18, 26, 0.97);
  border-color: var(--border-hover);
}

.notification[hidden] {
  display: none;
}

.notification.visible {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.notification.exit {
  opacity: 0;
  transform: translateX(-50%) translateY(20px);
}

.notification-icon {
  font-size: 16px;
  color: var(--accent);
}

.notification-text {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--text-secondary);
  white-space: nowrap;
}

/* ==========================================================================
   26. Arch Linux Boot — systemd-style
   ========================================================================== */

.boot-line-systemd {
  font-family: var(--font-mono);
  font-size: 0.875rem;
  font-weight: 400;
  line-height: 1.7;
  color: var(--text-primary);
  opacity: 0;
  transform: translateY(2px);
  white-space: pre;
  display: flex;
  align-items: center;
  gap: 0;
}

.boot-line-systemd.visible {
  animation: bootLineIn 80ms ease-out forwards;
}

.boot-badge {
  display: inline-block;
  min-width: 48px;
  text-align: center;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0 6px;
  margin-right: 10px;
  border-radius: 2px;
  flex-shrink: 0;
}

.boot-badge--ok {
  color: #000;
  background: var(--success);
}

.boot-badge--fail {
  color: #fff;
  background: var(--error);
}

.boot-badge--info {
  color: var(--text-boot);
  background: transparent;
  border: 1px solid var(--text-boot);
  font-weight: 500;
  font-size: 0.6875rem;
}

.boot-line-plain {
  color: var(--text-secondary);
}

.boot-line-accent {
  color: var(--text-boot);
}

.boot-line-bold {
  color: var(--text-primary);
  font-weight: 700;
}

/* ==========================================================================
   27. Typing Cursor
   ========================================================================== */

.typing-cursor::after {
  content: '|';
  color: var(--accent);
  animation: cursorBlink 1.06s step-end infinite;
  margin-left: 1px;
}

/* ==========================================================================
   28. Encrypted Text Reveal
   ========================================================================== */

.decrypt-text {
  font-family: var(--font-mono);
  display: inline;
}

/* ==========================================================================
   29. Mobile Header (below 768px)
   ========================================================================== */

.mobile-header {
  display: none;
}

.mobile-header-inner {
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 16px;
  background: var(--bg-secondary);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-default);
}

.dock-clock-mobile {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--text-muted);
}

.mobile-header-brand {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 0.875rem;
  color: var(--text-primary);
  letter-spacing: 0.04em;
}


/* ==========================================================================
   15. Mobile Bottom Sheet
   ========================================================================== */

/* Sheet animation on mobile */
@keyframes sheetSlideUp {
  from { transform: translateY(100%); }
  to   { transform: translateY(0); }
}

@keyframes sheetSlideDown {
  from { transform: translateY(0); }
  to   { transform: translateY(100%); }
}


/* ==========================================================================
   16. Responsive — Mobile (< 768px)
   ========================================================================== */

@media (max-width: 767px) {
  body {
    overflow: auto;
    height: auto;
    /* Respect iPhone notch / dynamic island */
    padding-top: env(safe-area-inset-top, 0);
    padding-bottom: env(safe-area-inset-bottom, 0);
  }

  .mobile-header {
    display: block;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 200;
    padding-top: env(safe-area-inset-top, 0);
  }

  .desktop {
    position: relative;
    min-height: 100vh;
    min-height: 100dvh;
    padding-top: calc(48px + env(safe-area-inset-top, 0));
    padding-bottom: calc(72px + env(safe-area-inset-bottom, 0));
  }

  .desktop-watermark {
    display: none;
  }

  .desktop::after {
    display: none;
  }

  /* Icons — iOS-style list rows */
  .icon-grid {
    position: relative;
    top: auto;
    left: auto;
    right: auto;
    display: flex;
    flex-direction: column;
    gap: 0;
    padding: 0;
  }

  .desktop-icon {
    flex-direction: row;
    width: 100%;
    height: 56px;
    min-height: 56px;
    padding: 0 20px;
    gap: var(--sp-4);
    border-radius: 0;
    justify-content: flex-start;
    border-bottom: 1px solid var(--border-default);
    -webkit-tap-highlight-color: transparent;
  }

  .desktop-icon:hover {
    transform: none;
    background-color: var(--accent-muted);
  }

  .desktop-icon:active {
    transform: none;
    background-color: var(--accent-muted);
  }

  .icon-visual {
    width: 28px;
    height: 28px;
    font-size: 28px;
    flex-shrink: 0;
  }

  .icon-label {
    font-family: var(--font-sans);
    font-size: 1rem;
    font-weight: 400;
    color: var(--text-primary);
    max-width: none;
  }

  /* Dock — fixed bottom bar */
  .dock {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    transform: none;
    border-radius: 0;
    border-left: none;
    border-right: none;
    border-bottom: none;
    justify-content: center;
    background: rgba(18, 18, 26, 0.97);
    padding-bottom: env(safe-area-inset-bottom, 0);
    -webkit-backdrop-filter: blur(20px);
    backdrop-filter: blur(20px);
  }

  /* Modal — iOS bottom sheet */
  .modal-window {
    position: fixed;
    top: auto;
    bottom: 0;
    left: 0;
    right: 0;
    transform: none;
    width: 100%;
    max-width: 100%;
    max-height: 90vh;
    max-height: 90dvh;
    border-radius: 16px 16px 0 0;
    border-bottom: none;
  }

  .modal-window.modal-enter {
    animation: sheetSlideUp 300ms var(--ease-out-spring) forwards;
  }

  .modal-window.modal-exit {
    animation: sheetSlideDown 220ms var(--ease-in) forwards;
  }

  .modal-titlebar {
    border-radius: 16px 16px 0 0;
    justify-content: center;
    position: relative;
    flex-shrink: 0;
    padding-top: 20px;
  }

  /* Drag handle */
  .modal-titlebar::before {
    content: '';
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 5px;
    background: var(--text-secondary);
    border-radius: 3px;
  }

  /* Hide traffic light dots on mobile — use drag-down or overlay instead */
  .window-dots {
    display: none;
  }

  .modal-body {
    border-radius: 0;
    padding: var(--sp-5) var(--sp-5) var(--sp-8);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    padding-bottom: calc(var(--sp-8) + env(safe-area-inset-bottom, 0));
  }

  /* Welcome — tighter layout for mobile */
  .welcome-content {
    padding: var(--sp-4) 0 var(--sp-2);
  }

  .welcome-logo {
    width: 64px;
    height: 64px;
    margin-bottom: var(--sp-4);
  }

  .welcome-headline {
    font-size: 1.75rem;
    margin-bottom: var(--sp-3);
  }

  .welcome-tagline {
    font-size: 0.9rem;
    margin-bottom: var(--sp-2);
  }

  .welcome-subtext {
    font-size: 0.8rem;
    margin-bottom: var(--sp-6);
  }

  .welcome-actions {
    flex-direction: column;
    gap: var(--sp-3);
    width: 100%;
  }

  .welcome-actions .btn-primary,
  .welcome-actions .btn-secondary {
    width: 100%;
    justify-content: center;
    min-height: 48px;
    font-size: 0.9rem;
  }

  /* Contact form — prevent iOS zoom on focus */
  .contact-intro {
    font-size: 0.9rem;
    margin-bottom: var(--sp-6);
  }

  .form-group input,
  .form-group textarea {
    font-size: 16px; /* prevents iOS auto-zoom */
    height: 48px;
    padding: 12px 14px;
    border-radius: 10px;
  }

  .form-group textarea {
    height: 110px;
    min-height: 80px;
    max-height: 200px;
  }

  .form-group label {
    font-size: 0.8rem;
    margin-bottom: 6px;
  }

  .form-submit-row {
    margin-top: var(--sp-6);
  }

  .form-submit-row .btn-primary {
    width: 100%;
    min-height: 48px;
    font-size: 0.9rem;
  }

  /* About modal */
  .about-text {
    font-size: 0.9rem;
  }

  .values-list li {
    font-size: 0.85rem;
  }

  /* Project modal */
  .project-detail-header {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: var(--sp-3);
  }

  .project-detail-desc {
    font-size: 0.85rem;
  }

  /* Buttons — iOS-style touch targets */
  .btn-primary,
  .btn-secondary {
    min-height: 44px;
    -webkit-tap-highlight-color: transparent;
  }

  .btn-primary:hover {
    transform: none;
    box-shadow: none;
  }

  /* Notification toast — bottom positioned, override desktop centering */
  .notification {
    top: auto;
    bottom: calc(72px + env(safe-area-inset-bottom, 0));
    left: var(--sp-4);
    right: var(--sp-4);
    max-width: none;
    transform: translateY(20px);
  }

  .notification.visible {
    transform: translateY(0);
  }

  .notification.exit {
    transform: translateY(20px);
  }

  .desktop-classification { display: none; }
  .scanlines { display: none; }
  .icon-status-dot { display: none; }
  .stats-widget { display: none; }
  .bg-video { display: none; }

  /* Boot screen */
  .boot-screen {
    padding: var(--sp-4);
    padding-top: calc(var(--sp-4) + env(safe-area-inset-top, 0));
  }

  .boot-skip {
    min-width: 44px;
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  /* Access granted screen */
  .access-granted-icon i {
    font-size: 3rem;
  }

  .access-granted-text {
    font-size: 1.25rem;
  }

  /* Remove native input styling on iOS */
  .form-group input,
  .form-group textarea {
    -webkit-appearance: none;
    appearance: none;
  }
}

/* Small phones — iPhone SE (375px), small Android (360px) */
@media (max-width: 375px) {
  .desktop-icon {
    height: 52px;
    min-height: 52px;
    padding: 0 16px;
  }

  .icon-label {
    font-size: 0.9rem;
  }

  .mobile-header-inner {
    padding: 0 12px;
  }

  .classified-badge {
    font-size: 0.55rem;
    padding: 2px 6px;
  }

  .modal-body {
    padding: var(--sp-4) var(--sp-4) calc(var(--sp-6) + env(safe-area-inset-bottom, 0));
  }

  .welcome-headline {
    font-size: 1.5rem;
    line-height: 1.2;
  }

  .welcome-tagline {
    font-size: 0.85rem;
  }

  .welcome-subtext {
    font-size: 0.75rem;
  }

  .welcome-logo {
    width: 56px;
    height: 56px;
  }

  .form-group label {
    font-size: 0.85rem;
  }

  .form-group textarea {
    height: 90px;
    min-height: 70px;
    max-height: 150px;
  }

  .contact-intro {
    font-size: 0.85rem;
  }

  .project-detail-name {
    font-size: 1.25rem;
  }

  .project-detail-logo {
    width: 48px;
    height: 48px;
  }

  .notification {
    left: 8px;
    right: 8px;
    padding: 10px 14px;
  }

  .notification-text {
    font-size: 0.7rem;
  }

  .dock {
    gap: 2px;
  }
}

/* Landscape on phones — tight vertical space */
@media (max-height: 500px) and (max-width: 900px) {
  .modal-window {
    max-height: 95vh;
    max-height: 95dvh;
  }

  .modal-body {
    padding: var(--sp-3) var(--sp-4);
  }

  .welcome-content {
    padding: var(--sp-2) 0;
  }

  .welcome-logo {
    width: 40px;
    height: 40px;
    margin-bottom: var(--sp-2);
  }

  .welcome-headline {
    font-size: 1.25rem;
    margin-bottom: var(--sp-2);
  }

  .welcome-tagline,
  .welcome-subtext {
    font-size: 0.8rem;
    margin-bottom: var(--sp-2);
  }

  .welcome-actions {
    flex-direction: row;
    gap: var(--sp-3);
  }

  .welcome-actions .btn-primary,
  .welcome-actions .btn-secondary {
    width: auto;
    min-height: 40px;
    padding: 8px 20px;
    font-size: 0.8rem;
  }

  .form-group textarea {
    height: 60px;
    min-height: 50px;
  }
}

/* Tablet (768px - 1023px) */
@media (min-width: 768px) and (max-width: 1023px) {
  .icon-grid {
    grid-template-columns: repeat(3, 120px);
  }

  .modal-window {
    max-width: 640px;
    width: 90vw;
    max-height: 85vh;
  }
}


/* ==========================================================================
   17. prefers-reduced-motion
   ========================================================================== */

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}


/* ==========================================================================
   18. Utility Classes
   ========================================================================== */

.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;
}
