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

    :root {
      --accent: #b07d4a;
      --accent-dim: rgba(176, 125, 74, 0.14);
      --accent-border: rgba(176, 125, 74, 0.32);
      --text: #fff;
      --muted: rgba(255, 255, 255, 0.45);
      --card-bg: rgba(255, 255, 255, 0.05);
      --card-border: rgba(255, 255, 255, 0.10);
      --bg: #0f0d0b;
      --r: 11px;
    }

    html {
      height: 100%;
      scroll-behavior: smooth
    }

    body {
      background: var(--bg);
      color: var(--text);
      font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
      min-height: 100%;
      display: flex;
      flex-direction: column;
      -webkit-font-smoothing: antialiased;
    }

    .hero {
      position: relative;
      width: 100%;
      height: 100svh;
      min-height: 500px;
      overflow: hidden;
      display: flex;
      align-items: center;
      background-image: url('https://img.photozonegraphy.com/assets/404_page_image.webp');
      background-size: cover;
      background-position: center;
      background-repeat: no-repeat;
    }

    .hero-overlay {
      position: absolute;
      inset: 0;
      background:
        linear-gradient(90deg, rgba(0, 0, 0, .72) 0%, rgba(0, 0, 0, .42) 55%, rgba(0, 0, 0, .10) 100%),
        linear-gradient(180deg, rgba(0, 0, 0, .18) 0%, transparent 40%, rgba(0, 0, 0, .25) 100%);
      z-index: 1;
    }

    .hero-fade {
      position: absolute;
      bottom: 0;
      left: 0;
      right: 0;
      height: 120px;
      background: linear-gradient(to bottom, transparent, var(--bg));
      z-index: 2;
      pointer-events: none;
    }

    .hero-content {
      position: relative;
      z-index: 3;
      padding: clamp(28px, 7vw, 88px);
      max-width: min(640px, 90vw);
    }

    .eyebrow {
      display: inline-flex;
      align-items: center;
      gap: 10px;
      font-size: 10.5px;
      font-weight: 500;
      letter-spacing: .22em;
      text-transform: uppercase;
      color: var(--accent);
      margin-bottom: 22px;
      opacity: 0;
      animation: up .55s .15s ease-out forwards;
    }

    .eyebrow::before {
      content: '';
      display: block;
      width: 24px;
      height: 1px;
      background: var(--accent);
      flex-shrink: 0;
    }

    .error-num {
      font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;
      font-size: clamp(88px, 20vw, 196px);
      font-weight: 700;
      line-height: 1;
      letter-spacing: -0.01em;
      color: #ffffff;
      opacity: 0;
      animation: up .6s .28s ease-out forwards;
      font-style: normal;
      text-shadow: none;
    }

    .error-heading {
      font-size: clamp(15px, 2.8vw, 22px);
      font-weight: 400;
      font-style: normal;
      color: rgba(255, 255, 255, .70);
      margin-top: 14px;
      margin-bottom: 10px;
      letter-spacing: -.01em;
      opacity: 0;
      animation: up .55s .42s ease-out forwards;
    }

    .error-sub {
      font-size: clamp(13px, 1.8vw, 14.5px);
      font-weight: 300;
      color: rgba(255, 255, 255, .40);
      line-height: 1.78;
      max-width: 380px;
      opacity: 0;
      animation: up .55s .54s ease-out forwards;
    }

    .icon-row {
      display: flex;
      align-items: center;
      gap: 11px;
      margin-top: 28px;
      opacity: 0;
      animation: up .55s .66s ease-out forwards;
    }

    .icon-row span {
      font-size: 10px;
      letter-spacing: .18em;
      text-transform: uppercase;
      color: rgba(255, 255, 255, .25);
    }

    .scroll-hint {
      position: absolute;
      bottom: clamp(20px, 4vw, 40px);
      left: clamp(28px, 7vw, 88px);
      z-index: 3;
      display: flex;
      align-items: center;
      gap: 10px;
      font-size: 10px;
      letter-spacing: .18em;
      text-transform: uppercase;
      color: rgba(255, 255, 255, .25);
      opacity: 0;
      animation: up .55s .9s ease-out forwards;
    }

    .scroll-arrow {
      width: 16px;
      height: 16px;
      border-right: 1px solid rgba(255, 255, 255, .25);
      border-bottom: 1px solid rgba(255, 255, 255, .25);
      transform: rotate(45deg);
      animation: bob 2s 1.4s ease-in-out infinite;
    }

    @keyframes up {
      from {
        opacity: 0;
        transform: translateY(14px)
      }

      to {
        opacity: 1;
        transform: translateY(0)
      }
    }

    @keyframes bob {

      0%,
      100% {
        transform: rotate(45deg) translateY(0)
      }

      50% {
        transform: rotate(45deg) translateY(4px)
      }
    }

    .nav-section {
      background: var(--bg);
      padding: clamp(32px, 5vw, 60px) clamp(20px, 5vw, 60px) clamp(48px, 8vw, 80px);
      display: flex;
      flex-direction: column;
      align-items: center;
    }

    .divider {
      display: flex;
      align-items: center;
      gap: 14px;
      width: 100%;
      max-width: 520px;
      margin-bottom: 28px;
    }

    .divider::before,
    .divider::after {
      content: '';
      flex: 1;
      height: 1px;
      background: rgba(255, 255, 255, .08);
    }

    .divider span {
      font-size: 10px;
      font-weight: 500;
      letter-spacing: .20em;
      text-transform: uppercase;
      color: rgba(255, 255, 255, .22);
      white-space: nowrap;
    }

    .nav-grid {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 9px;
      width: 100%;
      max-width: 520px;
    }

    .nav-card {
      display: flex;
      align-items: center;
      gap: 12px;
      text-decoration: none;
      background: var(--card-bg);
      border: 1px solid var(--card-border);
      border-radius: var(--r);
      padding: 14px 16px;
      transition: background .18s, border-color .18s, transform .14s;
      will-change: transform;
    }

    .nav-card:hover {
      background: rgba(255, 255, 255, .09);
      border-color: rgba(255, 255, 255, .20);
      transform: translateY(-2px);
    }

    .nav-card:active {
      transform: translateY(0)
    }

    .nav-card.wide {
      grid-column: 1/-1;
      border-color: var(--accent-border);
      background: var(--accent-dim);
    }

    .nav-card.wide:hover {
      background: rgba(176, 125, 74, .20);
      border-color: rgba(176, 125, 74, .52);
      transform: translateY(-2px);
    }

    .card-icon {
      width: 34px;
      height: 34px;
      border-radius: 8px;
      background: rgba(176, 125, 74, .12);
      border: 1px solid rgba(176, 125, 74, .16);
      display: flex;
      align-items: center;
      justify-content: center;
      flex-shrink: 0;
    }

    .card-icon svg {
      width: 14px;
      height: 14px;
      stroke: var(--accent);
      fill: none;
      stroke-width: 1.8;
      stroke-linecap: round;
      stroke-linejoin: round;
    }

    .card-text {
      display: flex;
      flex-direction: column;
      gap: 4px
    }

    .card-title {
      font-size: 13px;
      font-weight: 500;
      color: #fff;
      line-height: 1
    }

    .card-desc {
      font-size: 11px;
      color: rgba(255, 255, 255, .38);
      line-height: 1
    }

    @media(max-width:600px) {
      .nav-grid {
        grid-template-columns: 1fr
      }

      .nav-card.wide {
        grid-column: 1
      }

      .hero-overlay {
        background:
          linear-gradient(180deg, rgba(0, 0, 0, .60) 0%, rgba(0, 0, 0, .40) 60%, rgba(0, 0, 0, .15) 100%);
      }
    }

    @media(max-width:360px) {
      .error-num {
        font-size: 76px
      }
    }
    @media(prefers-reduced-motion:reduce) {
      *,
      *::before,
      *::after {
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important
      }
    }
