:root{
  --bg:#ffffff;
  --text:#111111;
  --muted:rgba(17,17,17,0.72);
  --line:rgba(0,0,0,0.12);
  --page-max:2200px;
  --image-gap:clamp(60px, 18vw, 400px);
  --long-side:clamp(320px, 68vh, 810px);
  --footer-space:34px;
}

*{box-sizing:border-box}

html,body{
  margin:0;
  padding:0;
  width:100%;
  height:100dvh;
  overflow:hidden;
  background:var(--bg);
  color:var(--text);
  font-family:"Helvetica Neue", Helvetica, Arial, sans-serif;
  -webkit-font-smoothing:antialiased;
  text-rendering:optimizeLegibility;
}

a{
  color:inherit;
  text-decoration:none;
}

button{
  font:inherit;
  color:inherit;
  -webkit-appearance:none;
  appearance:none;
  border:0;
  background:none;
}

/* page */

.page{
  position:relative;
  width:100%;
  height:100dvh;
  display:flex;
  flex-direction:column;
  overflow:hidden;
  background:#ffffff;
}

.menu-backdrop{
  position:fixed;
  inset:0;
  background:rgba(255,255,255,0.08);
  opacity:0;
  pointer-events:none;
  transition:opacity 0.08s ease;
  z-index:20;
  padding:0;
}

.page.menu-open .menu-backdrop{
  opacity:1;
  pointer-events:auto;
}

.site-shell{
  position:relative;
  z-index:30;
  width:min(calc(100% - 80px), var(--page-max));
  height:100%;
  margin:0 auto;
  padding:18px 0 var(--footer-space);
  display:flex;
  flex-direction:column;
  overflow:visible;
}

/* header */

.top-area{
  position:relative;
  text-align:center;
  margin-bottom:10px;
  height:auto;
  min-height:44px;
  z-index:80;
  flex:0 0 auto;
}

.title-toggle{
  display:inline-flex;
  flex-direction:column;
  align-items:center;
  gap:8px;
  position:relative;
  z-index:90;
}

.masthead-line{
  position:relative;
  display:inline-block;
  white-space:nowrap;
}

.logo-trigger{
  display:inline-flex;
  align-items:center;
  padding:0;
  margin:0;
  line-height:1;
  color:inherit;
}

.logo-text-wrap{
  display:inline-flex;
  align-items:center;
  gap:10px;
}

.logo{
  margin:0;
  font-size:clamp(1.45rem,2vw,2.2rem);
  font-weight:300;
  letter-spacing:0.12em;
  line-height:1;
  color:rgba(17,17,17,0.92);
  text-transform:uppercase;
}

.menu-icon{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  font-size:0.9rem;
  font-weight:300;
  line-height:1;
  color:rgba(17,17,17,0.62);
  transform:translateY(-3px);
  transition:color 0.2s ease;
}

.logo-trigger:hover .menu-icon,
.logo-trigger:focus-visible .menu-icon,
.page.menu-open .menu-icon{
  color:rgba(17,17,17,0.92);
}

.section-name-inline{
  position:absolute;
  left:100%;
  top:50%;
  transform:translateY(-50%);
  margin-left:12px;
  font-size:clamp(0.92rem,1.2vw,1rem);
  font-weight:300;
  letter-spacing:0.04em;
  color:rgba(17,17,17,0.60);
  line-height:1;
  white-space:nowrap;
}

.section-name-inline:empty{
  display:none;
}

/* nav */

.reveal-nav{
  position:absolute;
  top:40px;
  left:50%;
  transform:translateX(-50%);
  display:flex;
  align-items:center;
  justify-content:center;
  gap:18px;
  max-height:0;
  opacity:0;
  overflow:hidden;
  transition:opacity 0.08s ease;
  z-index:100;
  white-space:nowrap;
  padding-top:8px;
}

.page.menu-open .reveal-nav,
.title-toggle:hover .reveal-nav,
.title-toggle:focus-within .reveal-nav{
  max-height:420px;
  opacity:1;
}

.reveal-nav a{
  position:relative;
  z-index:110;
  font-size:clamp(0.95rem,1.35vw,1.08rem);
  font-weight:300;
  color:rgba(17,17,17,0.60);
  transition:color 0.2s ease;
  white-space:nowrap;
  pointer-events:auto;
  text-decoration:none;
}

.reveal-nav a:hover,
.reveal-nav a:focus-visible{
  color:rgba(17,17,17,0.82);
  outline:none;
}

/* blur layer */

.content-blur{
  position:relative;
}

.content-blur::before{
  content:"";
  position:fixed;
  inset:0;
  background:rgba(255,255,255,0.08);
  backdrop-filter:blur(10px);
  -webkit-backdrop-filter:blur(10px);
  opacity:0;
  pointer-events:none;
  transition:opacity 0.08s ease;
  z-index:35;
}

.page.menu-open .content-blur::before{
  opacity:1;
}

/* gallery */

.gallery-wrap{
  position:relative;
  flex:1 1 auto;
  min-height:0;
  display:flex;
  align-items:center;
  overflow:hidden;
  width:100vw;
  margin-left:calc(50% - 50vw);
  margin-right:calc(50% - 50vw);
}

.gallery-viewport{
  overflow-x:auto;
  overflow-y:hidden;
  width:100%;
  height:100%;
  display:flex;
  align-items:center;
  padding:6px 0 18px;
  scroll-snap-type:x mandatory;
  scroll-behavior:smooth;
  scrollbar-width:thin;
  scrollbar-color:rgba(0,0,0,0.18) transparent;
  -webkit-overflow-scrolling:touch;
}

.gallery-viewport::-webkit-scrollbar{
  height:10px;
}

.gallery-viewport::-webkit-scrollbar-thumb{
  background:rgba(0,0,0,0.18);
  border-radius:999px;
}

.gallery-track{
  display:flex;
  flex-wrap:nowrap;
  align-items:center;
  justify-content:center;
  gap:var(--image-gap);
  width:max-content;
  padding-left:0;
  padding-right:0;
}

.slide{
  display:flex;
  flex-direction:column;
  align-items:center;
  scroll-snap-align:center;
}

.slide img{
  max-height:var(--long-side);
  max-width:92vw;
  width:auto;
  height:auto;
  display:block;
  background:#f2f2f2;
}

.archive-caption{
  display:block;
  width:100%;
  font-size:0.9rem;
  font-weight:300;
  letter-spacing:0.02em;
  color:rgba(17,17,17,0.45);
  text-align:right;
  margin-top:5px;
}

/* contact */

.contact-wrap{
  width:min(720px, calc(100% - 40px));
  margin:56px auto 60px;
}

.contact-title{
  margin:0 0 10px;
  font-size:clamp(16px, 1.6vw, 20px);
  font-weight:300;
  letter-spacing:0.10em;
  text-transform:uppercase;
  line-height:1.05;
}

.contact-intro{
  margin:0 0 24px;
  font-size:15px;
  line-height:1.6;
  color:var(--muted);
  max-width:60ch;
}

.contact-form{
  display:grid;
  gap:18px;
}

.form-row{
  display:grid;
  gap:8px;
}

.form-row label{
  font-size:12px;
  letter-spacing:0.08em;
  text-transform:uppercase;
}

.contact-form input,
.contact-form textarea{
  width:100%;
  border:1px solid var(--line);
  background:#fff;
  color:var(--text);
  padding:14px 16px;
  font:inherit;
  font-size:15px;
  border-radius:0;
  appearance:none;
  -webkit-appearance:none;
}

.contact-form textarea{
  min-height:180px;
  resize:vertical;
}

.contact-form input:focus,
.contact-form textarea:focus{
  outline:none;
  border-color:rgba(0,0,0,0.35);
}

.contact-submit{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:46px;
  padding:0 22px;
  border:1px solid #111;
  background:#111;
  color:#fff;
  cursor:pointer;
  font-size:12px;
  letter-spacing:0.08em;
  text-transform:uppercase;
  transition:opacity 0.2s ease;
}

.contact-submit:hover{
  opacity:0.82;
}

.hp-field{
  position:absolute !important;
  left:-9999px !important;
  width:1px !important;
  height:1px !important;
  overflow:hidden !important;
}

.contact-success{
  margin:0 0 24px;
  padding:14px 16px;
  border:1px solid var(--line);
  font-size:14px;
  line-height:1.5;
  color:var(--text);
  background:#fff;
}

/* arrows */

.arrow{
  position:absolute;
  top:50%;
  transform:translateY(-50%);
  width:42px;
  height:42px;
  border:1px solid var(--line);
  border-radius:999px;
  background:rgba(255,255,255,0.94);
  display:flex;
  align-items:center;
  justify-content:center;
  cursor:pointer;
  opacity:0;
  transition:opacity 0.3s ease;
  pointer-events:none;
  z-index:60;
}

.arrow.left{left:12px}
.arrow.right{right:12px}

.gallery-wrap:hover .arrow,
.gallery-wrap:focus-within .arrow{
  opacity:1;
  pointer-events:auto;
}

.arrow:focus,
.arrow:focus-visible,
.logo-trigger:focus,
.logo-trigger:focus-visible,
.reveal-nav a:focus,
.reveal-nav a:focus-visible{
  outline:none;
}

/* footer */

.site-footer{
  position:absolute;
  left:0;
  right:0;
  bottom:8px;
  width:100%;
  text-align:center;
  font-size:0.78rem;
  font-weight:300;
  letter-spacing:0.04em;
  color:rgba(17,17,17,0.35);
  line-height:1;
  z-index:40;
  pointer-events:none;
}

/* narrow desktop / laptop */

@media (min-width:641px) and (max-width:1100px){
  :root{
    --image-gap:clamp(60px, 12vw, 260px);
    --long-side:clamp(360px, 58vh, 650px);
  }

  .site-shell{
    width:min(calc(100% - 48px), var(--page-max));
  }
}

/* tablet / iPad only */

@media (min-width:768px) and (max-width:1200px){
  :root{
    --image-gap:260px;
    --long-side:60vh;
  }

  .site-shell{
    width:min(calc(100% - 36px), var(--page-max));
    padding:18px 0 var(--footer-space);
    overflow:visible;
  }

  .top-area{
    margin-bottom:8px;
    height:44px;
  }

  .gallery-viewport{
    padding:0 0 12px;
  }

  .slide img.landscape{
    max-height:50vh;
    max-width:90vw;
  }

  .slide img.portrait{
    max-height:64vh;
    max-width:90vw;
  }

  .gallery-wrap .arrow{
    opacity:1;
    pointer-events:auto;
  }

  .contact-wrap{
    margin:18px auto 50px;
  }

  .contact-title{
    margin:0 0 8px;
    font-size:15px;
    font-weight:300;
    letter-spacing:0.12em;
    text-transform:uppercase;
    line-height:1.05;
  }

  .contact-intro{
    margin:0 0 18px;
    font-size:14px;
    line-height:1.5;
  }
}

/* phone */

@media (max-width:640px){
  :root{
    --image-gap:60px;
    --long-side:58vh;
    --footer-space:28px;
  }

  html,body{
    height:auto;
    min-height:100%;
    overflow-y:auto;
  }

  .page{
    height:auto;
    min-height:100dvh;
    overflow-y:auto;
  }

  .site-shell{
    width:min(calc(100% - 20px), var(--page-max));
    height:auto;
    min-height:100dvh;
    overflow:visible;
    padding:10px 0 var(--footer-space);
  }

  .masthead-line{
    display:flex;
    flex-direction:column;
    align-items:center;
    justify-content:center;
    gap:0;
  }

  .logo-text-wrap{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    gap:8px;
  }

  .logo{
    font-size:1.2rem;
    letter-spacing:0.08em;
  }

  .menu-icon{
    display:none;
  }

  .section-name-inline{
    position:static !important;
    transform:none;
    display:block;
    margin:4px 0 0;
    text-align:center;
    font-size:0.9rem;
    line-height:1.15;
    max-width:90vw;
    white-space:normal;
  }

  .top-area{
    height:auto;
    margin-bottom:6px;
    border-bottom:none !important;
    box-shadow:none !important;
  }

  .reveal-nav{
    position:absolute;
    top:44px;
    left:50%;
    transform:translateX(-50%);
    display:grid;
    grid-template-columns:1fr;
    row-gap:10px;
    column-gap:0;
    min-width:240px;
    max-width:min(92vw, 340px);
    padding:14px 18px 20px;
    background:#ffffff;
    border:1px solid rgba(0,0,0,0.10);
    box-shadow:0 10px 30px rgba(0,0,0,0.10);
    border-radius:12px;
    text-align:center;
    z-index:120;
  }

  .reveal-nav a{
    display:block;
    width:100%;
    padding:4px 0;
    color:rgba(17,17,17,0.82);
  }

  .gallery-wrap{
    margin-top:0;
    min-height:0;
    display:flex;
    align-items:center;
    overflow:hidden;
    width:100vw;
    margin-left:calc(50% - 50vw);
    margin-right:calc(50% - 50vw);
  }

  .gallery-viewport{
    padding:0 0 24px;
    align-items:center;
  }

  .gallery-track{
    align-items:center;
  }

  .slide img{
    max-height:52vh;
    max-width:92vw;
    width:auto;
    height:auto;
  }

  .contact-wrap{
    width:min(100%, calc(100% - 8px));
    margin:0 auto 40px;
  }

  .contact-title{
    margin:0 0 8px;
    font-size:14px;
    font-weight:300;
    letter-spacing:0.12em;
    text-transform:uppercase;
    line-height:1.05;
  }

  .contact-intro{
    margin:0 0 18px;
    font-size:14px;
    line-height:1.5;
  }

  .contact-form{
    gap:14px;
  }

  .form-row{
    gap:6px;
  }

  .form-row label{
    font-size:11px;
    letter-spacing:0.08em;
  }

  .contact-form input,
  .contact-form textarea{
    padding:12px 14px;
    font-size:16px;
  }

  .contact-form textarea{
    min-height:150px;
  }

  .arrow{
    width:36px;
    height:36px;
    top:44%;
  }

  .site-footer{
    bottom:6px;
    font-size:0.72rem;
    color:rgba(17,17,17,0.28);
  }
}

/* landscape phone */

@media (orientation:landscape) and (max-width:900px){
  :root{
    --long-side:42vh;
  }

  .top-area{
    height:56px;
  }
}