@font-face {
  font-family: 'KapraNeueRegular';
  src: url('/fonts/KapraNeueRegular.70e2cdd4.otf') format('opentype');
  font-weight: normal;
  font-style: normal;
}

:root{
  --bg:#ffffff;
  --text:#101010;
  --muted:#6b6b6b;
  --line:#ececec;
  --hover:#fafafa;
}

*{ box-sizing:border-box; }
html,body{ height:100%; }
body{
  margin:0;
  font-family: 'Bree Serif', system-ui, -apple-system, Segoe UI, Roboto, "Helvetica Neue", Arial, "Noto Sans";
  color:var(--text);
  background:var(--bg);
  -webkit-font-smoothing:antialiased;
  -moz-osx-font-smoothing:grayscale;
}

.wrap{
  max-width:1200px;
  margin:0 auto;
  padding:48px 24px 96px;
}

h1{
    font-family:'SUSE Mono', monospace;
    font-weight:300;
    letter-spacing:0.5px;
    font-size:20px;
    margin:0 0 18px;
    display: flex;
    align-items: baseline;
    gap: 8px;
    margin-bottom: 5rem;
    }

.project-count{
  font-family:'SUSE Mono', monospace;
  font-size: clamp(12px, 1.2vw, 16px);
  color: #e85a4f;
  font-weight: 300;
  vertical-align: top;
  line-height: 1;
  position: relative;
  top: -0.8rem;
}

/* Right Sidebar Styles - matching designer.html */
.right-sidebar {
    position: fixed;
    top: 0;
    right: 0;
    width: 5.63vw;
    height: 100vh;
    z-index: 100;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-left: 1.04vw;
}

.sidebar-nav {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    margin-top: 3.70vh;
}

.nav-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20.26vh;
    margin-bottom: 4.63vh;
    margin-right: 0.52vw;
}

.nav-item {
    transform: rotate(-90deg);
    white-space: nowrap;
}

.nav-link {
    color: #666;
    text-decoration: none;
    font-family: 'Saira', sans-serif;
    font-size: 0.83vw;
    font-weight: 600;
    letter-spacing: 0.26vw;
    text-transform: uppercase;
    display: block;
    padding: 0.93vh 0;
    position: relative;
    overflow: hidden;
}

/* Expanding border bottom hover effect */
.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 0.19vh;
    background-color: #666;
    transition: width 0.4s ease !important;
}

.nav-link:hover::after {
    width: 100%;
}

.nav-link:active::after,
.nav-link.active::after {
    width: 100%;
}

/* Black Curtain for Panel Background */
.panel-curtain {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(0.42vw);
    z-index: 10;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.panel-curtain.active {
    opacity: 1;
    visibility: visible;
}

/* Slide-out Panel Styles */
.slide-panel {
    position: fixed;
    top: 0;
    right: 0;
    height: 100vh;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(0.52vw);
    z-index: 25;
    transform: translateX(100%);
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
    will-change: transform, background-color;
}

.slide-panel.active {
    transform: translateX(0);
}

/* Contact Panel Styles - matching designer.html exactly */
.contact-panel {
    width: 100% !important;
    height: 100vh !important;
    background: #d6c432 !important;
    backdrop-filter: none !important;
    transform: translateY(-100%) !important;
    right: 0 !important;
    left: 0 !important;
    top: 0 !important;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1) !important;
    z-index: 9999 !important;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2.08vw;
}

.contact-panel.active {
    transform: translateY(0) !important;
}

/* Contact Panel Header and Image */
.contact-header {
    position: absolute;
    top: 8.89vh;
    left: 50%;
    transform: translateX(-50%);
    margin-bottom: 0;
    overflow: hidden;
}

.contact-image {
    max-width: 20.83vw;
    height: auto;
    display: block;
    margin: 0 auto;
    transition: transform 1s cubic-bezier(0.25, 0.46, 0.45, 0.94) 0.2s;
    cursor: pointer;
}

.contact-links {
    display: flex;
    flex-direction: column;
    gap: 0.46vh;
    align-items: center;
    justify-content: center;
}

.contact-link {
    font-family: 'Raleway', sans-serif;
    font-size: 1.67vw;
    font-weight: 100;
    color: #000;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0px;
    transition: all 0.3s ease;
    display: block;
    background: none;
    border: none;
    padding: 0;
}

.contact-link:hover {
    color: #333;
    transform: scale(1.05);
}

/* Contact Panel Close Button */
.panel-close-btn {
    position: absolute;
    top: 4.44vh;
    right: 2.34vw;
    width: 2.08vw;
    height: 3.70vh;
    cursor: pointer;
    z-index: 1000;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.panel-close-btn::before,
.panel-close-btn::after {
    content: '';
    position: absolute;
    width: 1.56vw;
    height: 0.09vh;
    background-color: #000;
    transition: all 0.3s ease;
}

.panel-close-btn::before {
    transform: rotate(45deg);
}

.panel-close-btn::after {
    transform: rotate(-45deg);
}

.panel-close-btn:hover::before,
.panel-close-btn:hover::after {
    background-color: #333;
}

.panel-close-btn:hover::before {
    transform: rotate(135deg);
}

.panel-close-btn:hover::after {
    transform: rotate(45deg);
}

/* Contact Panel specific content adjustments */
.contact-panel .panel-content {
    padding: 5.93vh 2.08vw;
    justify-content: center;
    align-items: center;
    text-align: center;
    position: relative;
    height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Column grid */
.grid{
  display:grid;
  grid-template-columns: 1fr 2fr 1.2fr 0.8fr;
  gap:24px;
  align-items:start;
}

/* Header row */
.header{
  position:sticky;
  top:0;
  z-index:5;
  background:var(--bg);
  color:var(--muted);
  text-transform:uppercase;
  font-size:12px;
  letter-spacing:.08em;
  padding:14px 0;
  border-top:1px solid var(--line);
  border-bottom:1px solid var(--line);
}

/* Data row */
.row{
  padding:26px 0;
  border-bottom:1px solid var(--line);
}

a.rowlink{
  display:block;
  color:inherit;
  text-decoration:none;
}

.name-grid{
  height: 100%;
  min-height: 60px;
  padding: 10px 0;
  cursor: pointer;
}

.title{
  margin:0;
  font-family:'KapraNeueRegular', 'Ambit', sans-serif;
  font-weight:600;
  text-transform:uppercase;
  letter-spacing:.02em;
  font-size:clamp(18px, 2.1vw, 26px);
}

.muted, .description, .skills, .timeline{
  font-family: 'Bree Serif', serif;
  color:var(--muted);
  line-height:1.8;
  font-size:15px;
}

.description{
  font-family: 'Bree Serif', serif;
  color:var(--muted);
}

.skills{
  font-family: 'Bree Serif', serif;
  color:var(--muted);
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  font-size:14px;
}

.skill-tag{
  font-family: 'Bree Serif', serif;
  display: inline-block;
  background: #f5f5f5;
  color: var(--text);
  padding: 4px 10px;
  border-radius: 12px;
  font-size: 13px;
  border: 1px solid #e0e0e0;
  transition: background-color 0.2s ease;
}

.skill-tag:hover{
  background: #eeeeee;
}

.timeline{
  font-family: 'Bree Serif', serif;
  color:#999999;
  font-size:14px;
  text-align:right;
  line-height: 1.4;
}

/* Hide mobile images on desktop */
.mobile-project-image {
  display: none;
}

/* Image hover container */
.image-preview {
    position: fixed;
    top: 29rem;
    left: 31.5rem;
    transform: translateY(-50%);
    width: 35rem;
    height: 23rem;
    background: #f8f8f8;
    border: 1px solid var(--line);
    border-radius: 8px;
    overflow: hidden;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    z-index: 1000;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.image-preview.show{
  opacity: 1;
  visibility: visible;
}

.image-preview img{
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.title:hover{
  color: var(--text);
}

/* Mobile layout */
.label{ display:none; }
@media (max-width: 1024px){
  /* Right Sidebar Mobile Styles */
  .right-sidebar {
    position: fixed;
    top: 2rem;
    right: 1.5rem;
    width: auto;
    height: auto;
    z-index: 100;
    display: flex;
    flex-direction: row;
    align-items: center;
    padding: 0.8rem 1.2rem;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 25px;
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  }

  h1{
    font-family:'SUSE Mono', monospace;
    font-weight:300;
    letter-spacing:0.5px;
    font-size:20px;
    margin:0 0 18px;
    display: flex;
    align-items: baseline;
    gap: 8px;
    margin-bottom: 0rem;
    margin-top: 4rem;
    }

  .sidebar-nav {
    flex: none;
    display: flex;
    align-items: center;
    justify-content: center;
    width: auto;
    margin: 0;
  }

  .nav-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 1.5rem;
  }

  .nav-item {
    transform: none;
    white-space: nowrap;
  }

  .nav-link {
    color: #666;
    text-decoration: none;
    font-family: 'Saira', sans-serif;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.1rem;
    text-transform: uppercase;
    display: block;
    padding: 0.5rem 0;
    position: relative;
    overflow: hidden;
  }

  /* Contact Panel Mobile Styles - matching designer.html */
  .contact-panel {
    width: 100% !important;
    height: 100vh !important;
    background: #d6c432 !important;
    backdrop-filter: none !important;
    transform: translateY(-100%) !important;
    padding: 1.5rem;
  }

  .contact-panel.active {
    transform: translateY(0) !important;
  }

  .contact-panel .panel-content {
    padding: 3rem 1.5rem;
    justify-content: center;
    align-items: center;
    text-align: center;
    position: relative;
    height: 100vh;
    display: flex;
    flex-direction: column;
  }

  .contact-header {
    position: absolute;
    top: 15vh;
    left: 50%;
    transform: translateX(-50%);
    margin-bottom: 0;
    overflow: hidden;
  }

  .contact-image {
    max-width: 60vw;
    height: auto;
    display: block;
    margin: 0 auto;
  }

  .contact-links {
    gap: 2vh;
    align-items: center;
    justify-content: center;
  }

  .contact-link {
    font-size: 5vw;
    font-weight: 100;
    background: none;
    border: none;
    padding: 0;
  }

  /* Contact Panel Close Button Mobile */
  .panel-close-btn {
    top: 1.5rem;
    right: 1.5rem;
    width: 2rem;
    height: 2rem;
  }

  .panel-close-btn::before,
  .panel-close-btn::after {
    width: 1.2rem;
    height: 2px;
  }

  /* Hide popup image preview on mobile */
  .image-preview {
    display: none;
  }

  /* Show Mobile Project Images */
  .mobile-project-image {
    display: block !important;
    width: 100% !important;
    height: 200px !important;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 15px;
    border: 1px solid var(--line);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    opacity: 1 !important;
    visibility: visible !important;
  }
  
  .header{ display:none; }
  .row{ padding:18px 0 24px; }
  .grid{ grid-template-columns: 1fr; gap:10px; }
  .label{
    font-family: 'Bree Serif', serif;
    display:block;
    color:var(--muted);
    text-transform:uppercase;
    font-size:11px;
    letter-spacing:.08em;
    margin:0 0 6px;
  }
}