:root{
  --bg:#fafafa;
  --card:#ffffff;
  --muted:#9aa0a6;
  --accent:#111111;
  --transition:700ms cubic-bezier(0.4, 0, 0.2, 1);
}
*{box-sizing:border-box}
html,body{height:100%}
body{
  margin:0;
  font-family: 'Open Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  background:#ffffff;
  color:var(--accent);
  -webkit-font-smoothing:antialiased;
  -moz-osx-font-smoothing:grayscale;
}
.app{
  position:relative;
  width:100%;
  height:100vh;
  overflow:hidden;
}
.home{
  position:relative;
  width:100%;
  height:100%;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  padding:48px 20px;
  transition:transform var(--transition);
}

.home-inner{
  width:100%;
  max-width:720px;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  gap:18px;
  margin:0 auto;
}
.logo{width:220px;max-width:40%;height:auto;display:block;margin:0 auto 22px;cursor:pointer}

.contacts{display:flex;gap:14px;justify-content:center;align-items:center;margin-top:8px}
.contact{display:inline-flex;align-items:center;justify-content:center;width:36px;height:36px;border-radius:8px;background:transparent;border:0}
.contact svg{width:22px;height:22px;fill:var(--accent);transition:transform var(--transition), fill var(--transition)}
.contact:hover svg{transform:translateY(-3px);fill:var(--muted)}
.contact:focus{outline:2px solid rgba(0,0,0,0.08);outline-offset:2px}
.links{display:flex;flex-direction:column;gap:20px;align-items:center;justify-content:center;position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);width:100%;z-index:2}
.link-btn{
  background:transparent;border:0;color:#ffffff;font-size:20px;padding:10px 14px;cursor:pointer;letter-spacing:0.02em;border-radius:6px;font-weight:100;font-family:'Futura', -apple-system, BlinkMacSystemFont, sans-serif
}
.link-btn:hover{color:rgba(255,255,255,0.8);background:transparent}

/* Nav underline hover effect using ::before (top) and ::after (bottom)
   Implemented with scaleX transform so lines animate without affecting layout. */
.link-btn{position:relative;display:inline-block;color:#ffffff}
.link-btn::after,
.link-btn::before{
  content: '';
  position: absolute;
  width: 100%;
  height: 2px;
  background: #ffffff;
  left: 0;
  transform: scaleX(0);
  pointer-events: none;
  transition: transform 0.4s ease-out;
}
.link-btn::before{
  top: -5px;
  transform-origin: left;
}
.link-btn::after{
  bottom: -5px;
  transform-origin: right;
}
.link-btn:hover::after,
.link-btn:hover::before,
.link-btn:focus::after,
.link-btn:focus::before,
.link-btn:focus-visible::after,
.link-btn:focus-visible::before{
  transform: scaleX(1);
}
.hero{width:100%;max-width:600px;display:flex;justify-content:center;position:relative;margin-top:24px}
.hero-img{width:100%;max-width:500px;height:auto}

.projects-panel{
  position:absolute;
  top:0;
  right:0;
  width:75%;
  max-width:1000px;
  height:100%;
  background: linear-gradient(180deg,#ffd6e8,#ffb3d6);
  box-shadow: -12px 0 30px rgba(16,24,32,0.06);
  transform:translateX(100%);
  transition: transform var(--transition);
  display:flex;
  flex-direction:column;
  padding:48px;
  z-index:30;
}
.panel-header{display:flex;justify-content:flex-start;margin-bottom:18px}
.back-btn{background:#ff69b4;color:#fff;border:1px solid #ff69b4;padding:8px 12px;border-radius:6px;cursor:pointer;font-family:'Futura', -apple-system, BlinkMacSystemFont, sans-serif;font-weight:100}
.projects-list{display:flex;flex-direction:column;gap:24px;margin-top:8px;flex:1;overflow-y:auto;padding:16px}

/* Card: two-column summary (image left, text right) */
.project-card{
  background:var(--card);
  padding:20px;
  border-radius:14px;
  cursor:pointer;
  box-shadow:0 12px 24px rgba(16,24,32,0.15);
  border:1px solid rgba(16,24,32,0.04);
  overflow:hidden; /* prevent spill */
  min-height:260px;
}
.project-card:focus{outline:2px solid rgba(0,0,0,0.06);outline-offset:6px}
.projects-list .project-card:first-child{min-height:275px}
.card-inner{display:flex;align-items:center;gap:18px}
.card-left{flex:0 0 180px;display:flex;align-items:center}
.card-left img{width:160px;height:auto;border-radius:8px;box-shadow:0 8px 24px rgba(16,24,32,0.06);display:block}
.card-right{flex:1;min-width:0}
.project-excerpt{margin:8px 0 0 0;color:var(--muted);line-height:1.45;font-family:'Futura', -apple-system, BlinkMacSystemFont, sans-serif;font-weight:400}
.card-actions{display:flex;justify-content:flex-end;margin-top:28px}
.card-actions .show-more-btn{position:relative}

/* Make the first project thumbnail fit to full width (no max-height constraint) */
.projects-list .project-card:first-child .project-thumb img{
  max-height:220px;
  object-fit:cover;
}

.show-more-btn{
  background:#ff69b4;
  color:#fff;
  border:0;
  padding:10px 18px;
  border-radius:999px;
  cursor:pointer;
  box-shadow:0 6px 18px rgba(16,24,32,0.08);
  font-size:14px;
  transition:all 0.3s ease;
  font-family:'Futura', -apple-system, BlinkMacSystemFont, sans-serif;
  font-weight:100;
}
.show-more-btn:hover{opacity:0.85;transform:translateY(-2px)}
.show-more-btn:focus{outline:2px solid rgba(255,255,255,0.1);outline-offset:2px}
.project-meta{display:flex;align-items:center;gap:12px}
.project-title{margin:0;font-size:18px;color:var(--accent);font-family:'Futura', -apple-system, BlinkMacSystemFont, sans-serif;font-weight:400}

.project-detail{display:none !important}

/* Detail: responsive two-column grid inside the detail area */
.detail-two-col{display:grid;grid-template-columns:260px 1fr;gap:20px;align-items:start}
.detail-left img{width:100%;height:auto;border-radius:10px;box-shadow:0 10px 30px rgba(16,24,32,0.06);display:block}
.detail-right{min-width:0}
.detail-right p{line-height:1.6;color:var(--accent)}
.detail-bottom-images{display:flex;gap:12px;margin-top:14px}
.detail-bottom-images img{width:48%;height:auto;border-radius:8px;box-shadow:0 8px 20px rgba(16,24,32,0.06)}


.project-card:hover .project-thumb{transform:translateY(-4px);transition:transform 300ms}

/* state when projects panel visible */
/* keep the left column centered within the remaining 25% */
body.show-projects .home{width:25%;height:100%;transform:translateX(calc(15% - 20px));padding:0;display:flex;flex-direction:column;justify-content:center;align-items:center}
body.show-projects .home-inner{max-width:100%;text-align:center}
/* Bring in only the panel that is marked visible (aria-hidden="false") */
.projects-panel[aria-hidden="false"]{transform:translateX(0)}

/* recent projects panel uses white background */
#projectsPanel{background: #ffffff}

#aboutPanel{
  background: #ffffff;
  padding: 28px !important;
}

.about-content-scroll{
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow-y: auto;
  padding-right: 8px;
  padding-bottom: 24px;
}

.about-content{
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 60px;
  flex-shrink: 0;
}

.about-layout{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  width: 100%;
  max-width: 1200px;
}

.about-image{
  display: flex;
  justify-content: center;
}

.about-image img{
  width: 100%;
  max-width: 380px;
  height: auto;
  object-fit: cover;
}

.about-text{
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.about-greeting{
  margin: 0;
  font-size: 48px;
  font-weight: 100;
  font-family: 'Futura', -apple-system, BlinkMacSystemFont, sans-serif;
  color: #000000;
  line-height: 1.2;
}

.about-text p{
  margin: 0;
  font-size: 16px;
  line-height: 1.6;
  color: #333333;
}

.about-socials{
  display: flex;
  gap: 16px;
  margin-top: 20px;
}

.social-icon{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #000000;
  transition: transform 0.3s ease, background 0.3s ease;
}

.social-icon svg{
  width: 22px;
  height: 22px;
  fill: #ffffff;
}

.social-icon:hover{
  background: #333333;
  transform: translateY(-3px);
}

#lifePanel{
  background: #ecebe8 !important;
  padding: 48px !important;
}

.archive-content-scroll{
  display:flex;
  flex-direction:column;
  gap:56px;
  flex:1;
  overflow-y:auto;
}

.archive-hero{
  text-align:center;
  padding-top:8px;
}

.archive-title{
  margin:0;
  font-family:'Futura', -apple-system, BlinkMacSystemFont, sans-serif;
  font-weight:700;
  font-size:64px;
  color:#111111;
}

.archive-subtitle{
  margin:14px 0 0;
  font-family:'Futura', -apple-system, BlinkMacSystemFont, sans-serif;
  font-weight:100;
  font-size:18px;
  color:#222222;
}

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

.archive-tile{
  background:#d4d4d4;
  border-radius:8px;
  aspect-ratio: 4 / 3;
  display:flex;
  align-items:center;
  justify-content:center;
  color:#555555;
  font-family:'Futura', -apple-system, BlinkMacSystemFont, sans-serif;
  font-weight:100;
  font-size:16px;
}

.archive-tile-image{
  border:0;
  padding:0;
  overflow:hidden;
  cursor:pointer;
  position:relative;
}

.archive-thumb{
  width:100%;
  height:100%;
  object-fit:cover;
  object-position:top center;
  display:block;
}

.archive-hover-label{
  position:absolute;
  inset:auto 0 0 0;
  padding:12px 14px;
  background:rgba(0,0,0,0.55);
  color:#ffffff;
  font-family:'Futura', -apple-system, BlinkMacSystemFont, sans-serif;
  font-weight:100;
  font-size:16px;
  text-align:center;
  opacity:0;
  transition:opacity 0.2s ease;
  pointer-events:none;
}

.archive-tile-image:hover .archive-hover-label,
.archive-tile-image:focus-visible .archive-hover-label{
  opacity:1;
}

.archive-modal{
  position:fixed;
  inset:0;
  background:rgba(0,0,0,0.75);
  display:flex;
  align-items:center;
  justify-content:center;
  z-index:100;
  opacity:0;
  pointer-events:none;
  transition:opacity 0.2s ease;
  padding:24px;
}

.archive-modal[aria-hidden="false"]{
  opacity:1;
  pointer-events:auto;
}

.archive-modal-image{
  max-width:min(92vw, 900px);
  max-height:92vh;
  width:auto;
  height:auto;
  border-radius:10px;
  box-shadow:0 20px 50px rgba(0,0,0,0.35);
}

.archive-modal-close{
  position:absolute;
  top:20px;
  right:24px;
  border:0;
  background:transparent;
  color:#ffffff;
  font-size:42px;
  line-height:1;
  cursor:pointer;
}

.skills-layout{
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 80px;
  width: 100%;
  max-width: 1200px;
}

.skills-column{
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.skills-heading{
  margin: 0;
  font-size: 36px;
  font-weight: 100;
  font-family: 'Futura', -apple-system, BlinkMacSystemFont, sans-serif;
  color: #000000;
  line-height: 1.2;
}

.skills-list{
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.skills-list li{
  font-size: 18px;
  color: #000000;
  font-family: 'Futura', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-weight: 100;
  line-height: 1.4;
}

.travel-board-container{
  position: relative;
  width: 100%;
  max-width: 900px;
  display: inline-block;
}

.travel-board-bg{
  width: 100%;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.1);
  display: block;
}

.travel-board-item{
  position: absolute;
  display: inline-block;
  overflow: visible;
  cursor: grab;
  width: 200px;
  top: 50px;
  left: 50px;
  transition: transform 0.3s ease;
  user-select: none;
  z-index: 1;
}

#tremblantDraggable{
  top: 80px;
}

.travel-board-piece{
  position: relative;
  width: 100%;
}

.travel-board-img{
  width: 100%;
  height: auto;
  display: block;
  user-select: none;
  pointer-events: none;
}

.drag-badge{
  position: absolute;
  left: 50%;
  bottom: 8px;
  transform: translate(-50%, 6px);
  background: #ff69b4;
  color: #ffffff;
  border: 1px solid rgba(255,105,180,0.6);
  border-radius: 999px;
  padding: 6px 12px;
  font-size: 12px;
  font-family: 'Futura', -apple-system, BlinkMacSystemFont, sans-serif;
  font-weight: 100;
  letter-spacing: 0.04em;
  box-shadow: 0 8px 18px rgba(16,24,32,0.2);
  opacity: 0;
  transition: opacity 0.2s ease, transform 0.2s ease;
  pointer-events: none;
  white-space: nowrap;
  z-index: 2;
}

#japanDraggable{
  top: 120px;
  left: 250px;
}

#cancunDraggable{
  bottom: 20px;
  left: 20px;
  width: 180px;
  top: auto;
}

.travel-board-item:hover{
  transform: rotate(-3deg) scale(1.05);
  cursor: grab;
}

.travel-board-item:hover .drag-badge{
  opacity: 1;
  transform: translate(-50%, 0);
}

.travel-board-item:active{
  cursor: grabbing;
}

/* Project detail panel */
.detail-panel{
  position:absolute;
  top:0;
  right:0;
  width:75%;
  max-width:1000px;
  height:100%;
  background:#000000;
  box-shadow: -12px 0 30px rgba(16,24,32,0.2);
  transform:translateX(100%);
  transition: transform var(--transition);
  display:flex;
  flex-direction:column;
  padding:28px;
  z-index:40;
  color:#fff;
}

.detail-panel[aria-hidden="false"]{
  transform:translateX(0);
}

.detail-panel .panel-header{
  margin-bottom:24px;
}

.detail-content{
  flex:1;
  overflow-y:auto;
  padding-right:8px;
  padding-bottom:24px;
}

.detail-content h2{
  color:#fff;
  margin:0 0 8px 0;
  font-size:24px;
  font-family:'Futura', -apple-system, BlinkMacSystemFont, sans-serif;
  font-weight:400;
}

.project-subtitle{
  color:rgba(255,255,255,0.75);
  font-size:14px;
  margin:0 0 8px 0;
  letter-spacing:0.02em;
}

.project-tools{
  color:rgba(255,255,255,0.6);
  font-size:13px;
  margin:0 0 24px 0;
  font-style:italic;
}

.detail-panel .detail-two-col{
  margin-bottom:24px;
}

.detail-panel .detail-right p{
  color:#ffffff;
  line-height:1.7;
  margin-bottom:16px;
}

.detail-panel .detail-bottom-images{
  flex-wrap:wrap;
  margin-bottom:24px;
}

.detail-palette{
  width:100%;
  max-width:700px;
  height:auto;
  display:block;
  margin:0 auto;
  border-radius:10px;
  box-shadow:0 8px 22px rgba(16,24,32,0.12);
}

@media (max-width:700px){
  .detail-panel{
    width:100%;
    transform:translateX(100%);
  }
  .detail-panel[aria-hidden="false"]{
    transform:translateX(0);
  }
}

/* responsive */
@media (max-width:900px){
  .card-inner{flex-direction:column;align-items:flex-start}
  .card-left{flex:0 0 auto}
  .card-left img{width:140px}
  .archive-grid{grid-template-columns:1fr 1fr}
}

@media (max-width:700px){
  body.show-projects .home{transform:translateX(-100%)}
  .projects-panel{width:100%;transform:translateX(100%)}
  body.show-projects .projects-panel{transform:translateX(0)}
  .logo{width:160px}
  .detail-two-col{grid-template-columns:1fr;}
  .detail-bottom-images img{width:100%}
  .archive-title{font-size:42px}
  .archive-subtitle{font-size:16px}
  .archive-grid{grid-template-columns:1fr}
}

/* Make Project 1 excerpt full paragraph black, keep others muted */
.projects-list .project-card:first-child .project-excerpt{color:#000}
.projects-list .project-card:nth-child(2) .project-excerpt{color:#000}

/* Hide scrollbars while maintaining scroll functionality */
.projects-list::-webkit-scrollbar,
.about-content-scroll::-webkit-scrollbar,
.archive-content-scroll::-webkit-scrollbar,
.detail-content::-webkit-scrollbar{
  display: none;
}

.projects-list,
.about-content-scroll,
.archive-content-scroll,
.detail-content{
  scrollbar-width: none;
  -ms-overflow-style: none;
}
