/* OPEN! Pack component layout and motion. */
:root {
  --paper: #fff5e9;
  --yellow: #f39700;
  --orange: #ea5514;
  --ink: #423127;
  --soft: #ffe6c1;
  --measure: 1280px;
  --section-space: 100px;
  color-scheme: light;
}
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  scroll-padding-top: 100px;
}
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Barlow", "Noto Sans JP", sans-serif;
  font-size: 16px;
  line-height: 1.9;
}
button,
input,
textarea,
select {
  font: inherit;
  color: inherit;
}
button,
a,
input,
textarea,
summary {
  -webkit-tap-highlight-color: transparent;
}
button,
a,
summary {
  touch-action: manipulation;
}
button,
summary {
  cursor: pointer;
}
a {
  color: inherit;
  text-decoration: none;
}
a:hover {
  text-decoration: none;
}
button {
  border: 0;
}
img {
  display: block;
  max-width: 100%;
  height: auto;
}
h1,
h2,
h3,
h4,
p,
figure {
  margin: 0;
}
ul {
  margin: 0;
  padding: 0;
  list-style: none;
}
button:disabled {
  opacity: 0.45;
  cursor: default;
}
:focus-visible {
  outline: 3px solid var(--orange);
  outline-offset: 5px;
}
[hidden] {
  display: none !important;
}
section {
  scroll-margin-top: 100px;
}
.skip-link {
  position: fixed;
  top: -100px;
  left: 20px;
  background: white;
  padding: 10px;
  z-index: 1000;
}
.skip-link:focus {
  top: 10px;
}
.site-header {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: min(var(--measure), 82%);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 44px;
  z-index: 25;
}
.brand {
  display: block;
  width: clamp(220px, 27vw, 390px);
}
.brand img {
  width: 100%;
}
.menu-toggle {
  position: fixed;
  right: 0;
  top: 48px;
  width: 58px;
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--orange);
  color: white;
  display: grid;
  place-items: center;
  line-height: 1;
  font-size: 26px;
  transition:
    transform 0.28s ease,
    background 0.28s ease;
}
.menu-toggle:hover {
  transform: rotate(8deg);
}
.site-menu {
  position: fixed;
  inset: 0;
  margin: 0 0 0 auto;
  width: min(520px, 100%);
  height: 100dvh;
  max-height: none;
  max-width: none;
  border: 0;
  padding: 140px 50px 45px;
  background: var(--orange);
  color: white;
  overflow: auto;
  z-index: 30;
}
.site-menu::backdrop {
  background: rgb(66 49 39/0.35);
  backdrop-filter: blur(4px);
}
.site-menu[open] {
  animation: menu-arrive 0.72s cubic-bezier(0.22, 0.7, 0.3, 1);
}
.site-menu nav {
  min-height: 100%;
  display: flex;
  flex-direction: column;
  gap: 20px;
  font-size: 23px;
  font-weight: 700;
}
.site-menu a {
  width: fit-content;
  transition:
    opacity 0.25s ease,
    translate 0.25s ease;
}
.site-menu a:hover {
  opacity: 0.7;
  translate: 5px 0;
}
.menu-legal {
  margin-top: auto;
  padding-top: 55px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  font-size: 13px;
}
.site-header:has(.menu-toggle[aria-expanded="true"]) {
  z-index: 40;
}
.menu-toggle[aria-expanded="true"] {
  z-index: 40;
  background: var(--ink);
}
@keyframes menu-arrive {
  from {
    opacity: 0;
    transform: translateX(45px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
main {
  min-height: 50vh;
}
.contact-link {
  background: var(--orange);
  border-radius: 100vmax;
  color: white;
  font-size: 18px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 15px 32px;
  min-width: 300px;
  transition:
    background 0.28s ease,
    translate 0.28s ease;
}
.contact-link:hover {
  background: #d94310;
  translate: 0 -2px;
}
.contact-link span {
  background: white;
  color: var(--orange);
  width: 20px;
  height: 20px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  font-size: 10px;
}
.hero {
  position: relative;
  padding: 175px 0 0;
  isolation: isolate;
}
.hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: var(--arc-height, 300px);
  background: var(--yellow);
  clip-path: ellipse(80% 100% at 50% 100%);
  z-index: -1;
}
.hero-inner {
  width: min(var(--measure), 82%);
  margin: auto;
  position: relative;
}
.hero-copy {
  padding: 30px 0 0;
}
.hero h1 {
  font-size: clamp(44px, 4.25vw, 70px);
  line-height: 1.35;
  letter-spacing: -0.05em;
  font-weight: 800;
}
.hero-copy p {
  margin: 28px 0;
  font-size: 16px;
  line-height: 1.9;
}
.hero-faces {
  position: absolute;
  right: 0;
  top: 0;
  width: 44%;
  height: 400px;
}
.portrait {
  display: block;
  background-image: url("../media/open-professionals.png");
  background-size: 400% 300%;
  background-color: white;
  background-repeat: no-repeat;
  border-radius: 50%;
  aspect-ratio: 1;
}
.hero-faces .portrait {
  position: absolute;
  width: 24%;
  animation: portrait-drift 6.7s ease-in-out infinite alternate;
}
.hero-faces .portrait:nth-child(1) {
  top: 28%;
  left: 0;
}
.hero-faces .portrait:nth-child(2) {
  top: 14%;
  left: 41%;
  animation-delay: -1.8s;
}
.hero-faces .portrait:nth-child(3) {
  top: 47%;
  left: 77%;
  animation-delay: -3.3s;
}
.hero-faces .portrait:nth-child(4) {
  top: 68%;
  left: 27%;
  animation-delay: -2.2s;
}
.hero-faces .portrait:nth-child(5) {
  top: 100%;
  left: 65%;
  animation-delay: -4.4s;
}
.hero-art {
  position: relative;
  margin-top: 10px;
  animation: art-arrive 1.65s ease both;
}
.open-hero-parts {
  position: relative;
  width: 100%;
  aspect-ratio: 1.5;
}
.open-hero-part {
  position: absolute;
  animation: art-drift 7.3s ease-in-out infinite alternate;
}
.part-art {
  display: block;
  background-image: url("../media/open-hero-parts.png");
  background-repeat: no-repeat;
  background-size: 200% auto;
  transition: transform 0.68s cubic-bezier(0.2, 0.65, 0.3, 1);
}
.open-hero-part:hover .part-art {
  transform: translateY(-9px) rotate(1.5deg);
}
.part-label {
  position: absolute;
  bottom: 0;
  left: 50%;
  translate: -50% 90%;
  border-radius: 100vmax;
  background: white;
  white-space: nowrap;
  padding: 3px 10px;
  font-size: 12px;
  opacity: 0;
  transition: opacity 0.25s;
  pointer-events: none;
}
.open-hero-part:hover .part-label {
  opacity: 1;
}
.part-1 {
  width: 56%;
  left: 26%;
  top: 0;
  z-index: 1;
}
.part-2 {
  width: 31%;
  left: 66%;
  top: 20%;
  z-index: 2;
  animation-delay: -1.3s;
}
.part-3 {
  width: 32%;
  left: 6%;
  top: 73%;
  z-index: 5;
  animation-delay: -4.6s;
}
.part-4 {
  width: 42%;
  left: 19%;
  top: 53%;
  z-index: 3;
  animation-delay: -2s;
}
.part-5 {
  width: 39%;
  left: 1%;
  top: 43%;
  z-index: 2;
  animation-delay: -3.8s;
}
.part-6 {
  width: 34%;
  left: 66%;
  top: 59%;
  z-index: 4;
  animation-delay: -0.7s;
}
.part-1 .part-art,
.part-2 .part-art {
  aspect-ratio: 627/520;
}
.part-1 .part-art {
  background-position: 0 0;
}
.part-2 .part-art {
  background-position: 100% 0;
}
.part-3 .part-art {
  aspect-ratio: 627/345;
  background-position: 0 57.2057%;
}
.part-4 .part-art {
  aspect-ratio: 627/360;
  background-position: 100% 58.1655%;
}
.part-5 .part-art {
  aspect-ratio: 627/384;
  background-position: 0 100%;
}
.part-6 .part-art {
  aspect-ratio: 627/354;
  background-position: 100% 100%;
}
@keyframes art-arrive {
  from {
    opacity: 0;
    translate: 0 24px;
  }
  to {
    opacity: 1;
    translate: 0 0;
  }
}
@keyframes portrait-drift {
  to {
    translate: 4px -9px;
    rotate: 2deg;
  }
}
@keyframes art-drift {
  to {
    translate: 0 -5px;
  }
}
.points {
  padding: 100px max(6%, calc((100% - var(--measure)) / 2)) 65px;
  background: var(--paper);
  position: relative;
}
.point-slide {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: 8%;
  align-items: center;
}
.point-collage {
  display: grid;
  grid-template: repeat(14, 1fr) / repeat(14, 1fr);
  aspect-ratio: 1.15;
  min-width: 0;
}
.point-collage img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 18px;
  box-shadow: 0 6px 20px #4231270b;
}
.point-collage img:nth-child(1) {
  grid-area: 1/8/9/15;
  rotate: 3deg;
}
.point-collage img:nth-child(2) {
  grid-area: 3/1/14/10;
  rotate: -3deg;
}
.point-collage img:nth-child(3) {
  grid-area: 10/7/15/13;
  rotate: -5deg;
  z-index: 2;
}
.point-copy {
  text-align: center;
}
.point-copy h2 {
  font-family: "Noto Sans JP", sans-serif;
  font-size: clamp(32px, 3.4vw, 54px);
  line-height: 1.42;
  font-weight: 800;
  letter-spacing: -0.045em;
}
.point-copy h2 span {
  display: block;
}
.point-copy h2 span:last-child {
  color: var(--orange);
}
.point-copy p {
  font-size: 15px;
  line-height: 1.9;
  margin-top: 25px;
  text-align: left;
}
.point-controls {
  display: flex;
  gap: 22px;
  justify-content: flex-end;
  margin: 35px 4% 12px;
}
.point-controls button {
  background: transparent;
  border: 2px solid var(--ink);
  border-radius: 50%;
  width: 78px;
  aspect-ratio: 1;
  font-size: 40px;
  font-weight: 700;
  transition:
    color 0.3s,
    border-color 0.3s,
    background 0.3s;
}
.point-controls button[aria-pressed="true"] {
  color: var(--orange);
  border-color: var(--orange);
  background: white;
}
.points > .autoplay-toggle {
  display: block;
  margin-left: auto;
  margin-right: 4%;
}
.autoplay-toggle {
  background: transparent;
  font-size: 12px;
  text-decoration: underline;
  text-underline-offset: 4px;
  padding: 10px;
}
.site-footer {
  background: var(--orange);
  color: white;
  padding: 65px max(6%, calc((100% - var(--measure)) / 2));
}
.footer-content {
  max-width: var(--measure);
  margin: auto;
}
.footer-brand {
  display: block;
  width: 260px;
  margin-bottom: 25px;
}
.footer-content > small {
  font-size: 11px;
}
.site-footer nav {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
  margin: 30px 0;
  font-size: 14px;
}
.footer-legal {
  display: flex;
  gap: 22px;
  flex-wrap: wrap;
  font-size: 12px;
}
.footer-legal span {
  margin-left: auto;
}
.site-footer a {
  transition: opacity 0.3s;
}
.site-footer a:hover {
  opacity: 0.65;
}
.back-top {
  position: fixed;
  right: 24px;
  bottom: 24px;
  background: transparent;
  z-index: 20;
  width: 64px;
  padding: 0;
  transition: translate 0.3s;
}
.back-top:hover {
  translate: 0 -6px;
}
.contact-bar {
  display: none;
}
/* Document and portfolio pages share the same shell. */
@media (min-width: 1600px) {
  .hero-inner {
    width: 1280px;
  }
  .hero h1 {
    font-size: 76px;
  }
  .hero-faces {
    height: 400px;
  }
  .hero-art {
    margin-top: 15px;
  }
}
@media (max-width: 1399px) {
  .hero-inner,
  .site-header {
    width: 86%;
  }
  .hero-faces {
    height: 300px;
  }
  .hero-art {
    margin-top: 30px;
  }
}
@media (max-width: 1000px) {
  .hero {
    padding-top: 150px;
  }
  .hero-faces {
    top: 40px;
    width: 40%;
    height: 240px;
  }
  .hero-art {
    margin-top: 75px;
  }
  .hero-copy p {
    font-size: 14px;
  }
  .point-slide {
    gap: 5%;
  }
  .point-controls button {
    width: 65px;
    font-size: 33px;
  }
}
@media (max-width: 700px) {
  .site-header {
    width: 88%;
    padding-top: 38.5px;
  }
  .brand {
    width: 220px;
  }
  .menu-toggle {
    top: 28px;
    width: 47px;
    font-size: 21px;
  }
  .site-menu {
    padding: 110px 35px 35px;
  }
  .site-menu nav {
    font-size: 22px;
  }
  .hero {
    padding-top: 135px;
  }
  .hero-inner {
    width: 88%;
  }
  .hero-copy {
    padding-top: 0;
  }
  .hero h1 {
    font-size: clamp(34px, 8.2vw, 55px);
    line-height: 1.38;
  }
  .hero-copy p {
    font-size: 12px;
    line-height: 1.9;
    margin: 20px 0;
  }
  .hero-copy .contact-link {
    font-size: 14px;
    min-width: 250px;
    padding: 13px 25px;
  }
  .hero-faces {
    width: 42%;
    top: 20px;
    right: -1%;
    height: 160px;
  }
  .hero-faces .portrait {
    width: 33%;
  }
  .hero-faces .portrait:nth-child(1) {
    top: 4%;
    left: 2%;
  }
  .hero-faces .portrait:nth-child(2) {
    top: -18%;
    left: 52%;
  }
  .hero-faces .portrait:nth-child(3) {
    top: 35%;
    left: 65%;
  }
  .hero-faces .portrait:nth-child(4) {
    top: 47%;
    left: 15%;
  }
  .hero-faces .portrait:nth-child(5) {
    top: 81%;
    left: 60%;
  }
  .hero-art {
    margin-top: 45px;
  }
  .points {
    padding: 45px 6%;
  }
  .point-slide {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  .point-collage {
    width: 94%;
    margin: auto;
    aspect-ratio: 1.2;
  }
  .point-copy h2 {
    font-size: clamp(22px, 5.5vw, 36px);
    line-height: 1.35;
  }
  .point-copy h2 span {
    display: inline;
  }
  .point-copy h2 span:last-child {
    display: block;
  }
  .point-copy p {
    font-size: 13px;
    margin: 20px auto 0;
    max-width: 450px;
  }
  .point-controls {
    justify-content: center;
    margin: 28px 0 5px;
    gap: 20px;
  }
  .point-controls button {
    width: 66px;
    font-size: 35px;
  }
  .points > .autoplay-toggle {
    margin: auto;
  }
  .site-footer {
    padding: 45px 6% 135px;
    text-align: center;
  }
  .footer-brand {
    width: 230px;
    margin: 0 auto 20px;
  }
  .site-footer nav {
    display: grid;
    grid-template-columns: 1fr 1fr;
    text-align: left;
    gap: 16px;
    margin: 30px 0;
    font-size: 12px;
  }
  .footer-legal {
    justify-content: center;
    gap: 10px 18px;
    font-size: 10px;
  }
  .footer-legal span {
    margin: 10px 0 0;
    width: 100%;
  }
  .contact-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 22;
    padding: 9px 10px max(9px, env(safe-area-inset-bottom));
    gap: 8px;
    background: #fff9;
    backdrop-filter: blur(8px);
    display: none;
    grid-template-columns: 1fr 1fr;
  }
  .contact-bar.is-visible {
    display: grid;
  }
  .contact-bar > a {
    border-radius: 100vmax;
    background: var(--yellow);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-width: 0;
    min-height: 52px;
    line-height: 1.3;
    padding: 7px 6px;
  }
  .contact-bar small {
    font-size: 7px;
  }
  .contact-bar strong {
    font-size: 17px;
  }
  .contact-bar > .contact-link {
    font-size: 12px;
    min-width: 0;
    background: var(--orange);
    flex-direction: row;
    gap: 5px;
  }
  .contact-bar .contact-link span {
    width: 14px;
    height: 14px;
    font-size: 8px;
  }
  .back-top {
    right: 12px;
    bottom: 87px;
    width: 48px;
  }
}
.menu-dismiss {
  position: absolute;
  right: 35px;
  top: 35px;
  width: 50px;
  aspect-ratio: 1;
  border-radius: 50%;
  background: white;
  color: var(--orange);
  font-size: 32px;
  line-height: 1;
}
/* Shared edges without a transformed ancestor, so the menu stays attached to the viewport. */
.site-header {
  left: 0;
  right: 0;
  margin: auto;
  transform: none;
}
.menu-toggle {
  right: max(9%, calc((100% - var(--measure)) / 2));
}
@media (max-width: 1399px) {
  .menu-toggle {
    right: 7%;
  }
}
@media (max-width: 700px) {
  .menu-toggle {
    right: 6%;
  }
  .hero-faces {
    width: 36%;
    right: 0;
  }
  .hero h1 {
    font-size: clamp(30px, 7.6vw, 49px);
  }
}
@media (max-width: 700px) {
  .hero-faces {
    width: 40%;
    height: auto;
    aspect-ratio: 1 / 1.15;
  }
  .hero-faces .portrait {
    width: 44%;
  }
  .hero-faces .portrait:nth-child(1) {
    left: 0;
    top: 4%;
  }
  .hero-faces .portrait:nth-child(2) {
    left: 53%;
    top: -18%;
  }
  .hero-faces .portrait:nth-child(3) {
    left: 65%;
    top: 37%;
  }
  .hero-faces .portrait:nth-child(4) {
    left: 8%;
    top: 52%;
  }
  .hero-faces .portrait:nth-child(5) {
    left: 60%;
    top: 88%;
  }
}

body {
  line-height: 2;
}

.point-controls button {
  padding: 0;
  line-height: 1;
  min-height: 0;
  flex-shrink: 0;
}
