



@font-face {
  font-family: "Fraunces";
  src: url("/assets/fonts/Fraunces.woff2") format("woff2");
  font-weight: 300 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Fraunces";
  src: url("/assets/fonts/Fraunces-Italic.woff2") format("woff2");
  font-weight: 300 700;
  font-style: italic;
  font-display: swap;
}

@font-face {
  font-family: "JetBrains Mono";
  src: url("/assets/fonts/JetBrainsMono-Regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
    --ink: #0f0f0e;
    --paper: #f5f7fa;
    --mute: #6a6c70;
    --line: #e5e6ea;
    --line-dark: #2a2a28;
    --accent: #1a1a18;
    --input-border: #7c7e82;
    --wave-ink: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 60 12'><path d='M0 6 Q 7.5 1 15 6 T 30 6 T 45 6 T 60 6' fill='none' stroke='%230f0f0e' stroke-width='1.5' stroke-linecap='round'/></svg>");
    --wave-paper: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 60 12'><path d='M0 6 Q 7.5 1 15 6 T 30 6 T 45 6 T 60 6' fill='none' stroke='%23f5f7fa' stroke-width='1.5' stroke-linecap='round'/></svg>");
    
    --wave-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 60 12'><path d='M0 6 Q 7.5 1 15 6 T 30 6 T 45 6 T 60 6' fill='none' stroke='black' stroke-width='1.5' stroke-linecap='round'/></svg>");
  }

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

  html { scroll-behavior: smooth; }

  body {
    background: var(--paper);
    color: var(--ink);
    font-family: "Fraunces", Georgia, serif;
    font-optical-sizing: auto;
    font-weight: 380;
    font-variation-settings: "SOFT" 50;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    line-height: 1.5;
    overflow-x: hidden;
  }

  .mono {
    font-family: "JetBrains Mono", ui-monospace, monospace;
    font-size: 14px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    font-weight: 400;
  }


  .topbar {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 100;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 22px 40px;
    color: var(--paper); 
    transition: color 0.35s ease;
  }
  .topbar.over-light { color: var(--ink); }
  .topbar.over-dark  { color: var(--paper); }

  .topbar .mono {
    font-size: 16px;
  }
  .topbar a { color: inherit; text-decoration: none; }
  
  .nav-link {
    position: relative;
    display: inline-block;
    padding-bottom: 14px;
    font-size: 16px;
  }
  .nav-link::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    height: 12px;
    width: 0;
    background-color: currentColor;
    -webkit-mask-image: var(--wave-mask);
            mask-image: var(--wave-mask);
    -webkit-mask-size: 60px 12px;
            mask-size: 60px 12px;
    -webkit-mask-repeat: repeat-x;
            mask-repeat: repeat-x;
    -webkit-mask-position: 0 0;
            mask-position: 0 0;
    transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  }
  .nav-link:hover::after { width: 100%; }



  
  .visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0 0 0 0);
    clip-path: inset(50%);
    white-space: nowrap;
    border: 0;
  }

  
  .skip-link {
    position: absolute;
    top: 0;
    left: 0;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    clip-path: inset(50%);
    white-space: nowrap;
    z-index: 200;
  }
  .skip-link:focus {
    top: 20px;
    left: 20px;
    width: auto;
    height: auto;
    overflow: visible;
    clip: auto;
    clip-path: none;
    background: var(--ink);
    color: var(--paper);
    border: 1px solid var(--paper);
    padding: 12px 20px;
    font-family: "JetBrains Mono", ui-monospace, monospace;
    font-size: 14px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    font-weight: 400;
    text-decoration: none;
  }

  
  .nav-link[aria-current="page"] {
    cursor: default;
  }
  .nav-link[aria-current="page"]::after {
    display: none;
  }


  .nav-link:focus-visible {
    outline: 1px solid currentColor;
    outline-offset: 4px;
  }
  .footer-works-list a:focus-visible {
    outline: 1px solid currentColor;
    outline-offset: 4px;
  }
  .contact-button:focus-visible {
    outline: 1px solid currentColor;
    outline-offset: 4px;
  }

  
  .left {
    display: flex;
    align-items: center;
  }
  .right {
    display: flex;
    align-items: center;
    gap: 28px;
  }

  .work-menu {
    position: relative;
  }
  .work-trigger {
    
    appearance: none;
    background: transparent;
    border: 0;
    margin: 0;
    
    padding: 0 0 14px 0;
    font: inherit;
    font-size: 16px; 
    letter-spacing: inherit; 
    color: inherit;
    text-transform: inherit;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
  }
  .work-trigger:focus-visible {
    outline: 1px solid currentColor;
    outline-offset: 4px;
  }
  
  .work-trigger::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    height: 8px;
  }
  .work-caret {
    width: 10px;
    height: 10px;
    flex-shrink: 0;
    transition: transform 0.20s ease;
  }
  .work-menu:hover .work-caret,
  .work-menu:focus-within .work-caret {
    transform: rotate(180deg);
  }

  .work-panel {
    position: absolute;
    top: calc(100% + 6px);
    right: 0;
    display: flex;
    flex-direction: column;
    min-width: 220px;
    
    background: var(--paper);
    color: var(--ink);
    border: 1px solid var(--line);
    box-shadow: 0 8px 24px rgba(15, 15, 14, 0.08);
    padding: 8px 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-4px);
    transition:
      opacity 0.20s ease,
      transform 0.20s ease,
      visibility 0s linear 0.20s;
  }
  .work-menu:hover .work-panel,
  .work-menu:focus-within .work-panel {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    transition:
      opacity 0.20s ease,
      transform 0.20s ease,
      visibility 0s linear 0s;
  }
  .work-panel a {
    display: block;
    padding: 8px 16px;
    font-family: "JetBrains Mono", ui-monospace, monospace;
    font-size: 12px;
    font-weight: 400;
    letter-spacing: 0.04em;
    text-transform: none;
    color: var(--ink);
    text-decoration: none;
    white-space: nowrap;
    transition: background-color 0.15s ease;
  }
  .work-panel a:hover,
  .work-panel a:focus-visible {
    background: rgba(15, 15, 14, 0.05);
  }
  .work-panel a:focus-visible {
    outline: 1px solid var(--ink);
    outline-offset: -1px;
  }

  

  
  @media (max-width: 720px) {
    .right { gap: 18px; }
  }


  .reveal {
    opacity: 0;
    transform: translateY(18px);
    animation: fadeUp 1s cubic-bezier(0.22, 1, 0.36, 1) forwards;
  }
  @keyframes fadeUp {
    to { opacity: 1; transform: translateY(0); }
  }
  .d1 { animation-delay: 0.15s; }
  .d2 { animation-delay: 0.30s; }
  .d3 { animation-delay: 0.50s; }
  .d4 { animation-delay: 0.70s; }
  .d5 { animation-delay: 0.90s; }
  .d6 { animation-delay: 1.10s; }

  
  .js .scroll-reveal {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 1s cubic-bezier(0.22, 1, 0.36, 1), transform 1s cubic-bezier(0.22, 1, 0.36, 1);
  }
  .js .scroll-reveal.in-view {
    opacity: 1;
    transform: translateY(0);
  }


@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
  .js .scroll-reveal { opacity: 1; transform: none; }
  .reveal { opacity: 1; transform: none; }
}
