/* FV and About share one sticky two-image visual on desktop. */
:root {
  --site-header-height: 62px;
  --page-gutter: clamp(32px, 3.6vw, 66px);
  --right-bleed: calc(var(--page-gutter) + max(0px, (100vw - 1800px) / 2));
}
.wrap {
  max-width: 1800px;
  padding-left: var(--page-gutter);
  padding-right: var(--page-gutter);
}
.global-header {
  position: sticky;
  top: 0;
  z-index: 50;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  isolation: isolate;
  background: var(--paper);
  height: var(--site-header-height);
}
.global-header::before {
  content: '';
  position: absolute;
  z-index: -1;
  top: 0;
  left: 50%;
  width: 100vw;
  height: 100%;
  background: var(--paper);
  transform: translateX(-50%);
  pointer-events: none;
}
.global-header::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 100vw;
  height: 1px;
  background: var(--line);
  transform: translateX(-50%);
}
.global-header .site-nav {
  grid-column: 2;
  grid-row: 1;
  padding: 0;
}
.menu-toggle { display: none; }
.global-header .site-nav a {
  height: 1.2em;
  padding: 0;
  overflow: hidden;
  border: 0;
  line-height: 1.2;
}
.nav-roll {
  display: flex;
  flex-direction: column;
  transition: transform .58s cubic-bezier(.22, 1, .36, 1);
  will-change: transform;
}
.nav-roll > span {
  display: block;
  flex: 0 0 1.2em;
  height: 1.2em;
}
.global-header .site-nav a:hover,
.global-header .site-nav a:focus-visible {
  color: inherit;
  border: 0;
}
.global-header .site-nav a:hover .nav-roll,
.global-header .site-nav a:focus-visible .nav-roll {
  transform: translateY(-50%);
}
.global-header .brand-bar {
  grid-column: 1;
  grid-row: 1;
  justify-content: flex-start;
  align-items: center;
  gap: 24px;
  margin: 0;
  height: 100%;
  padding: 0;
  border: 0;
}
.global-header .brand {
  color: #111;
  line-height: 1;
}
.global-header .brand small {
  margin-left: 0;
  color: #111;
}
.intro-follow {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 44px;
  align-items: start;
}
.intro-flow { min-width: 0; }
.hero-fv {
  min-height: min(930px, calc(100svh - 36px));
  display: flex;
  padding: 0 0 52px;
}
.fv-copy {
  width: 100%;
  min-height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 8px 0 42px;
}
.fv-lead {
  margin: 0 0 32px;
  color: var(--ink);
  font: 16px/1.9 var(--mincho);
  letter-spacing: .13em;
}
.fv-title { margin-top: auto; }
.fv-title h1 {
  margin: 0;
  color: #111;
  font: 500 italic clamp(76px, 7.2vw, 132px)/.88 var(--serif);
  letter-spacing: -.01em;
}
.fv-title-line,
.footer-title-line {
  display: block;
  opacity: 0;
  filter: blur(8px);
  transform: translateY(.28em);
  transition: opacity 1.05s cubic-bezier(.22, 1, .36, 1),
              filter 1.05s cubic-bezier(.22, 1, .36, 1),
              transform 1.05s cubic-bezier(.22, 1, .36, 1);
  will-change: opacity, filter, transform;
}
.reveal-heading-lines.is-visible .fv-title-line,
.reveal-heading-lines.is-visible .footer-title-line,
.reveal-heading.is-visible {
  opacity: 1;
  filter: blur(0);
  transform: translateY(0);
}
.fv-title-line:nth-child(2),
.footer-title-line:nth-child(2) { transition-delay: .13s; }
.fv-title-line:nth-child(3) { transition-delay: .26s; }
.reveal-heading {
  opacity: 0;
  filter: blur(8px);
  transform: translateY(.28em);
  transition: opacity 1.05s cubic-bezier(.22, 1, .36, 1),
              filter 1.05s cubic-bezier(.22, 1, .36, 1),
              transform 1.05s cubic-bezier(.22, 1, .36, 1);
  will-change: opacity, filter, transform;
}
.fv-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 30px;
  color: #50555c;
  font-size: 14px;
}
.fv-meta span { padding: 1px 8px; background: #555c65; color: #fff; font-size: 12px; }
.fv-meta time { font-family: var(--serif); letter-spacing: .04em; }
.fv-meta strong { font-weight: 400; }
.intro-sticky {
  position: sticky;
  top: var(--site-header-height);
  height: calc(100svh - var(--site-header-height));
  min-height: 700px;
  align-self: start;
  padding: 0;
  width: calc(100% + var(--right-bleed));
  margin-right: calc(0px - var(--right-bleed));
}
.visual-stage {
  position: relative;
  isolation: isolate;
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: #2e2b27;
}
.visual-slides {
  position: absolute;
  inset: 0;
}
.visual-slides img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 50%;
  opacity: 0;
  transform: scale(1.025);
  transition: opacity 1.1s ease, transform 3.8s ease;
}
.visual-slides img.is-active {
  opacity: 1;
  transform: scale(1);
}
.mobile-fv-stage { display: none; }
.about-scroll {
  display: block;
  padding: 124px 0 150px;
  border-top: 1px solid var(--line);
}
.about-copy-rail { min-width: 0; }
.about-heading { margin-bottom: 90px; }
.about-story {
  max-width: 650px;
  margin-left: 0;
  padding-bottom: 170px;
  font: 17px/2.3 var(--mincho);
  letter-spacing: .04em;
}
.about-story p { margin: 0 0 28px; }
.about-story .en { color: var(--muted); font: italic 16px/1.8 var(--serif); letter-spacing: 0; }
.about-story .services-note {
  margin: 36px 0 0;
  color: var(--muted);
  font: 14px/2 var(--mincho);
  letter-spacing: .07em;
}
.about-note { min-height: 360px; padding: 70px 0 0 15%; }
.about-note h3 { margin: 0 0 26px; font: 400 37px/1.25 var(--mincho); letter-spacing: .08em; }
.about-note p { max-width: 330px; margin: 0; color: var(--muted); font: 14px/2 var(--mincho); }
.works { padding-top: 150px; }
.site-footer {
  position: relative;
  border-top: 0;
}
.site-footer::before,
.footer-bottom::before {
  content: '';
  position: absolute;
  left: 50%;
  width: 100vw;
  height: 1px;
  background: var(--line);
  transform: translateX(-50%);
  pointer-events: none;
}
.site-footer::before { top: 0; }
.footer-bottom {
  position: relative;
  border-top: 0;
}
.footer-bottom::before { top: 0; }
.contact {
  position: relative;
}
.contact::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  width: 100vw;
  height: 1px;
  background: var(--line);
  transform: translateX(-50%);
  pointer-events: none;
}
.submit {
  -webkit-appearance: none;
  appearance: none;
  background-color: transparent;
  color: var(--ink);
  -webkit-text-fill-color: var(--ink);
  font-family: var(--mincho);
  font-size: 14px;
  font-weight: 400;
  letter-spacing: .14em;
}
.submit:hover,
.submit:focus-visible {
  color: var(--paper);
  -webkit-text-fill-color: var(--paper);
}
.form-honey {
  position: absolute !important;
  left: -9999px !important;
  width: 1px !important;
  height: 1px !important;
  opacity: 0 !important;
  pointer-events: none !important;
}
.form-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.form-status {
  min-height: 1.7em;
  margin: 0;
  color: var(--muted);
  font: 12px/1.7 var(--mincho);
  letter-spacing: .04em;
}
.form-status.is-success { color: #526d4b; }
.form-status.is-error { color: var(--accent); }
.submit:disabled {
  cursor: wait;
  opacity: .55;
}
@media (max-width: 760px) {
  .form-actions { display: block; }
  .form-status { margin-bottom: 12px; }
}
.case-gallery {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: clamp(16px, 1.5vw, 24px);
  align-items: start;
}
.case-gallery .gallery-item {
  grid-column: auto;
  height: auto;
  margin: 0;
  overflow: visible;
  aspect-ratio: auto;
  background: transparent;
}
.case-gallery .gallery-item img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
  filter: none;
}
.case-gallery .g1 { grid-column: 1 / 9; }
.case-gallery .g2 { grid-column: 9 / 13; }
.case-gallery .g3 { grid-column: 1 / 6; }
.case-gallery .g4 { grid-column: 6 / 13; }
.case-gallery .g5 { grid-column: 1 / 6; }
.case-gallery .g6 { grid-column: 6 / 13; }
.case-description {
  line-break: strict;
  overflow-wrap: normal;
  word-break: normal;
  text-wrap: pretty;
}
.case-desc-break { display: block; }

@media (max-width: 980px) {
  :root { --page-gutter: 32px; }
  .wrap { padding-left: 32px; padding-right: 32px; }
  .intro-follow { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 44px; }
  .fv-title h1 { font-size: clamp(68px, 9vw, 100px); }
  .fv-meta { gap: 10px; font-size: 12px; }
  .intro-sticky { min-height: 560px; }
  .about-scroll { padding-top: 90px; }
  .about-story { font-size: 15px; }
  .works { padding-top: 110px; }
}

@media (max-width: 600px) {
  :root { --page-gutter: 18px; }
  .wrap { padding-left: 18px; padding-right: 18px; }
  .global-header .brand-bar {
    display: flex;
    min-width: 0;
    padding: 0;
  }
  .global-header .brand {
    display: flex;
    align-items: baseline;
    min-width: 0;
    white-space: nowrap;
    font-size: clamp(18px, 4.7vw, 20px);
  }
  .global-header .brand small {
    display: inline;
    margin-left: 0;
    white-space: nowrap;
    font-size: clamp(7px, 2.1vw, 9px);
  }
  .menu-toggle {
    position: relative;
    z-index: 2;
    grid-column: 2;
    grid-row: 1;
    display: flex;
    width: 30px;
    height: 34px;
    padding: 9px 4px;
    flex-direction: column;
    justify-content: center;
    gap: 6px;
    border: 0;
    background: transparent;
  }
  .menu-toggle span {
    display: block;
    width: 100%;
    height: 1px;
    background: #111;
    transition: transform .35s ease;
  }
  .menu-open .menu-toggle span:first-child { transform: translateY(3.5px) rotate(45deg); }
  .menu-open .menu-toggle span:last-child { transform: translateY(-3.5px) rotate(-45deg); }
  .global-header .site-nav {
    position: fixed;
    z-index: 1;
    top: var(--site-header-height);
    left: 0;
    right: 0;
    display: flex;
    width: auto;
    justify-content: center;
    gap: clamp(12px, 5vw, 30px);
    padding: 20px 18px;
    border-bottom: 1px solid var(--line);
    background: var(--paper);
    font-size: 14px;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translate3d(0, -6px, 0);
    backface-visibility: hidden;
    will-change: opacity, transform;
    transition: opacity .22s ease,
                transform .34s cubic-bezier(.22, 1, .36, 1),
                visibility 0s linear .34s;
  }
  .global-header .site-nav a,
  .global-header .site-nav a:not(:last-child),
  .global-header .site-nav a:last-child {
    display: block;
    margin: 0;
  }
  .global-header.menu-open .site-nav {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translate3d(0, 0, 0);
    transition: opacity .22s ease,
                transform .34s cubic-bezier(.22, 1, .36, 1),
                visibility 0s;
  }
  .footer-links {
    flex-direction: row;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px 22px;
  }
  .intro-follow { display: block; }
  .intro-sticky { display: none; }
  .hero-fv { display: block; min-height: 0; padding: 25px 0 70px; }
  .fv-copy { min-height: 0; padding: 0 0 34px; }
  .fv-lead { margin-bottom: 26px; font-size: 15px; line-height: 1.8; letter-spacing: .11em; }
  .fv-title { margin-top: 0; }
  .fv-title h1 { font-size: clamp(54px, 16vw, 80px); line-height: .9; }
  .fv-meta { margin-top: 20px; font-size: 11px; gap: 8px 12px; }
  .fv-meta span { font-size: 10px; }
  .fv-meta strong { flex-basis: 100%; }
  .mobile-fv-stage { display: block; height: min(145vw, 620px); min-height: 380px; }
  .about-scroll { padding: 76px 0 90px; }
  .about-heading { margin-bottom: 48px; }
  .about-story { max-width: none; margin: 0; padding-bottom: 50px; font-size: 14px; line-height: 2.1; }
  .desktop-break { display: none; }
  .about-story .en { font-size: 14px; }
  .about-note { min-height: 0; padding: 58px 0 0; }
  .about-note h3 { font-size: 29px; }
  .works { padding-top: 84px; }
  .case-desc-break { display: none; }
}

@media (max-width: 760px) {
  .case-gallery { grid-template-columns: 1fr; gap: 16px; }
  .case-gallery .gallery-item,
  .case-gallery .g1,
  .case-gallery .g2,
  .case-gallery .g3,
  .case-gallery .g4,
  .case-gallery .g5,
  .case-gallery .g6 {
    grid-column: 1;
    width: 100%;
    margin: 0;
    align-self: auto;
    justify-self: stretch;
  }
}

@media (prefers-reduced-motion: reduce) {
  .fv-title-line,
  .footer-title-line,
  .reveal-heading {
    opacity: 1;
    filter: none;
    transform: none;
    transition: none;
  }
  .nav-roll { transition: none; }
}
