* { margin: 0; padding: 0; box-sizing: border-box; }
:root { --bg: #dde0e3; --dim: #9fa4a8; --muted: #7a7f84; --text: #4a4e52; --dark: #2a2d30; --mono: 'IBM Plex Mono', monospace; --serif: 'Cormorant Garamond', Georgia, serif; }
html { background: var(--bg); color: var(--text); font-family: var(--serif); font-weight: 300; overflow-x: hidden; }
body { background: var(--bg); min-height: 100vh; }
body::after { content: ''; position: fixed; inset: 0; pointer-events: none; z-index: 900; opacity: 0.025; background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 512 512' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); background-size: 200px 200px; }
nav { position: fixed; top: 0; left: 0; right: 0; z-index: 200; padding: 1.6rem 2.5rem; display: flex; justify-content: space-between; align-items: center; transition: transform 0.3s ease; }
nav.nav-hidden { transform: translateY(-100%); }
.nav-name { font-family: var(--mono); font-size: 0.62rem; font-weight: 300; letter-spacing: 0.14em; color: var(--muted); text-decoration: none; text-transform: lowercase; cursor: pointer; transition: color 0.3s; }
.nav-name:hover { color: var(--dark); }
.nav-links { display: flex; gap: 2.2rem; transition: opacity 0.3s; }
.nav-links.hidden { opacity: 0; pointer-events: none; }
.nav-links a { font-family: var(--mono); font-size: 0.68rem; letter-spacing: 0.18em; color: var(--muted); text-decoration: none; text-transform: lowercase; cursor: pointer; transition: color 0.3s; }
.nav-links a:hover { color: var(--text); }
.nav-links a.active { color: var(--dark); }
.page { display: none; }
.page.active { display: block; animation: pageFade 0.4s ease forwards; }
#home.active { display: flex; animation: pageFade 0.4s ease forwards; padding-top: 5rem; align-items: center; justify-content: center; min-height: 100vh; }
@keyframes pageFade { from { opacity: 0; } to { opacity: 1; } }
.home-inner { margin-right: 8vw; display: flex; flex-direction: column; align-items: flex-start; }
.home-photo-wrap { position: relative; cursor: pointer; }
.home-photo { width: min(340px, 54vw); display: block; aspect-ratio: 3/4; object-fit: cover; transition: opacity 0.3s; background-color: var(--dim); }
.home-photo-wrap:hover .home-photo { opacity: 0.88; }
.home-photo-wrap::after { content: 'view'; position: absolute; bottom: 1rem; right: 1rem; font-family: var(--mono); font-size: 0.46rem; letter-spacing: 0.2em; color: rgba(255,255,255,0.6); opacity: 0; transition: opacity 0.3s; }
.home-photo-wrap:hover::after { opacity: 1; }
.home-label { margin-top: 1rem; font-family: var(--mono); font-size: 0.78rem; letter-spacing: 0.18em; color: var(--muted); text-transform: lowercase; }
.home-nav { margin-top: 1.8rem; display: flex; gap: 2rem; }
.home-nav a { font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.2em; color: var(--text); text-transform: lowercase; cursor: pointer; text-decoration: none; transition: color 0.3s; border-bottom: 1px solid var(--muted); padding-bottom: 3px; }
.home-nav a:hover { color: var(--dark); border-color: var(--muted); }
.carousel-wrap { position: relative; padding: 9rem 2.5rem 4rem; min-height: 100vh; display: flex; flex-direction: column; align-items: center; justify-content: flex-start; opacity: 0; animation: fadeUp 0.5s ease 0.1s forwards; }
.carousel-title { font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.28em; color: var(--text); font-weight: 400; text-transform: lowercase; margin-bottom: 5rem; align-self: flex-start; }
.carousel-container { position: relative; width: 100%; max-width: 90vw; display: flex; align-items: flex-start; justify-content: center; min-height: 70vh; overflow: hidden; }
.carousel-slide { position: absolute; top: 0; left: 50%; transform: translateX(-50%); width: 100%; display: flex; flex-direction: column; align-items: center; opacity: 0; pointer-events: none; will-change: transform, opacity; }
.carousel-slide.active { opacity: 1; pointer-events: auto; transform: translateX(-50%); }
.carousel-slide.transitioning { transition: transform 0.4s ease, opacity 0.4s ease; }
.carousel-slide.slide-out-left { transform: translateX(-150%); opacity: 0; }
.carousel-slide.slide-out-right { transform: translateX(50%); opacity: 0; }
.carousel-slide.slide-in-left { transform: translateX(-150%); opacity: 0; }
.carousel-slide.slide-in-right { transform: translateX(50%); opacity: 0; }
.carousel-img { width: 100%; max-width: 680px; height: auto; display: block; filter: brightness(0.97) contrast(1.01); transition: filter 0.4s, opacity 0.3s; cursor: pointer; }
.carousel-img:hover { filter: brightness(1) contrast(1.01); opacity: 0.92; }
.carousel-img.portrait { max-width: 440px; }
.carousel-caption { margin-top: 1.2rem; width: 100%; max-width: 680px; display: flex; justify-content: space-between; align-items: baseline; gap: 2rem; }
.carousel-caption.portrait { max-width: 440px; }
.caption-text { font-family: var(--serif); font-style: italic; font-weight: 400; font-size: 1.1rem; line-height: 1.7; color: var(--text); max-width: 46ch; }
.caption-right { display: flex; flex-direction: column; align-items: flex-end; gap: 0.25rem; flex-shrink: 0; }
.caption-n { font-family: var(--mono); font-size: 0.58rem; letter-spacing: 0.18em; color: var(--muted); }
.caption-stock { font-family: var(--mono); font-size: 0.56rem; letter-spacing: 0.14em; color: var(--muted); }
.carousel-nav { position: absolute; top: 35%; transform: translateY(-50%); width: 100%; display: flex; justify-content: space-between; pointer-events: none; z-index: 10; }
.carousel-arrow { font-family: var(--mono); font-size: 1rem; letter-spacing: 0.15em; color: var(--text); cursor: pointer; transition: color 0.3s, opacity 0.3s; padding: 2rem 2rem; user-select: none; pointer-events: auto; opacity: 0.7; }
.carousel-arrow:hover { color: var(--dark); opacity: 1; }
.carousel-arrow.disabled { opacity: 0.2; cursor: not-allowed; pointer-events: none; }
.lightbox { display: none; position: fixed; inset: 0; z-index: 800; flex-direction: column; align-items: center; justify-content: center; cursor: pointer; backdrop-filter: blur(18px) brightness(0.45); -webkit-backdrop-filter: blur(18px) brightness(0.45); background: rgba(180,183,186,0.15); }
.lightbox.open { display: flex; animation: lbIn 0.25s ease-out forwards; }
.lb-content { display: flex; flex-direction: column; align-items: center; pointer-events: none; }
.lightbox img { max-width: 90vw; max-height: 88vh; object-fit: contain; cursor: default; animation: imgIn 0.3s ease-out forwards; }
@keyframes lbIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes imgIn { from { opacity: 0; transform: scale(0.94); } to { opacity: 1; transform: scale(1); } }
.lb-close { position: absolute; top: 1.5rem; right: 2rem; font-family: var(--mono); font-size: 0.55rem; letter-spacing: 0.2em; color: rgba(200,200,200,0.4); cursor: pointer; transition: color 0.3s; z-index: 10; }
.lb-close:hover { color: rgba(200,200,200,0.9); }
.lb-caption { margin-top: 1.2rem; font-family: var(--serif); font-style: italic; font-size: 1rem; color: rgba(210,207,200,0.85); pointer-events: none; text-shadow: 0 1px 4px rgba(0,0,0,0.4); max-width: 90vw; text-align: center; animation: captionIn 0.4s ease-out 0.1s forwards; opacity: 0; }
@keyframes captionIn { from { opacity: 0; } to { opacity: 1; } }
.lb-arrow { position: absolute; top: 50%; transform: translateY(-50%); font-family: var(--mono); font-size: 0.75rem; letter-spacing: 0.15em; color: rgba(200,200,200,0.55); cursor: pointer; transition: color 0.3s; z-index: 10; padding: 2rem 1.8rem; user-select: none; }
.lb-arrow:hover { color: rgba(200,200,200,0.85); }
.lb-prev { left: 0; }
.lb-next { right: 0; }
.lb-arrow.hidden { opacity: 0; pointer-events: none; }
.thoughts-wrap { padding: 9rem 2.5rem 8rem; max-width: 680px; opacity: 0; animation: fadeUp 0.5s ease 0.1s forwards; }
.thought-entry { margin-bottom: 3rem; padding-bottom: 2.5rem; border-bottom: 1px solid var(--dim); }
.thought-entry:first-child { margin-top: 0; }
.thought-entry:last-child { border-bottom: none; }
.thought-entry-num { font-family: var(--mono); font-size: 0.65rem; letter-spacing: 0.2em; color: var(--dim); margin-bottom: 0.8rem; text-transform: lowercase; }
.thought-entry-text { font-family: var(--serif); font-style: italic; font-weight: 300; font-size: 1rem; line-height: 1.9; color: var(--text); max-width: 52ch; }
.thought-photo-link { display: inline; color: var(--muted); text-decoration: none; border-bottom: 1px solid var(--dim); cursor: pointer; transition: color 0.3s; }
.thought-photo-link:hover { color: var(--text); }
.about-wrap { padding: 9rem 2.5rem 8rem; max-width: 820px; opacity: 0; animation: fadeUp 0.5s ease 0.1s forwards; }
.about-grid { display: grid; grid-template-columns: 1.4fr 0.6fr; gap: 5rem; margin-top: 3.5rem; }
.about-text p { font-family: var(--serif); font-size: 1.05rem; font-weight: 300; color: var(--text); line-height: 2; margin-bottom: 1.5rem; }
.meta-block { margin-bottom: 2rem; }
.meta-key { display: block; font-family: var(--mono); font-size: 0.65rem; letter-spacing: 0.22em; color: var(--muted); margin-bottom: 0.6rem; }
.meta-val { font-family: var(--mono); font-size: 0.85rem; letter-spacing: 0.05em; color: var(--text); line-height: 2; }
.meta-val a { color: var(--text); text-decoration: none; transition: color 0.3s; }
.meta-val a:hover { color: var(--dark); }
svg.icon { width: 1.2em; height: 1.2em; stroke: currentColor; fill: none; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; will-change: opacity; }
.copyright { position: fixed; bottom: 1.5rem; right: 2.5rem; z-index: 100; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: translateY(0); } }
@media (max-width: 600px) {
  nav { padding: 1.2rem 1.4rem; }
  .nav-name { font-size: 0.58rem; }
  .nav-links { gap: 1.4rem; }
  .nav-links a { font-size: 0.52rem; }
  #home.active { padding-top: 2rem; }
  .home-inner { margin-right: 0; align-items: center; width: 100%; padding: 0 1.4rem; }
  .home-photo { width: 72vw; }
  .home-nav { gap: 1.5rem; }
  .carousel-wrap { padding: 5rem 1rem 3rem; }
  .carousel-title { margin-bottom: 2rem; font-size: 0.65rem; }
  .carousel-container { max-width: 100%; min-height: 70vh; overflow: hidden; }
  .carousel-img { width: 100%; max-width: 95vw; }
  .carousel-img.portrait { max-width: 85vw; }
  .carousel-caption { width: 95vw; max-width: 100%; flex-direction: column; gap: 0.5rem; margin-top: 1rem; }
  .carousel-caption.portrait { width: 85vw; max-width: 85vw; }
  .caption-text { font-size: 0.92rem; max-width: 100%; }
  .caption-right { align-items: flex-start; flex-direction: column; gap: 0.25rem; }
  .carousel-arrow { padding: 2.5rem 1.8rem; font-size: 1.5rem; opacity: 0.95; }
  .thoughts-wrap { padding: 7rem 1.4rem 8rem; }
  .about-wrap { padding: 7rem 1.4rem 8rem; }
  .about-grid { grid-template-columns: 1fr; gap: 3rem; }
  .copyright { bottom: 1rem; right: 1.4rem; }
  .lb-caption { font-size: 0.88rem; }
}