:root {
    --white: #f8f6fc;
    --paper: #ebe4f5;
    --black: #101014;
    --muted: #6b6474;

    --golden-orange: #f5a524;
    --deep-purple: #241235;
    --lightning-blue: #2f80ff;
    --accent-teal: #0d9488;
    --accent-coral: #e85d4c;
    --accent-lilac: #c4b5fd;

    --radius-lg: 10px;
    --radius-md: 6px;

    --max-width: 1180px;
  }
  
  * {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
  }
  
  body {
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    background:
      radial-gradient(120% 80% at 100% 0%, rgba(196, 181, 253, 0.22) 0%, transparent 55%),
      radial-gradient(90% 70% at 0% 20%, rgba(245, 165, 36, 0.14) 0%, transparent 50%),
      radial-gradient(80% 60% at 80% 100%, rgba(47, 128, 255, 0.1) 0%, transparent 45%),
      var(--white);
    color: var(--black);
    line-height: 1.5;
    position: relative;
    overflow-x: hidden;
  }

  body::before,
  body::after {
    content: "";
    position: absolute;
    pointer-events: none;
    z-index: -1;
    border-radius: 999px;
    filter: blur(80px);
  }

  body::before {
    width: 480px;
    height: 480px;
    top: -140px;
    right: -120px;
    background: rgba(47, 128, 255, 0.18);
  }

  body::after {
    width: 440px;
    height: 440px;
    top: -120px;
    left: -140px;
    background: rgba(245, 165, 36, 0.22);
  }

  @keyframes fadeUp {
    from {
      opacity: 0;
      transform: translateY(18px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }
  
  a {
    color: inherit;
    text-decoration: none;
  }
  
  img {
    max-width: 100%;
    display: block;
  }
  
  .site-header {
    position: sticky;
    top: 0;
    z-index: 120;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    backdrop-filter: none;
    background: transparent;
    border-bottom: none;
  }
  
  .logo {
    display: inline-flex;
    align-items: center;
    color: var(--deep-purple);
    transition: transform 0.25s ease, color 0.25s ease;
  }

  .logo:hover {
    transform: translateY(-2px);
    color: var(--lightning-blue);
  }

  .brand-logo {
    width: 210px;
    height: auto;
    display: block;
  }

  .brand-logo-main {
    fill: currentColor;
    font-family: "Montserrat", sans-serif;
    letter-spacing: 2px;
  }

  .brand-logo-gabriel {
    font-size: 32px;
    font-weight: 700;
  }

  .brand-logo-lausten {
    font-size: 20px;
    font-weight: 200;
    letter-spacing: 1px;
  }

  .brand-logo-rec {
    fill: #ef4444;
  }

  .brand-logo-rec-text {
    fill: #ef4444;
    font-family: "Montserrat", sans-serif;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 1px;
  }
  
  .nav {
    display: flex;
    align-items: center;
    gap: 24px;
    font-size: 14px;
  }
  
  .nav a {
    position: relative;
    color: var(--muted);
    transition: color 0.2s ease, transform 0.2s ease;
  }

  .nav a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -5px;
    width: 100%;
    height: 2px;
    border-radius: 999px;
    background: var(--lightning-blue);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.25s ease;
  }
  
  .nav a:hover {
    color: var(--deep-purple);
    transform: translateY(-1px);
  }

  .nav a:hover::after {
    transform: scaleX(1);
  }

  .nav a.is-active {
    color: var(--deep-purple);
    font-weight: 700;
  }

  .nav a.is-active::after {
    transform: scaleX(1);
    background: var(--golden-orange);
  }
  
  .nav-cta {
    padding: 10px 16px;
    border-radius: 999px;
    background: var(--deep-purple);
    color: var(--white) !important;
  }

  .nav-drawer-backdrop {
    display: none;
  }

  .nav-drawer {
    display: contents;
  }
  
  .hero,
  .page-intro,
  .home-highlight,
  .selected-projects,
  .project-grid,
  .about-layout,
  .project-detail {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 80px 24px;
  }

  .about-page {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 28px 24px 100px;
  }
  
  .hero {
    min-height: 78vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
  }

  .hero-story {
    min-height: 96vh;
    position: relative;
    overflow: visible;
  }

  .hero-story::before {
    content: none;
  }

  .hero-story-content {
    position: relative;
    z-index: 1;
    max-width: 860px;
    animation: fadeUp 0.8s ease both;
  }
  
  .hero-label,
  .page-intro p,
  .section-heading p,
  .project-hero p {
    color: var(--lightning-blue);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-size: 12px;
    margin-bottom: 18px;
  }
  
  .hero h1,
  .page-intro h1,
  .project-hero h1 {
    max-width: 980px;
    font-size: clamp(48px, 9vw, 112px);
    line-height: 0.95;
    letter-spacing: -0.08em;
    color: var(--deep-purple);
  }
  
  .hero h1 span {
    color: var(--golden-orange);
  }
  
  .hero p {
    max-width: 620px;
    margin-top: 28px;
    font-size: 20px;
    color: var(--muted);
  }
  
  .hero-actions {
    display: flex;
    gap: 14px;
    margin-top: 36px;
  }
  
  .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 20px;
    border-radius: 999px;
    font-weight: 700;
    transition: transform 0.25s ease, background 0.25s ease, box-shadow 0.25s ease;
  }
  
  .btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 14px 36px rgba(36, 18, 53, 0.2);
  }
  
  .btn.primary {
    background: var(--deep-purple);
    color: var(--white);
  }
  
  .btn.secondary {
    background: rgba(36, 18, 53, 0.08);
    color: var(--deep-purple);
  }

  .btn.ghost {
    border-radius: 999px;
  }
  
  .section-heading {
    margin-bottom: 32px;
  }
  
  .section-heading h2 {
    font-size: clamp(32px, 5vw, 64px);
    letter-spacing: -0.06em;
    color: var(--deep-purple);
  }

  .home-story {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 30px 24px 110px;
    display: grid;
    grid-template-columns: 0.75fr 1.25fr;
    gap: 34px;
  }

  .story-intro {
    position: sticky;
    top: 110px;
    align-self: start;
    padding: 34px;
    border-radius: var(--radius-lg);
    border: 1px solid rgba(36, 18, 53, 0.1);
    background: rgba(255, 255, 255, 0.68);
    backdrop-filter: blur(8px);
  }

  .story-intro span {
    display: block;
    color: var(--lightning-blue);
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-size: 12px;
    margin-bottom: 14px;
  }

  .story-intro h2 {
    color: var(--deep-purple);
    font-size: clamp(30px, 4vw, 54px);
    line-height: 0.95;
    letter-spacing: -0.05em;
  }

  .story-rail {
    display: grid;
    gap: 18px;
  }

  .story-step {
    min-height: 220px;
    padding: 34px;
    border-radius: var(--radius-lg);
    border: 1px solid rgba(36, 18, 53, 0.12);
    border-left: 4px solid var(--lightning-blue);
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.94) 0%, rgba(237, 231, 254, 0.5) 100%);
    box-shadow: 0 20px 55px rgba(36, 18, 53, 0.08);
    transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
  }

  .story-step:nth-child(2) {
    border-left-color: var(--golden-orange);
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.94) 0%, rgba(255, 244, 230, 0.55) 100%);
  }

  .story-step:nth-child(3) {
    border-left-color: var(--accent-teal);
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.94) 0%, rgba(224, 247, 243, 0.45) 100%);
  }

  .story-step:nth-child(4) {
    border-left-color: var(--accent-coral);
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.94) 0%, rgba(255, 235, 231, 0.42) 100%);
  }

  .story-step:hover {
    transform: translateY(-10px);
    border-color: rgba(47, 128, 255, 0.38);
    box-shadow: 0 34px 80px rgba(36, 18, 53, 0.14);
  }

  .story-step span {
    color: var(--golden-orange);
    font-weight: 900;
    font-size: 13px;
    letter-spacing: 0.12em;
  }

  .story-step h3 {
    margin-top: 14px;
    margin-bottom: 10px;
    color: var(--deep-purple);
    font-size: clamp(26px, 4vw, 40px);
    line-height: 0.95;
    letter-spacing: -0.04em;
  }

  .story-step p {
    color: var(--muted);
    font-size: 19px;
    max-width: 780px;
  }

  .cinematic-projects {
    padding-top: 20px;
  }

  .home-highlight {
    padding: 72px 0 56px;
    border-top: 1px solid rgba(36, 18, 53, 0.1);
  }

  .home-highlight-card {
    display: block;
    text-decoration: none;
    color: inherit;
    border-radius: var(--radius-lg);
    transition: transform 0.35s ease, box-shadow 0.35s ease;
  }

  .home-highlight-card:hover {
    transform: translateY(-4px);
  }

  .home-highlight-card:hover .home-highlight-inner {
    box-shadow: 0 36px 100px rgba(36, 18, 53, 0.14);
    border-color: rgba(47, 128, 255, 0.22);
  }

  .home-highlight-card:focus-visible {
    outline: 2px solid var(--lightning-blue);
    outline-offset: 6px;
  }

  .home-highlight-inner {
    display: grid;
    grid-template-columns: 1fr 1.05fr;
    gap: 40px;
    align-items: stretch;
    width: 100%;
    padding: 36px 36px 40px;
    border-radius: var(--radius-lg);
    border: 1px solid rgba(36, 18, 53, 0.1);
    background: linear-gradient(
      135deg,
      rgba(255, 255, 255, 0.92) 0%,
      rgba(244, 241, 255, 0.75) 50%,
      rgba(255, 250, 242, 0.85) 100%
    );
    box-shadow: 0 28px 90px rgba(36, 18, 53, 0.1);
    transition: box-shadow 0.35s ease, border-color 0.35s ease;
  }

  .home-highlight-copy {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 16px;
    min-width: 0;
  }

  .home-highlight-eyebrow {
    margin: 0;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--golden-orange);
  }

  .home-highlight-copy h2 {
    margin: 0;
    font-size: clamp(32px, 4vw, 48px);
    letter-spacing: -0.05em;
    line-height: 1.05;
    color: var(--deep-purple);
  }

  .home-highlight-meta {
    margin: 0;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--lightning-blue);
  }

  .home-highlight-lead {
    margin: 0;
    font-size: 18px;
    line-height: 1.55;
    color: var(--muted);
    max-width: 42ch;
  }

  .home-highlight-cta {
    align-self: flex-start;
    margin-top: 8px;
    display: inline-flex;
    align-items: center;
    font-weight: 800;
    font-size: 15px;
    color: var(--deep-purple);
    padding: 12px 22px;
    border-radius: var(--radius-md);
    background: rgba(255, 255, 255, 0.85);
    border: 1px solid rgba(36, 18, 53, 0.12);
    box-shadow: 0 8px 24px rgba(36, 18, 53, 0.08);
    transition: background 0.25s ease, border-color 0.25s ease, transform 0.25s ease;
  }

  .home-highlight-card:hover .home-highlight-cta {
    border-color: rgba(47, 128, 255, 0.45);
    transform: translateX(4px);
  }

  .home-highlight-visual {
    display: block;
    border-radius: var(--radius-md);
    overflow: hidden;
    border: 1px solid rgba(36, 18, 53, 0.08);
    min-height: 220px;
    background: var(--paper);
    box-shadow: 0 20px 60px rgba(36, 18, 53, 0.12);
  }

  .home-highlight-visual img {
    width: 100%;
    height: 100%;
    min-height: 260px;
    object-fit: cover;
    display: block;
    transition: transform 0.6s ease;
  }

  .home-highlight-card:hover .home-highlight-visual img {
    transform: scale(1.04);
  }

  .cinematic-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
  }

  .cinematic-card {
    position: relative;
    min-height: 470px;
    border-radius: var(--radius-lg);
    overflow: hidden;
    isolation: isolate;
    border: 1px solid rgba(36, 18, 53, 0.12);
    box-shadow: 0 24px 65px rgba(36, 18, 53, 0.12);
    transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.45s ease;
  }

  .cinematic-card:hover {
    transform: translateY(-14px) scale(1.01);
    box-shadow: 0 44px 95px rgba(36, 18, 53, 0.2);
  }

  .cinematic-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.7s ease;
  }

  .cinematic-card:hover img {
    transform: scale(1.08);
  }

  .cinematic-overlay {
    position: absolute;
    inset: auto 0 0;
    padding: 24px;
    background: linear-gradient(to top, rgba(16, 16, 20, 0.88) 0%, rgba(16, 16, 20, 0) 100%);
    color: var(--white);
  }

  .cinematic-overlay p {
    color: rgba(255, 255, 255, 0.82);
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 8px;
    font-weight: 700;
  }

  .cinematic-overlay h3 {
    font-size: 34px;
    letter-spacing: -0.05em;
    line-height: 0.95;
    margin-bottom: 8px;
  }

  .cinematic-overlay span {
    color: var(--golden-orange);
    font-weight: 800;
  }
  
  .project-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
  }

  .project-filter-section {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 24px 16px;
  }

  .project-filter-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
  }

  .project-filter-btn {
    border: 1px solid rgba(36, 18, 53, 0.2);
    background: rgba(255, 255, 255, 0.75);
    color: var(--deep-purple);
    border-radius: 999px;
    padding: 10px 16px;
    font-weight: 700;
    font-size: 14px;
    cursor: pointer;
    transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease, color 0.2s ease;
  }

  .project-filter-btn:hover {
    transform: translateY(-2px);
    border-color: var(--lightning-blue);
  }

  .project-filter-btn.active {
    background: var(--deep-purple);
    color: var(--white);
    border-color: var(--deep-purple);
  }

  .project-empty-state {
    grid-column: 1 / -1;
    color: var(--muted);
    font-size: 20px;
  }
  
  .project-card {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.88) 0%, rgba(244, 239, 255, 0.65) 100%);
    border: 1px solid rgba(36, 18, 53, 0.1);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.35s ease, border-color 0.3s ease;
    animation: fadeUp 0.55s ease both;
  }
  
  .project-card:hover {
    transform: translateY(-10px) scale(1.01);
    border-color: rgba(47, 128, 255, 0.35);
    box-shadow: 0 32px 95px rgba(36, 18, 53, 0.18);
  }
  
  .project-image {
    position: relative;
    aspect-ratio: 16 / 11;
    overflow: hidden;
    background: var(--paper);
  }

  .project-highlight-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    z-index: 2;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    padding: 7px 12px;
    border-radius: 999px;
    background: var(--deep-purple);
    color: var(--white);
    box-shadow: 0 6px 20px rgba(36, 18, 53, 0.2);
  }

  .project-card.is-highlight {
    border-color: rgba(47, 128, 255, 0.35);
  }
  
  .project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
  }
  
  .project-card:hover img {
    transform: scale(1.08);
  }
  
  .project-info {
    padding: 24px;
    display: flex;
    justify-content: space-between;
    gap: 24px;
    align-items: flex-end;
  }
  
  .project-info p {
    color: var(--lightning-blue);
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 8px;
  }
  
  .project-info h3 {
    font-size: 28px;
    letter-spacing: -0.04em;
    color: var(--deep-purple);
  }
  
  .project-info span {
    color: var(--golden-orange);
    font-weight: 800;
    white-space: nowrap;
    transition: transform 0.25s ease, color 0.25s ease;
  }

  .project-card:hover .project-info span {
    transform: translateX(6px);
    color: var(--lightning-blue);
  }
  
  .about-layout {
    display: grid;
    grid-template-columns: 0.8fr 1.2fr;
    gap: 80px;
    border-top: 1px solid rgba(36, 18, 53, 0.12);
  }
  
  .about-layout h2 {
    font-size: 40px;
    color: var(--deep-purple);
    letter-spacing: -0.05em;
  }
  
  .about-text {
    display: grid;
    gap: 24px;
    font-size: 22px;
    color: var(--muted);
  }

  .page-intro--about {
    position: relative;
    padding-bottom: 48px;
  }

  .page-intro--about::before {
    content: "";
    position: absolute;
    inset: auto 0 0 auto;
    width: min(40vw, 320px);
    height: min(40vw, 280px);
    background: radial-gradient(
      circle at 70% 30%,
      rgba(47, 128, 255, 0.08) 0%,
      rgba(196, 181, 253, 0.06) 45%,
      transparent 70%
    );
    pointer-events: none;
    z-index: 0;
  }

  .page-intro--about > * {
    position: relative;
    z-index: 1;
  }

  .about-kicker {
    margin-bottom: 16px;
  }

  .about-kicker span {
    display: inline-flex;
    align-items: center;
    padding: 6px 14px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--deep-purple);
    background: rgba(36, 18, 53, 0.06);
    border: 1px solid rgba(36, 18, 53, 0.12);
    border-radius: 4px;
  }

  .page-intro--about .about-headline {
    margin: 0;
    max-width: min(100%, 38rem);
    font-size: clamp(2rem, 4.2vw, 3.35rem);
    font-weight: 800;
    line-height: 1.08;
    letter-spacing: -0.05em;
    color: var(--deep-purple);
  }

  .page-intro--about .about-headline-accent {
    display: block;
    margin-top: 0.1em;
    font-weight: 800;
    letter-spacing: -0.045em;
    color: var(--lightning-blue);
  }

  .page-intro--about .about-headline-accent em {
    font-style: normal;
    color: var(--golden-orange);
  }

  .about-hero {
    display: grid;
    grid-template-columns: 1fr 0.9fr;
    gap: 40px 48px;
    align-items: start;
    padding: 32px 0 40px;
    margin-bottom: 8px;
    border-bottom: 1px solid rgba(36, 18, 53, 0.1);
  }

  .about-lead {
    margin: 0;
    font-size: clamp(17px, 1.85vw, 20px);
    line-height: 1.62;
    color: rgba(16, 16, 20, 0.82);
    max-width: 48ch;
    font-weight: 500;
  }

  .about-profile {
    margin: 0;
    justify-self: end;
    width: 100%;
    max-width: 360px;
  }

  .about-profile-frame {
    position: relative;
    border-radius: 6px;
    overflow: hidden;
    border: 1px solid rgba(36, 18, 53, 0.14);
    background: rgba(237, 231, 254, 0.35);
    box-shadow: 0 16px 40px rgba(36, 18, 53, 0.1);
    aspect-ratio: 4 / 5;
    transition: box-shadow 0.3s ease, transform 0.3s ease;
  }

  .about-profile:hover .about-profile-frame {
    transform: translateY(-2px);
    box-shadow: 0 22px 48px rgba(36, 18, 53, 0.12);
  }

  .about-profile-frame::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 55%, rgba(36, 18, 53, 0.12) 100%);
    pointer-events: none;
    z-index: 1;
  }

  .about-profile-frame img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
  }

  .about-profile-caption {
    margin-top: 14px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: rgba(36, 18, 53, 0.55);
    max-width: 22rem;
    line-height: 1.4;
  }

  .about-board {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 28px 40px;
    padding: 36px 0 0;
    align-items: start;
  }

  .about-board-label {
    margin: 0 0 14px;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--deep-purple);
    opacity: 0.85;
  }

  .about-points {
    margin: 0;
    padding: 0 0 0 1.1em;
    display: grid;
    gap: 12px;
    font-size: 16px;
    line-height: 1.55;
    color: rgba(16, 16, 20, 0.78);
    max-width: 42ch;
  }

  .about-points li {
    padding-left: 0.15em;
  }

  .about-board-prose {
    display: grid;
    gap: 16px;
    max-width: 48ch;
  }

  .about-board-prose p {
    margin: 0;
    font-size: 16px;
    line-height: 1.62;
    color: rgba(16, 16, 20, 0.78);
  }

  .about-closing {
    margin: 40px 0 0;
    padding-top: 28px;
    border-top: 1px solid rgba(36, 18, 53, 0.08);
    font-size: clamp(1rem, 1.5vw, 1.15rem);
    line-height: 1.5;
    letter-spacing: -0.015em;
    color: var(--deep-purple);
    font-weight: 600;
    max-width: 36ch;
  }

  @media (max-width: 900px) {
    .about-hero {
      grid-template-columns: 1fr;
      gap: 28px;
      padding-bottom: 32px;
    }

    .about-profile {
      justify-self: start;
      max-width: min(100%, 360px);
    }

    .about-board {
      grid-template-columns: 1fr;
      gap: 28px;
      padding-top: 28px;
    }
  }

  .project-hero {
    padding-bottom: 48px;
  }
  
  .project-hero span {
    display: block;
    max-width: 740px;
    margin-top: 28px;
    font-size: 22px;
    color: var(--muted);
  }
  
  .project-cover {
    width: 100%;
    max-height: 620px;
    object-fit: cover;
    border-radius: var(--radius-lg);
  }
  
  .case-content {
    margin-top: 64px;
    display: grid;
    gap: 24px;
  }
  
  .case-block {
    display: grid;
    grid-template-columns: 0.5fr 1.5fr;
    gap: 48px;
    padding: 36px 0;
    border-top: 1px solid rgba(36, 18, 53, 0.12);
  }
  
  .case-block h2 {
    color: var(--deep-purple);
    font-size: 24px;
  }
  
  .case-block p {
    font-size: 22px;
    color: var(--muted);
  }
  
  .next-projects {
    margin-top: 48px;
  }
  
  .next-projects a {
    color: var(--lightning-blue);
    font-weight: 800;
  }
  
  .footer {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 56px 24px 40px;
    border-top: 1px solid rgba(36, 18, 53, 0.12);
  }

  .footer-content {
    display: flex;
    justify-content: space-between;
    gap: 40px;
    margin-bottom: 28px;
  }

  .footer-label {
    color: var(--lightning-blue);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-size: 12px;
    font-weight: 700;
    margin-bottom: 10px;
  }

  .footer h2 {
    max-width: 560px;
    color: var(--deep-purple);
    letter-spacing: -0.04em;
    font-size: clamp(26px, 5vw, 42px);
    line-height: 1.05;
  }

  .footer-contact {
    display: grid;
    gap: 10px;
    align-content: start;
  }

  .footer-contact a {
    color: var(--deep-purple);
    font-weight: 700;
    font-size: 18px;
  }

  .footer-contact a:hover {
    color: var(--lightning-blue);
  }

  .footer-copy {
    color: var(--muted);
    font-size: 14px;
  }
  
  @media (max-width: 760px) {
    .site-header {
      align-items: flex-start;
      gap: 20px;
    }
  
    .nav {
      gap: 12px;
      flex-wrap: wrap;
      justify-content: flex-end;
    }
  
    .hero,
    .page-intro,
    .home-highlight,
    .selected-projects,
    .project-grid,
    .about-layout,
    .about-page,
    .project-detail {
      padding: 56px 18px;
    }

    .home-story {
      padding: 0 18px 56px;
      grid-template-columns: 1fr;
      gap: 18px;
    }

    .story-intro {
      position: static;
      padding: 24px;
    }

    .story-step {
      min-height: auto;
      padding: 24px;
    }

    .story-step p {
      font-size: 17px;
    }

    .cinematic-grid {
      grid-template-columns: 1fr;
      gap: 14px;
    }

    .cinematic-card {
      min-height: 360px;
    }
  
    .hero-actions {
      flex-direction: column;
      align-items: flex-start;
    }
  
    .project-grid,
    .about-layout,
    .about-page,
    .case-block {
      grid-template-columns: 1fr;
    }

    .project-filter-section {
      padding: 0 18px 16px;
    }

    .footer {
      padding: 48px 18px 28px;
    }

    .footer-content {
      flex-direction: column;
      gap: 24px;
      margin-bottom: 20px;
    }

    .footer-contact a {
      font-size: 16px;
    }
  
    .project-info {
      flex-direction: column;
      align-items: flex-start;
    }
  
    .hero h1,
    .page-intro h1,
    .project-hero h1 {
      letter-spacing: -0.06em;
    }
  }


  .case-page {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 80px 24px;
  }
  
  .case-hero {
    padding: 48px 0 56px;
  }
  
  .case-eyebrow,
  .case-section-label span,
  .overview-card span,
  .system-grid span,
  .case-outcome span {
    display: block;
    color: var(--lightning-blue);
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-size: 12px;
    margin-bottom: 16px;
  }
  
  .case-hero-grid {
    display: grid;
    grid-template-columns: 1.4fr 0.6fr;
    gap: 64px;
    align-items: end;
  }
  
  .case-hero h1 {
    font-size: clamp(56px, 10vw, 128px);
    line-height: 0.92;
    letter-spacing: -0.08em;
    color: var(--deep-purple);
    max-width: 980px;
  }
  
  .case-hero p {
    max-width: 720px;
    margin-top: 28px;
    color: var(--muted);
    font-size: 22px;
  }
  
  .case-meta-card {
    background: rgba(255, 255, 255, 0.72);
    border: 1px solid rgba(36, 18, 53, 0.1);
    border-radius: var(--radius-lg);
    padding: 28px;
    display: grid;
    gap: 24px;
    box-shadow: 0 24px 80px rgba(36, 18, 53, 0.08);
  }
  
  .case-meta-card div {
    padding-bottom: 18px;
    border-bottom: 1px solid rgba(36, 18, 53, 0.08);
  }
  
  .case-meta-card div:last-child {
    padding-bottom: 0;
    border-bottom: 0;
  }
  
  .case-meta-card span {
    display: block;
    color: var(--muted);
    font-size: 13px;
    margin-bottom: 6px;
  }
  
  .case-meta-card strong {
    color: var(--deep-purple);
    font-size: 15px;
  }
  
  .case-showcase {
    border-radius: var(--radius-lg);
    overflow: hidden;
    margin-bottom: 96px;
    box-shadow: 0 28px 90px rgba(36, 18, 53, 0.12);
  }
  
  .case-showcase img {
    width: 100%;
    height: min(68vh, 680px);
    object-fit: cover;
  }

  .case-showcase .case-hero-video {
    display: block;
    width: 100%;
    height: min(68vh, 680px);
    object-fit: cover;
    background: #0f0a18;
  }

  .case-quick-links {
    display: flex;
    flex-wrap: wrap;
    gap: 12px 16px;
    align-items: center;
    margin-bottom: 64px;
  }

  .case-quick-links .btn.ghost {
    border: 1px solid rgba(36, 18, 53, 0.14);
    background: rgba(255, 255, 255, 0.55);
    color: var(--deep-purple);
  }

  .case-embed {
    padding: 0 0 88px;
    border-top: 1px solid rgba(36, 18, 53, 0.12);
  }

  .case-embed-frame {
    position: relative;
    width: 100%;
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid rgba(36, 18, 53, 0.1);
    box-shadow: 0 24px 80px rgba(36, 18, 53, 0.1);
    aspect-ratio: 16 / 10;
    background: #f4f2fb;
  }

  .case-embed-frame iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
  }

  .case-gallery {
    padding: 0 0 88px;
    border-top: 1px solid rgba(36, 18, 53, 0.12);
  }

  .case-gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 18px;
  }

  .case-gallery-grid figure {
    margin: 0;
    border-radius: var(--radius-md);
    overflow: hidden;
    border: 1px solid rgba(36, 18, 53, 0.08);
    background: rgba(255, 255, 255, 0.6);
    box-shadow: 0 16px 48px rgba(36, 18, 53, 0.08);
  }

  .case-gallery-grid img {
    width: 100%;
    height: auto;
    display: block;
  }

  .case-gear {
    padding: 64px 0 0;
    border-top: 1px solid rgba(36, 18, 53, 0.12);
  }

  .case-gear-list {
    margin: 0;
    padding-left: 1.25em;
    color: var(--muted);
    font-size: 17px;
    line-height: 1.6;
  }

  .case-gear-list li + li {
    margin-top: 0.35em;
  }

  .case-disclosure {
    margin-top: 48px;
    padding: 24px 28px;
    border-radius: var(--radius-md);
    border: 1px dashed rgba(36, 18, 53, 0.2);
    background: rgba(255, 255, 255, 0.55);
  }

  .case-disclosure strong {
    display: block;
    font-size: 13px;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--deep-purple);
    margin-bottom: 10px;
  }

  .case-disclosure p {
    margin: 0;
    color: var(--muted);
    font-size: 16px;
    line-height: 1.55;
  }
  
  .case-overview,
  .case-process,
  .case-decisions,
  .visual-system,
  .case-outcome,
  .case-reflection {
    padding: 88px 0;
    border-top: 1px solid rgba(36, 18, 53, 0.12);
  }
  
  .case-section-label {
    display: grid;
    grid-template-columns: 0.7fr 1.3fr;
    gap: 64px;
    margin-bottom: 40px;
  }
  
  .case-section-label h2 {
    font-size: clamp(36px, 5vw, 72px);
    line-height: 0.98;
    letter-spacing: -0.07em;
    color: var(--deep-purple);
  }
  
  .overview-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
  }
  
  .overview-card,
  .decision-card,
  .system-grid div {
    background: linear-gradient(165deg, rgba(255, 255, 255, 0.92) 0%, rgba(236, 228, 250, 0.35) 100%);
    border: 1px solid rgba(36, 18, 53, 0.1);
    border-radius: var(--radius-md);
    padding: 28px;
    transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
  }

  .overview-card:hover,
  .decision-card:hover,
  .system-grid div:hover {
    transform: translateY(-6px);
    border-color: rgba(47, 128, 255, 0.28);
    box-shadow: 0 20px 52px rgba(36, 18, 53, 0.12);
  }
  
  .overview-card p,
  .decision-card p,
  .system-grid p,
  .case-reflection p {
    color: var(--muted);
    font-size: 18px;
  }
  
  .case-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
    margin-bottom: 48px;
  }
  
  .stat-card {
    color: var(--white);
    border-radius: var(--radius-lg);
    padding: 32px;
    min-height: 180px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.08);
  }

  .stat-card:nth-child(1) {
    background: linear-gradient(155deg, #1a1028 0%, #2a1a42 55%, #241235 100%);
  }

  .stat-card:nth-child(2) {
    background: linear-gradient(155deg, #102038 0%, #1a3355 52%, #241235 100%);
  }

  .stat-card:nth-child(3) {
    background: linear-gradient(155deg, #351c14 0%, #2a1824 60%, #241235 100%);
  }

  .stat-card:nth-child(3) strong {
    color: #ffb4a8;
  }

  .stat-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 24px 60px rgba(36, 18, 53, 0.24);
  }
  
  .stat-card strong {
    font-size: clamp(48px, 7vw, 88px);
    line-height: 0.9;
    letter-spacing: -0.08em;
    color: var(--golden-orange);
  }
  
  .stat-card span {
    color: rgba(255, 255, 255, 0.76);
    font-size: 16px;
  }
  
  .timeline {
    display: grid;
    gap: 0;
  }
  
  .timeline-item {
    display: grid;
    grid-template-columns: 0.35fr 1.65fr;
    gap: 48px;
    padding: 32px 0;
    border-top: 1px solid rgba(36, 18, 53, 0.1);
    transition: transform 0.3s ease;
  }

  .timeline-item:hover {
    transform: translateX(8px);
  }
  
  .timeline-number {
    color: var(--golden-orange);
    font-weight: 900;
    font-size: 18px;
  }
  
  .timeline-item h3,
  .decision-card h3,
  .case-reflection h2 {
    color: var(--deep-purple);
    font-size: 28px;
    letter-spacing: -0.04em;
    margin-bottom: 12px;
  }
  
  .timeline-item p {
    color: var(--muted);
    font-size: 20px;
    max-width: 780px;
  }
  
  .decision-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
  }
  
  .decision-card {
    min-height: 260px;
  }
  
  .system-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
  }
  
  .case-outcome {
    border-radius: var(--radius-lg);
  }
  
  .case-outcome h2 {
    max-width: 980px;
    color: var(--deep-purple);
    font-size: clamp(40px, 6vw, 88px);
    line-height: 0.98;
    letter-spacing: -0.07em;
  }
  
  .case-reflection {
    display: grid;
    grid-template-columns: 0.5fr 1.5fr;
    gap: 64px;
  }
  
  .case-navigation {
    padding: 40px 0 80px;
  }
  
  .case-navigation a {
    color: var(--lightning-blue);
    font-weight: 800;
    transition: color 0.2s ease, transform 0.2s ease;
  }

  .case-navigation a:hover {
    color: var(--deep-purple);
    transform: translateX(-4px);
  }
  
  @media (max-width: 860px) {
    .case-page {
      padding: 56px 18px;
    }
  
    .case-hero-grid,
    .case-section-label,
    .overview-grid,
    .case-stats,
    .timeline-item,
    .decision-grid,
    .system-grid,
    .case-reflection {
      grid-template-columns: 1fr;
    }
  
    .case-hero h1 {
      letter-spacing: -0.06em;
    }
  
    .case-showcase {
      margin-bottom: 56px;
    }
  
    .case-overview,
    .case-process,
    .case-decisions,
    .visual-system,
    .case-outcome,
    .case-reflection {
      padding: 56px 0;
    }
  }

/* Home Cinematic Experience */
:root {
  --scroll-progress: 0;
  --glow-y: 0px;
  --hero-shift: 0px;
}

.cinematic-hero {
  min-height: 92vh;
  position: relative;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 32px;
  align-items: center;
  overflow: hidden;
}

.hero-glow-layer {
  position: absolute;
  inset: -12% -10% auto;
  height: 70%;
  background:
    radial-gradient(circle at 20% 40%, rgba(47, 128, 255, 0.2), transparent 56%),
    radial-gradient(circle at 80% 30%, rgba(245, 165, 36, 0.18), transparent 52%);
  transform: translateY(var(--glow-y));
  pointer-events: none;
}

.hero-copy {
  position: relative;
  z-index: 1;
  transform: translateY(var(--hero-shift));
}

.hero-reveal {
  opacity: 0;
  transform: translateY(18px);
  animation: heroRise 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.hero-copy .hero-reveal:nth-child(1) { animation-delay: 0.06s; }
.hero-copy .hero-reveal:nth-child(2) { animation-delay: 0.14s; }
.hero-copy .hero-reveal:nth-child(3) { animation-delay: 0.24s; }
.hero-copy .hero-reveal:nth-child(4) { animation-delay: 0.34s; }
.hero-copy .hero-reveal:nth-child(5) { animation-delay: 0.45s; }

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

.cinematic-hero h1 {
  font-size: clamp(52px, 9vw, 118px);
  line-height: 0.92;
  letter-spacing: -0.08em;
  color: var(--deep-purple);
}

.cinematic-hero h1 span {
  color: var(--golden-orange);
}

.hero-support {
  max-width: 650px;
  margin-top: 20px;
  color: var(--muted);
  font-size: 20px;
}

.hero-visual {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: flex-end;
}

.hero-visual-card {
  width: min(460px, 100%);
  border-radius: var(--radius-lg);
  border: 1px solid rgba(36, 18, 53, 0.14);
  background: rgba(255, 255, 255, 0.78);
  padding: 28px;
  box-shadow: 0 26px 72px rgba(36, 18, 53, 0.12);
}

.hero-visual-card span {
  display: block;
  color: var(--lightning-blue);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 11px;
  font-weight: 700;
}

.hero-visual-card strong {
  display: block;
  margin-top: 8px;
  color: var(--deep-purple);
  font-size: 30px;
  line-height: 1.02;
  letter-spacing: -0.04em;
}

.hero-bars {
  margin-top: 18px;
  display: grid;
  gap: 10px;
}

.hero-bars i {
  height: 11px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(47, 128, 255, 0.2), rgba(36, 18, 53, 0.14));
}

.scroll-indicator {
  margin-top: 30px;
  display: inline-flex;
  gap: 8px;
  align-items: center;
  color: var(--lightning-blue);
  text-transform: uppercase;
  letter-spacing: 0.11em;
  font-size: 11px;
  font-weight: 700;
}

.scroll-indicator i {
  width: 17px;
  height: 30px;
  border: 1.5px solid rgba(47, 128, 255, 0.5);
  border-radius: 18px;
  position: relative;
}

.scroll-indicator i::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 6px;
  width: 4px;
  height: 7px;
  border-radius: 999px;
  margin-left: -2px;
  background: var(--lightning-blue);
  animation: dotFloat 1.6s ease-in-out infinite;
}

@keyframes dotFloat {
  0% { opacity: 0; transform: translateY(0); }
  35% { opacity: 1; }
  100% { opacity: 0; transform: translateY(10px); }
}

.story-section {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 30px 24px 110px;
}

.story-layout {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 34px;
}

.story-sticky {
  position: sticky;
  top: 108px;
  align-self: start;
}

.story-sticky p {
  color: var(--lightning-blue);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-weight: 700;
  margin-bottom: 12px;
}

.story-sticky h2 {
  color: var(--deep-purple);
  font-size: clamp(34px, 5vw, 64px);
  line-height: 0.95;
  letter-spacing: -0.06em;
  margin-bottom: 16px;
}

.story-sticky span {
  color: var(--muted);
  font-size: 19px;
}

.story-steps {
  display: grid;
  gap: 18px;
}

.story-step {
  border: 1px solid rgba(36, 18, 53, 0.12);
  background: rgba(255, 255, 255, 0.72);
  border-radius: var(--radius-lg);
  padding: 28px;
  opacity: 0.55;
  transform: scale(0.98);
  transition: opacity 0.35s ease, transform 0.35s ease, border-color 0.35s ease, box-shadow 0.35s ease;
}

.story-step p {
  color: var(--golden-orange);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 800;
}

.story-step h3 {
  margin-top: 10px;
  color: var(--deep-purple);
  font-size: clamp(30px, 4vw, 48px);
  line-height: 0.95;
  letter-spacing: -0.05em;
}

.story-step > span {
  display: block;
  margin-top: 8px;
  color: var(--muted);
  font-size: 18px;
}

.story-visual {
  margin-top: 14px;
  border-radius: var(--radius-md);
  border: 1px solid rgba(36, 18, 53, 0.1);
  background: rgba(255, 255, 255, 0.75);
  padding: 14px;
  display: grid;
  gap: 8px;
  transform: translateY(8px);
  opacity: 0.7;
  transition: transform 0.35s ease, opacity 0.35s ease;
}

.story-visual i {
  height: 10px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(47, 128, 255, 0.2), rgba(36, 18, 53, 0.14));
}

.story-visual small {
  color: var(--lightning-blue);
  font-size: 12px;
  font-weight: 700;
}

.story-step.is-active {
  opacity: 1;
  transform: scale(1);
  border-color: rgba(47, 128, 255, 0.35);
  box-shadow: 0 22px 56px rgba(36, 18, 53, 0.1);
}

.story-step.is-active .story-visual {
  opacity: 1;
  transform: translateY(0);
}

.cinematic-projects {
  padding-top: 20px;
}

.cinematic-project-list {
  display: grid;
  gap: 26px;
}

.cinematic-project-card {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(36, 18, 53, 0.1);
  background: rgba(255, 255, 255, 0.72);
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.cinematic-project-card:hover {
  transform: translateY(-8px);
  border-color: rgba(47, 128, 255, 0.35);
  box-shadow: 0 34px 90px rgba(36, 18, 53, 0.14);
}

.cinematic-project-card.reverse .cinematic-project-copy {
  order: 2;
}

.cinematic-project-card.reverse .cinematic-project-image {
  order: 1;
}

.cinematic-project-copy {
  padding: 32px;
  display: grid;
  align-content: center;
  gap: 10px;
}

.cinematic-project-copy p {
  color: var(--lightning-blue);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.cinematic-project-copy h3 {
  color: var(--deep-purple);
  font-size: clamp(34px, 5vw, 60px);
  line-height: 0.92;
  letter-spacing: -0.06em;
}

.cinematic-project-copy span {
  color: var(--muted);
  font-size: 19px;
}

.cinematic-project-copy strong {
  color: var(--golden-orange);
  font-size: 16px;
  transition: color 0.25s ease;
}

.cinematic-project-card:hover .cinematic-project-copy strong {
  color: var(--lightning-blue);
}

.cinematic-project-image {
  min-height: 340px;
  overflow: hidden;
}

.cinematic-project-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s ease;
}

.cinematic-project-card:hover .cinematic-project-image img {
  transform: scale(1.07);
}

.principles-section {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 90px 24px;
}

.principles-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.principle-card {
  border-radius: var(--radius-md);
  border: 1px solid rgba(36, 18, 53, 0.12);
  background: rgba(255, 255, 255, 0.75);
  padding: 28px;
  transition: border-color 0.3s ease, box-shadow 0.3s ease, transform 0.3s ease;
}

.principle-card:hover {
  border-color: rgba(245, 165, 36, 0.45);
  box-shadow: 0 16px 42px rgba(36, 18, 53, 0.1);
  transform: translateY(-4px);
}

.principle-card p {
  color: var(--golden-orange);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 800;
}

.principle-card h3 {
  margin-top: 10px;
  color: var(--deep-purple);
  font-size: 32px;
  letter-spacing: -0.04em;
}

.principle-card span {
  margin-top: 10px;
  display: block;
  color: var(--muted);
  font-size: 18px;
}

.home-final-cta {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 56px 24px 108px;
  border-radius: var(--radius-lg);
  background: linear-gradient(145deg, rgba(36, 18, 53, 0.96), rgba(36, 18, 53, 0.88));
  color: var(--white);
}

.home-final-cta h2 {
  max-width: 940px;
  font-size: clamp(40px, 6vw, 92px);
  line-height: 0.92;
  letter-spacing: -0.07em;
}

.home-final-cta h2::selection {
  background: rgba(245, 165, 36, 0.45);
}

.home-final-cta p {
  max-width: 760px;
  margin-top: 14px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 19px;
}

.home-final-cta .btn.primary {
  background: var(--golden-orange);
  color: var(--deep-purple);
}

.home-final-cta .btn.secondary {
  background: rgba(255, 255, 255, 0.16);
  color: var(--white);
}

[data-reveal] {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

[data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 1024px) {
  .cinematic-hero {
    grid-template-columns: 1fr;
    min-height: auto;
    padding-top: 72px;
  }

  .hero-visual {
    justify-content: flex-start;
  }

  .story-layout {
    grid-template-columns: 1fr;
  }

  .story-sticky {
    position: static;
  }
}

@media (max-width: 760px) {
  .story-section,
  .principles-section {
    padding: 44px 18px;
  }

  .cinematic-project-card,
  .cinematic-project-card.reverse {
    grid-template-columns: 1fr;
  }

  .cinematic-project-card.reverse .cinematic-project-copy,
  .cinematic-project-card.reverse .cinematic-project-image {
    order: initial;
  }

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

  .home-final-cta {
    margin: 0 18px;
    padding: 40px 20px 56px;
  }

  .home-final-cta .hero-actions {
    align-items: stretch;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-reveal,
  .scroll-indicator i::after {
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
  }

  [data-reveal] {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }

  .story-step,
  .cinematic-project-card,
  .principle-card,
  .cinematic-project-image img {
    transition: none !important;
    transform: none !important;
  }
}

/* SPA Page transitions */
.page-transition {
  position: fixed;
  inset: 0;
  z-index: 9999;
  pointer-events: none;
  background:
    linear-gradient(120deg, rgba(36, 18, 53, 0.98), rgba(20, 10, 30, 0.98)),
    radial-gradient(circle at 82% 26%, rgba(47, 128, 255, 0.15), transparent 42%);
  transform-origin: left center;
  transform: scaleX(0);
  opacity: 0;
  transition: transform 640ms cubic-bezier(0.76, 0, 0.24, 1), opacity 340ms ease;
  display: grid;
  align-content: end;
}

.page-transition.is-active {
  transform: scaleX(1);
  opacity: 1;
}

.page-transition.is-entering {
  transform-origin: right center;
  transform: scaleX(0);
  opacity: 1;
}

.transition-line {
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, rgba(245, 165, 36, 0.95), rgba(47, 128, 255, 0.8));
  box-shadow: 0 0 18px rgba(245, 165, 36, 0.35);
}

.transition-route-label {
  margin: 0 24px 14px;
  color: rgba(251, 250, 247, 0.82);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 700;
  text-align: right;
}

#app {
  transition: opacity 650ms cubic-bezier(0.76, 0, 0.24, 1), transform 650ms cubic-bezier(0.76, 0, 0.24, 1), filter 650ms cubic-bezier(0.76, 0, 0.24, 1);
}

#app.is-exiting {
  opacity: 0;
  transform: scale(0.992);
  filter: blur(2px);
}

#app.is-entering {
  opacity: 0;
  transform: translateY(10px) scale(0.996);
  filter: blur(2px);
}

@media (prefers-reduced-motion: reduce) {
  .page-transition,
  #app {
    transition: none !important;
    animation: none !important;
  }

  .page-transition {
    transform: translateY(100%) !important;
  }

  #app.is-exiting,
  #app.is-entering {
    opacity: 1 !important;
    transform: none !important;
    filter: none !important;
  }
}

/* Preloader */
body.is-loading {
  overflow: hidden;
}

body.is-loading .page-transition {
  opacity: 0;
}

body.is-loading .site-header,
body.is-loading #app,
body.is-loading .footer {
  opacity: 0;
}

body.preloader-done .site-header,
body.preloader-done #app,
body.preloader-done .footer {
  opacity: 1;
  transition: opacity 520ms ease;
}

body.preloader-done {
  overflow: auto;
}

.preloader {
  position: fixed;
  inset: 0;
  z-index: 10000;
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  pointer-events: auto;
  background:
    radial-gradient(ellipse 120% 80% at 50% -20%, rgba(47, 128, 255, 0.35) 0%, transparent 55%),
    radial-gradient(ellipse 90% 70% at 100% 60%, rgba(245, 165, 36, 0.18) 0%, transparent 45%),
    radial-gradient(ellipse 70% 60% at 0% 100%, rgba(196, 181, 253, 0.12) 0%, transparent 50%),
    linear-gradient(168deg, #0a0512 0%, #1a0f28 28%, #241235 52%, #0f1629 100%);
}

@keyframes preloaderBlobA {
  from {
    transform: translate(0, 0) scale(1);
  }
  to {
    transform: translate(-32px, 24px) scale(1.08);
  }
}

@keyframes preloaderBlobB {
  from {
    transform: translate(0, 0) scale(1);
  }
  to {
    transform: translate(26px, -22px) scale(1.06);
  }
}

.preloader-noise {
  position: absolute;
  inset: -20%;
  opacity: 0.045;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  mix-blend-mode: overlay;
}

.preloader-grid {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.22;
  background-image:
    linear-gradient(rgba(251, 250, 247, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(251, 250, 247, 0.05) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 75% 65% at 50% 45%, #000 0%, transparent 72%);
}

.preloader-scan {
  position: absolute;
  inset: -50% 0;
  background: linear-gradient(
    180deg,
    transparent 0%,
    rgba(47, 128, 255, 0.07) 48%,
    rgba(255, 255, 255, 0.04) 50%,
    transparent 52%
  );
  animation: preloaderScan 6.5s ease-in-out infinite;
  pointer-events: none;
}

@keyframes preloaderScan {
  0%,
  100% {
    transform: translateY(-12%);
    opacity: 0.35;
  }
  50% {
    transform: translateY(12%);
    opacity: 0.65;
  }
}

.preloader::before,
.preloader::after {
  content: "";
  position: absolute;
  pointer-events: none;
  border-radius: 999px;
  filter: blur(72px);
  opacity: 0.32;
  mix-blend-mode: screen;
}

.preloader::before {
  width: min(420px, 55vw);
  height: min(420px, 55vw);
  top: -12%;
  right: -8%;
  background: radial-gradient(circle at 30% 30%, #ffc14d, var(--golden-orange) 45%, transparent 70%);
  animation: preloaderBlobA 11s ease-in-out infinite alternate;
}

.preloader::after {
  width: min(380px, 50vw);
  height: min(380px, 50vw);
  left: -12%;
  bottom: -18%;
  background: radial-gradient(circle at 60% 60%, #6aa8ff, var(--lightning-blue) 50%, transparent 72%);
  animation: preloaderBlobB 13s ease-in-out infinite alternate;
}

.preloader-inner {
  position: relative;
  width: min(780px, calc(100% - 48px));
  z-index: 1;
  padding: 28px 8px;
}

.preloader-frame {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

.preloader-corner {
  position: absolute;
  width: 44px;
  height: 44px;
  border-color: rgba(245, 165, 36, 0.55);
  border-style: solid;
  opacity: 0.85;
}

.preloader-corner--tl {
  top: 0;
  left: 0;
  border-width: 2px 0 0 2px;
}

.preloader-corner--tr {
  top: 0;
  right: 0;
  border-width: 2px 2px 0 0;
}

.preloader-corner--bl {
  bottom: 0;
  left: 0;
  border-width: 0 0 2px 2px;
}

.preloader-corner--br {
  bottom: 0;
  right: 0;
  border-width: 0 2px 2px 0;
}

.preloader-label {
  position: relative;
  z-index: 1;
  color: rgba(251, 250, 247, 0.72);
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-size: 11px;
  font-weight: 800;
  margin-bottom: 18px;
  animation: fadeUp 0.65s ease both;
}

.preloader-title-wrap {
  position: relative;
  z-index: 1;
  overflow: visible;
}

.preloader-logo-wrap {
  max-width: 380px;
}

.preloader-logo {
  width: 100%;
  color: var(--white);
  filter: drop-shadow(0 0 28px rgba(47, 128, 255, 0.35)) drop-shadow(0 0 40px rgba(245, 165, 36, 0.2));
  transform: translateY(110%) scale(0.96);
  animation: preloaderTitleIn 0.95s cubic-bezier(0.22, 1, 0.36, 1) 100ms forwards;
}

.preloader-title {
  font-size: clamp(56px, 12vw, 160px);
  line-height: 0.9;
  letter-spacing: -0.08em;
  color: var(--white);
  transform: translateY(110%);
  animation: preloaderTitleIn 0.8s cubic-bezier(0.22, 1, 0.36, 1) 120ms forwards;
}

@keyframes preloaderTitleIn {
  to {
    transform: translateY(0) scale(1);
  }
}

.preloader-tagline {
  position: relative;
  z-index: 1;
  margin-top: 18px;
  color: rgba(251, 250, 247, 0.9);
  font-size: clamp(17px, 2.4vw, 21px);
  font-weight: 500;
  letter-spacing: -0.02em;
  max-width: 26rem;
  line-height: 1.45;
}

.preloader-word {
  position: relative;
  z-index: 1;
  margin-top: 14px;
  color: rgba(251, 250, 247, 0.55);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 10px;
  font-weight: 800;
}

.preloader-word-slot,
.preloader-word span {
  display: inline-block;
  margin-left: 6px;
  padding: 4px 10px;
  color: var(--white);
  background: rgba(47, 128, 255, 0.22);
  border: 1px solid rgba(47, 128, 255, 0.45);
  border-radius: 4px;
  letter-spacing: 0.12em;
  min-width: 7.5rem;
  text-align: center;
  animation: preloaderWordPop 0.45s ease both;
}

@keyframes preloaderWordPop {
  from {
    opacity: 0;
    transform: translateY(6px) scale(0.94);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.preloader-bottom {
  position: relative;
  z-index: 1;
  margin-top: 36px;
  display: grid;
  gap: 14px;
}

.preloader-progress {
  position: relative;
  width: 100%;
  height: 6px;
  border-radius: 3px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.08);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.preloader-progress-bar {
  display: block;
  position: relative;
  z-index: 2;
  width: 0%;
  height: 100%;
  border-radius: 3px;
  background: linear-gradient(90deg, #d97706, var(--golden-orange), #ffe066, var(--golden-orange));
  background-size: 200% 100%;
  background-position: 0 0;
  box-shadow:
    0 0 24px rgba(245, 165, 36, 0.55),
    0 0 48px rgba(245, 165, 36, 0.2);
  transition: width 120ms linear;
  animation: preloaderBarShimmer 2.4s linear infinite;
}

@keyframes preloaderBarShimmer {
  from {
    background-position: 0 0;
  }
  to {
    background-position: 200% 0;
  }
}

.preloader-progress-shine {
  position: absolute;
  inset: 0;
  z-index: 3;
  background: linear-gradient(
    100deg,
    transparent 0%,
    rgba(255, 255, 255, 0.35) 50%,
    transparent 100%
  );
  width: 40%;
  transform: translateX(-120%);
  animation: preloaderShineSweep 2.2s ease-in-out infinite;
  pointer-events: none;
  mix-blend-mode: overlay;
}

@keyframes preloaderShineSweep {
  0% {
    transform: translateX(-140%);
  }
  55% {
    transform: translateX(320%);
  }
  100% {
    transform: translateX(320%);
  }
}

.preloader-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.preloader-hint {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(251, 250, 247, 0.38);
}

.preloader-count {
  font-variant-numeric: tabular-nums;
  color: rgba(251, 250, 247, 0.92);
  font-size: 13px;
  letter-spacing: 0.12em;
  font-weight: 800;
  text-shadow: 0 0 20px rgba(47, 128, 255, 0.35);
}

.preloader.is-finishing {
  animation: none;
  transform: translateY(-108%) scale(0.97);
  filter: blur(5px) saturate(1.1);
  opacity: 0.98;
  transition:
    transform 880ms cubic-bezier(0.76, 0, 0.24, 1),
    filter 880ms ease,
    opacity 420ms ease 360ms;
}

.preloader.is-hidden {
  opacity: 0;
  pointer-events: none;
  visibility: hidden;
}

@media (max-width: 760px) {
  .brand-logo {
    width: 170px;
  }

  .preloader-inner {
    width: calc(100% - 32px);
  }

  .preloader-title {
    font-size: clamp(44px, 14vw, 84px);
  }

  .preloader-tagline {
    font-size: 15px;
  }

  .preloader-word {
    font-size: 10px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .preloader,
  .preloader *,
  #app,
  .site-header,
  .footer {
    animation: none !important;
    transition: none !important;
  }
}

/* Apple-like tuning + classic hero return */
.hero-classic {
  min-height: 88vh;
  position: relative;
  overflow: hidden;
}

.hero-classic-content {
  position: relative;
  z-index: 1;
  max-width: 900px;
  transform: translateY(calc(var(--hero-shift) * 0.35));
  transition: transform 0.18s linear;
}

.hero-classic .hero-label,
.hero-classic h1,
.hero-classic p,
.hero-classic .hero-actions,
.hero-classic .scroll-indicator {
  animation: heroRise 0.75s cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

.hero-classic .hero-label { animation-delay: 0.05s; }
.hero-classic h1 { animation-delay: 0.12s; }
.hero-classic p { animation-delay: 0.2s; }
.hero-classic .hero-actions { animation-delay: 0.28s; }
.hero-classic .scroll-indicator { animation-delay: 0.36s; }

[data-reveal] {
  transform: translateY(18px);
  transition: opacity 0.6s cubic-bezier(0.2, 0.8, 0.2, 1), transform 0.6s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.story-step {
  transform: scale(0.992);
  transition: opacity 0.45s cubic-bezier(0.2, 0.8, 0.2, 1), transform 0.45s cubic-bezier(0.2, 0.8, 0.2, 1), border-color 0.45s ease, box-shadow 0.45s ease;
}

.story-step.is-active {
  transform: scale(1);
  box-shadow: 0 14px 34px rgba(36, 18, 53, 0.08);
}

.story-visual {
  transition: transform 0.4s cubic-bezier(0.2, 0.8, 0.2, 1), opacity 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.cinematic-project-card {
  transition: transform 0.35s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.35s ease, border-color 0.35s ease;
}

.cinematic-project-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 42px rgba(36, 18, 53, 0.1);
}

.cinematic-project-card:hover .cinematic-project-image img {
  transform: scale(1.035);
}

/* ================================
   Mobile Optimization
================================ */
html,
body {
  overflow-x: hidden;
}

a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--lightning-blue);
  outline-offset: 4px;
}

.menu-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  min-width: 44px;
  padding: 10px;
  border-radius: 10px;
  border: 1px solid rgba(36, 18, 53, 0.16);
  background: rgba(255, 255, 255, 0.92);
  color: var(--deep-purple);
  cursor: pointer;
  position: relative;
  z-index: 220;
  -webkit-tap-highlight-color: transparent;
}

.menu-toggle-bars {
  display: block;
  width: 22px;
  height: 16px;
  position: relative;
}

.menu-toggle-bar {
  display: block;
  position: absolute;
  left: 0;
  width: 100%;
  height: 2px;
  border-radius: 2px;
  background: var(--deep-purple);
  transition:
    transform 0.3s cubic-bezier(0.2, 0.8, 0.2, 1),
    top 0.3s cubic-bezier(0.2, 0.8, 0.2, 1),
    bottom 0.3s cubic-bezier(0.2, 0.8, 0.2, 1),
    opacity 0.2s ease;
}

.menu-toggle-bar:nth-child(1) {
  top: 0;
}

.menu-toggle-bar:nth-child(2) {
  top: 7px;
}

.menu-toggle-bar:nth-child(3) {
  bottom: 0;
}

.menu-toggle[aria-expanded="true"] .menu-toggle-bar:nth-child(1) {
  top: 7px;
  transform: rotate(45deg);
}

.menu-toggle[aria-expanded="true"] .menu-toggle-bar:nth-child(2) {
  opacity: 0;
  transform: scaleX(0.2);
}

.menu-toggle[aria-expanded="true"] .menu-toggle-bar:nth-child(3) {
  bottom: 7px;
  transform: rotate(-45deg);
}

@media (max-width: 1024px) {
  .site-header {
    padding: 18px;
  }

  .hero,
  .page-intro,
  .home-highlight,
  .selected-projects,
  .project-grid,
  .about-layout,
  .about-page,
  .project-detail {
    padding: 64px 20px;
  }

  .story-step,
  .cinematic-project-card,
  .principle-card {
    box-shadow: 0 10px 24px rgba(36, 18, 53, 0.08);
  }
}

@media (max-width: 860px) {
  .menu-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  body.menu-open {
    overflow: hidden;
  }

  .nav {
    position: fixed;
    inset: 0;
    z-index: 180;
    display: block;
    pointer-events: none;
    background: transparent;
  }

  .nav.is-open {
    pointer-events: auto;
    z-index: 210;
  }

  .nav-drawer-backdrop {
    display: block;
    position: absolute;
    inset: 0;
    cursor: pointer;
    background: rgba(36, 18, 53, 0.38);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    opacity: 0;
    transition: opacity 0.35s ease;
  }

  .nav.is-open .nav-drawer-backdrop {
    opacity: 1;
  }

  .nav-drawer {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    gap: 12px;
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    width: min(88vw, 300px);
    max-width: 100%;
    min-height: 100vh;
    min-height: 100dvh;
    min-height: -webkit-fill-available;
    padding: max(88px, calc(env(safe-area-inset-top, 0px) + 72px)) 22px max(28px, env(safe-area-inset-bottom, 0px))
      max(18px, env(safe-area-inset-right, 0px));
    background: #241235;
    box-shadow: -16px 0 48px rgba(0, 0, 0, 0.28);
    transform: translateX(100%);
    transition: transform 0.42s cubic-bezier(0.2, 0.85, 0.2, 1);
  }

  .nav.is-open .nav-drawer {
    transform: translateX(0);
  }

  .nav a {
    color: rgba(251, 250, 247, 0.95);
    font-size: clamp(22px, 5.5vw, 28px);
    min-height: 48px;
    display: inline-flex;
    align-items: center;
    padding: 4px 0;
    width: 100%;
  }

  .nav-drawer a.is-active {
    color: rgba(251, 250, 247, 0.98);
  }

  .nav-drawer a:hover {
    color: #fff;
  }

  .nav-drawer a.nav-cta:hover {
    color: var(--deep-purple) !important;
  }

  .nav-drawer a.nav-cta {
    margin-top: 22px;
    width: fit-content;
    max-width: 100%;
    min-width: 11rem;
    align-self: center;
    justify-content: center;
    text-align: center;
    padding: 14px 32px;
    min-height: 48px;
    background: var(--golden-orange);
    color: var(--deep-purple) !important;
  }

  .nav-drawer a.nav-cta::after {
    display: none;
  }

  .hero-story {
    min-height: auto;
    padding-top: 72px;
    padding-bottom: 64px;
  }

  .hero h1 {
    font-size: clamp(44px, 14vw, 72px);
    line-height: 0.93;
  }

  .hero p {
    font-size: 18px;
    margin-top: 20px;
  }

  .scroll-indicator {
    margin-top: 20px;
  }

  .home-story {
    grid-template-columns: 1fr;
    padding-top: 0;
  }

  .story-intro {
    position: static;
  }

  .story-step {
    opacity: 1;
    transform: none;
  }

  .home-highlight-inner {
    grid-template-columns: 1fr;
    padding: 28px 22px 32px;
  }

  .home-highlight-visual {
    order: -1;
  }

  .home-highlight-visual img {
    min-height: 200px;
  }

  .cinematic-grid,
  .project-grid,
  .overview-grid,
  .case-stats,
  .decision-grid,
  .system-grid,
  .case-reflection,
  .about-layout,
  .about-hero,
  .about-board,
  .case-hero-grid,
  .timeline-item {
    grid-template-columns: 1fr;
  }

  .cinematic-card,
  .project-image {
    aspect-ratio: 16 / 11;
  }

  .project-card:active,
  .cinematic-card:active {
    transform: scale(0.99);
  }

  .case-page {
    padding: 56px 18px;
  }

  .case-showcase img {
    height: min(42vh, 360px);
  }

  .case-showcase .case-hero-video {
    height: min(42vh, 360px);
  }

  .case-block p,
  .timeline-item p,
  .about-text,
  .project-hero span {
    font-size: 18px;
  }
}

@media (max-width: 760px) {
  .page-transition {
    transition-duration: 480ms;
  }

  #app.is-exiting {
    filter: none;
    transform: translateY(-6px);
  }

  #app.is-entering {
    filter: none;
    transform: translateY(8px);
  }

  .btn {
    min-height: 44px;
  }

  .hero-actions {
    width: 100%;
  }

  .hero-actions .btn {
    width: 100%;
  }

  .preloader-tagline {
    max-width: 300px;
  }
}

@media (max-width: 520px) {
  .brand-logo {
    width: 146px;
  }

  .site-header {
    padding: 14px 12px;
  }

  .hero,
  .page-intro,
  .selected-projects,
  .project-grid,
  .about-layout,
  .about-page,
  .project-detail,
  .case-page {
    padding-left: 14px;
    padding-right: 14px;
  }

  .project-info h3 {
    font-size: 24px;
  }
}

/* ================================
   Mobile Optimization Refactor
================================ */
html,
body {
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
}

main,
section,
article,
div {
  min-width: 0;
}

.site-header,
.hero,
.page-intro,
.selected-projects,
.project-grid,
.about-layout,
.about-page,
.project-detail,
.case-page,
.home-story,
.story-rail,
.cinematic-grid,
.project-filter-section {
  max-width: 100%;
}

@media (max-width: 860px) {
  .site-header {
    position: sticky;
    top: 0;
    z-index: 90;
    padding: 14px 14px;
    background: transparent;
  }

  .menu-toggle {
    display: inline-flex;
    position: relative;
    z-index: 220;
    min-height: 44px;
  }

  .hero-story {
    min-height: auto;
    padding-top: 28px;
  }

  .hero h1,
  .page-intro h1,
  .project-hero h1,
  .case-hero h1 {
    font-size: clamp(36px, 12vw, 64px);
    line-height: 0.94;
    letter-spacing: -0.05em;
    word-break: break-word;
  }

  .hero p,
  .project-hero span,
  .about-text,
  .case-block p,
  .timeline-item p {
    font-size: 17px;
    line-height: 1.55;
  }

  .hero-actions {
    width: 100%;
    gap: 10px;
  }

  .hero-actions .btn {
    width: 100%;
    min-height: 46px;
  }

  .home-story {
    grid-template-columns: 1fr !important;
    padding: 8px 16px 52px !important;
    gap: 14px !important;
  }

  .story-intro {
    position: static !important;
    top: auto !important;
    padding: 22px !important;
  }

  .story-step,
  .story-step.is-active {
    transform: none !important;
    opacity: 1 !important;
  }

  .story-step h3 {
    font-size: clamp(26px, 8vw, 40px);
  }

  .story-step p,
  .story-step > span {
    font-size: 16px;
  }

  .cinematic-grid,
  .project-grid {
    grid-template-columns: 1fr !important;
    gap: 14px !important;
  }

  .project-card,
  .cinematic-card {
    width: 100%;
  }

  .project-image,
  .cinematic-card,
  .cinematic-card img {
    aspect-ratio: 16 / 11;
  }

  .case-page {
    padding: 52px 16px !important;
  }

  .case-overview,
  .case-process,
  .case-decisions,
  .visual-system,
  .case-outcome,
  .case-reflection {
    padding: 48px 0 !important;
  }

  .case-hero-grid,
  .overview-grid,
  .case-stats,
  .timeline-item,
  .decision-grid,
  .system-grid,
  .case-reflection,
  .about-layout,
  .about-board {
    grid-template-columns: 1fr !important;
    gap: 18px !important;
  }

  .case-meta-card,
  .overview-card,
  .decision-card,
  .system-grid div,
  .stat-card {
    padding: 20px;
  }

  .timeline-item {
    padding: 20px 0;
  }
}

@media (max-width: 760px) {
  .page-transition {
    transition-duration: 420ms !important;
  }

  #app.is-exiting {
    transform: translateY(-4px) !important;
    filter: none !important;
  }

  #app.is-entering {
    transform: translateY(6px) !important;
    filter: none !important;
  }

  .preloader-inner {
    width: calc(100% - 28px) !important;
  }

  .preloader-logo-wrap {
    max-width: 280px;
  }

  .preloader-tagline {
    max-width: 320px;
    font-size: 14px !important;
    line-height: 1.45;
  }

  .preloader-title {
    font-size: clamp(42px, 13vw, 72px) !important;
  }
}

@media (max-width: 520px) {
  .site-header {
    padding: 12px 10px !important;
  }

  .brand-logo {
    width: 132px !important;
  }

  .hero,
  .page-intro,
  .selected-projects,
  .project-grid,
  .about-layout,
  .about-page,
  .project-detail,
  .case-page {
    padding-left: 12px !important;
    padding-right: 12px !important;
  }

  .project-info {
    padding: 18px;
  }

  .project-info h3 {
    font-size: 22px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .story-step,
  .project-card,
  .cinematic-card,
  .cinematic-project-card,
  .page-transition,
  #app,
  .preloader,
  .preloader * {
    animation: none !important;
    transition: none !important;
    transform: none !important;
    filter: none !important;
  }
}

/* Final sticky header safeguard (no transform — fixed nav must use viewport, not header box) */
.site-header {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  margin-left: auto !important;
  margin-right: auto !important;
  transform: none !important;
  z-index: 200 !important;
  width: min(100%, var(--max-width));
  background: rgba(251, 250, 247, 0.62);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

@media (max-width: 860px) {
  body.menu-open .site-header {
    z-index: 230 !important;
    background: transparent !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    box-shadow: none;
  }
}

body {
  padding-top: 92px;
}

@media (max-width: 860px) {
  body {
    padding-top: 72px;
  }
}

/* Desktop width tuning */
@media (min-width: 1200px) {
  :root {
    --max-width: 1320px;
  }

  .site-header,
  .hero,
  .page-intro,
  .selected-projects,
  .project-grid,
  .about-layout,
  .about-page,
  .project-detail,
  .project-filter-section,
  .home-story,
  .story-section,
  .principles-section,
  .home-final-cta,
  .case-page,
  .footer {
    max-width: var(--max-width);
    padding-left: 32px;
    padding-right: 32px;
  }

  .hero-story-content {
    max-width: 980px;
  }

  .story-layout {
    gap: 56px;
  }
}

@media (min-width: 1600px) {
  :root {
    --max-width: 1440px;
  }
}