/*
Theme Name: Eclipso Design
Theme URI: https://eclipsodesign.jp/
Author: Eclipso Design
Description: Eclipso Designの一ページ型ポートフォリオテーマ。
Version: 0.5.2
Text Domain: eclipso-design
*/

:root {
  --wine: #171a38;
  --wine-dark: #0f122b;
  --paper: #f4f1ea;
  --ink: #1d1b1b;
  --muted: #746d6e;
  --line: #d9d1cc;
  --blush: #e8ddde;
  --white: #f5efed;
  --serif: "Noto Sans JP", "Yu Gothic", sans-serif;
  --sans: "Noto Sans JP", "Yu Gothic", sans-serif;
  --latin: "Inter", Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 15px;
  line-height: 2;
  letter-spacing: 0.055em;
}

.screen-reader-text {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.screen-reader-text:focus {
  z-index: 100000;
  top: 10px;
  left: 10px;
  width: auto;
  height: auto;
  padding: 10px 14px;
  clip: auto;
  background: var(--paper);
  color: var(--ink);
}

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

img {
  display: block;
  width: 100%;
  height: auto;
}

h1,
h2,
h3,
p,
figure {
  margin: 0;
}

h1,
h2,
h3 {
  font-family: var(--serif);
  font-weight: 500;
  letter-spacing: 0.04em;
}

.fixed-heading > span {
  display: block;
  white-space: nowrap;
}

.site-header {
  position: fixed;
  z-index: 50;
  inset: 0 0 auto;
  height: 86px;
  padding: 0 max(40px, calc((100vw - 1240px) / 2));
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: linear-gradient(var(--paper), rgba(244, 241, 234, 0.88), transparent);
}

.admin-bar .site-header {
  top: 32px;
}

.logo {
  position: relative;
  width: 145px;
  height: 52px;
  overflow: visible;
}

.logo img {
  position: absolute;
  top: -6px;
  left: -12px;
  width: 145px;
  max-width: none;
}

.site-header nav,
.footer-links {
  display: flex;
  gap: 34px;
  font: 600 11px/1 var(--latin);
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.site-header nav a {
  position: relative;
}

.site-header nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 100%;
  bottom: -7px;
  height: 1px;
  background: var(--wine);
  transition: 0.3s;
}

.site-header nav a:hover::after {
  right: 0;
}

.menu-toggle {
  display: none;
}

.hero,
.section {
  width: min(1240px, calc(100% - 80px));
  margin: auto;
}

.has-signature-line {
  position: relative;
}

.signature-line {
  position: absolute;
  z-index: 1;
  pointer-events: none;
  color: var(--wine);
  opacity: 0.24;
}

.signature-line::before,
.signature-line::after {
  content: "";
  position: absolute;
  background: currentColor;
  transform-origin: top;
}

.line-intro {
  left: 21%;
  top: -1px;
  width: 16%;
  height: 110px;
  border-top: 1px solid currentColor;
  border-right: 1px solid currentColor;
  border-radius: 0 60px 0 0;
}

.line-works {
  left: 50%;
  top: 108px;
  bottom: 100px;
  border-left: 1px solid currentColor;
}

.line-service {
  left: max(20px, calc((100vw - 1240px) / 2 - 36px));
  top: 235px;
  bottom: 115px;
  color: #eadcdf;
  border-left: 1px solid currentColor;
}

.line-about {
  left: 47%;
  top: 0;
  width: 9%;
  height: 90px;
  border-bottom: 1px solid currentColor;
  border-left: 1px solid currentColor;
  border-radius: 0 0 0 48px;
}

.line-career {
  left: -36px;
  top: 222px;
  bottom: 150px;
  border-left: 1px solid currentColor;
}

.line-values {
  right: 7%;
  top: 65px;
  width: 20%;
  height: 80px;
  border-top: 1px solid currentColor;
  border-right: 1px solid currentColor;
  border-radius: 0 50px 0 0;
}

.line-contact {
  right: 8%;
  top: 0;
  width: 28%;
  height: 86px;
  border-bottom: 1px solid currentColor;
  border-left: 1px solid currentColor;
  border-radius: 0 0 0 60px;
}

.line-contact::after {
  right: -7px;
  bottom: -4px;
  width: 9px;
  height: 9px;
  border: 1px solid currentColor;
  border-radius: 50%;
  background: transparent;
}

.hero {
  min-height: 100vh;
  padding: 130px 0 70px;
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  gap: 6vw;
  align-items: center;
}

.eyebrow {
  display: block;
  margin-bottom: 27px;
  color: var(--muted);
  font: 600 10px/1 var(--latin);
  letter-spacing: 0.28em;
  text-transform: uppercase;
}

.hero h1 {
  font-size: clamp(38px, 4.5vw, 66px);
  line-height: 1.45;
}

.hero-copy > p {
  margin-top: 32px;
  color: var(--muted);
}

.hero-signature-line {
  display: block;
  width: 112px;
  height: 1px;
  margin-top: 34px;
  background: var(--wine);
  transform-origin: left;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 35px;
  margin-top: 35px;
  padding: 12px 0;
  border-bottom: 1px solid var(--ink);
  font: 600 11px/1.5 var(--latin);
  letter-spacing: 0.17em;
  text-transform: uppercase;
}

.text-link span {
  transition: 0.25s;
}

.text-link:hover span {
  transform: translateX(6px);
}

.hero-work {
  position: relative;
  justify-self: end;
  width: min(100%, 620px);
  aspect-ratio: 1;
  border-radius: 50%;
  overflow: hidden;
  background: var(--blush);
}

.hero-work img {
  height: 100%;
  object-fit: cover;
  transition: transform 1.2s ease;
}

.hero-work:hover img {
  transform: scale(1.025);
}

.hero-work::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(transparent 65%, rgba(29, 27, 27, 0.35));
}

.hero-work span {
  position: absolute;
  z-index: 2;
  left: 18%;
  bottom: 11%;
  color: #fff;
  font-size: 11px;
  letter-spacing: 0.14em;
}

.section {
  padding: 140px 0;
  border-top: 1px solid var(--line);
}

.intro,
.career {
  display: grid;
  grid-template-columns: 28% 1fr;
  gap: 7vw;
}

.lead {
  max-width: 700px;
  font-size: clamp(25px, 3vw, 43px);
  line-height: 1.75;
}

.body-copy {
  max-width: 680px;
  margin-top: 28px;
  color: var(--muted);
}

.works-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 75px 35px;
}

.work-card {
  position: relative;
}

.work-point {
  position: absolute;
  z-index: 2;
  top: 50%;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--wine);
  opacity: 0.45;
}

.work-card:nth-child(odd) .work-point {
  right: -20px;
}

.work-card:nth-child(even) .work-point {
  left: -20px;
}

.work-card:nth-child(even) {
  margin-top: 100px;
}

.work-image {
  aspect-ratio: 4/3;
  overflow: hidden;
  background: var(--blush);
}

.work-image-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  font: 500 11px/1 var(--latin);
  letter-spacing: 0.12em;
}

.work-image img {
  height: 100%;
  object-fit: cover;
  transition: 0.7s;
}

.work-card:hover img {
  transform: scale(1.025);
}

.work-meta {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  margin-top: 18px;
}

.work-meta h3 {
  font-family: var(--latin);
  font-weight: 600;
  font-size: 19px;
}

.work-meta h2 {
  font-family: var(--latin);
  font-weight: 600;
  font-size: 19px;
  letter-spacing: 0.02em;
}

.work-meta span {
  color: var(--muted);
  font-family: var(--latin);
  font-weight: 600;
  font-size: 10px;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.work-number {
  position: absolute;
  right: 0;
  top: -30px;
  color: var(--muted);
  font: 400 10px var(--latin);
}

.preview-note {
  margin-top: 70px;
  color: var(--muted);
  font-size: 11px;
}

.wine {
  width: 100%;
  max-width: none;
  padding-inline: max(40px, calc((100vw - 1240px) / 2));
  background: var(--wine);
  color: var(--white);
  display: grid;
  grid-template-columns: 28% 1fr;
  gap: 7vw;
}

.wine .eyebrow {
  color: #eadcdf;
}

.service-heading h2,
.career h2,
.contact h2 {
  font-size: clamp(34px, 4.1vw, 58px);
  line-height: 1.65;
}

@media (min-width: 801px) {
  .service {
    align-items: start;
  }

  .service-heading {
    position: sticky;
    top: 135px;
    align-self: start;
  }
}

.service-list {
  border-top: 1px solid rgba(255, 255, 255, 0.25);
}

.service-row {
  display: grid;
  grid-template-columns: 70px 1fr 1.15fr;
  gap: 35px;
  padding: 38px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.25);
}

.service-num {
  font: 600 10px var(--latin);
  letter-spacing: 0.15em;
}

.service-row h3 {
  font-family: var(--latin);
  font-weight: 600;
  font-size: 28px;
}

.service-row p {
  color: #eadcdf;
  font-size: 13px;
}

.about {
  display: grid;
  grid-template-columns: minmax(0, 44%) minmax(0, 1fr);
  gap: 8vw;
  align-items: center;
}

.profile-photo {
  position: relative;
  aspect-ratio: 4/5;
  overflow: hidden;
  background: var(--blush);
}

.profile-photo img {
  height: 100%;
  object-fit: cover;
}

.role {
  margin-bottom: 24px;
  color: var(--wine);
  font: 600 10px/1.5 var(--latin);
  letter-spacing: 0.19em;
  text-transform: uppercase;
}

.profile-content h2 {
  font-size: clamp(29px, 3.1vw, 45px);
  line-height: 1.75;
}

.career-list {
  border-top: 1px solid var(--line);
}

.career-list article {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 35px;
  padding: 30px 0;
  border-bottom: 1px solid var(--line);
}

.career-list span {
  padding-top: 5px;
  color: var(--wine);
  font: 600 10px/1.6 var(--latin);
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.career-list p {
  color: var(--muted);
}

.values-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}

.values-grid article {
  min-height: 260px;
  padding: 48px 35px;
  background: var(--paper);
}

.values-grid h3 {
  font-family: var(--latin);
  font-weight: 600;
  margin: 20px 0;
  font-size: 23px;
}

.values-grid p {
  color: var(--muted);
}

.contact {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 9vw;
}

.contact > div > p {
  margin-top: 28px;
  color: var(--muted);
}

.contact-field {
  margin-bottom: 28px;
}

.contact-field label {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 2px;
  font-size: 11px;
  letter-spacing: 0.12em;
}

.contact-field .required,
.contact-field .optional {
  padding: 3px 6px;
  font: 8px/1 var(--sans);
  letter-spacing: 0.08em;
}

.contact-field .required {
  background: var(--wine);
  color: var(--white);
}

.contact-field .optional {
  border: 1px solid var(--line);
  color: var(--muted);
}

.wpcf7-form-control-wrap {
  display: block;
}

.wpcf7-form input:not([type="checkbox"]),
.wpcf7-form textarea {
  width: 100%;
  border: 0;
  border-bottom: 1px solid var(--line);
  background: transparent;
  padding: 10px 2px;
  border-radius: 0;
  color: var(--ink);
  font: inherit;
  outline: 0;
  transition: border-color 0.25s ease;
}

.wpcf7-form input:not([type="checkbox"]):focus,
.wpcf7-form textarea:focus {
  border-color: var(--wine);
}

.wpcf7-form textarea {
  resize: vertical;
}

.contact-privacy {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 28px;
  font-size: 11px;
  letter-spacing: 0.08em;
}

.contact-privacy input {
  width: 16px;
  height: 16px;
  margin: 0;
  accent-color: var(--wine);
}

.contact-privacy a {
  border-bottom: 1px solid currentColor;
}

.wpcf7-form button,
.wpcf7-form input[type="submit"] {
  width: min(100%, 280px);
  min-height: 70px;
  margin-top: 8px;
  padding: 0 24px;
  border: 1px solid var(--wine);
  background: var(--wine);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  font: 600 11px/1 var(--latin);
  letter-spacing: 0.17em;
  text-transform: uppercase;
}

.wpcf7-form button:hover,
.wpcf7-form input[type="submit"]:hover {
  background: var(--wine-dark);
}

.wpcf7-form small {
  display: block;
  margin-top: 14px;
  color: var(--muted);
  font-size: 10px;
}

.contact-plugin-note {
  padding: 22px;
  border: 1px solid var(--line);
  color: var(--muted);
  font-size: 12px;
}

.wpcf7-spinner {
  margin: 16px 0 0 12px;
}

.wpcf7-form.submitting .wpcf7-submit {
  opacity: 0.65;
  pointer-events: none;
}

.wpcf7-not-valid-tip {
  display: block;
  margin-top: 7px;
  color: var(--wine-dark);
  font-size: 10px;
}

.wpcf7-form-control.wpcf7-not-valid {
  border-color: var(--wine-dark);
}

.wpcf7 form .wpcf7-response-output {
  margin: 22px 0 0;
  padding: 12px 16px;
  border: 1px solid var(--wine);
  color: var(--ink);
  font-size: 12px;
}

footer {
  padding: 90px max(40px, calc((100vw - 1240px) / 2)) 35px;
  background: #11142f;
  color: var(--white);
}

.footer-brand {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 11px;
}

.footer-kana {
  color: #c7bbbd;
  font-size: 9px;
  line-height: 1;
  letter-spacing: 0.2em;
}

.footer-title {
  font-family: var(--latin);
  font-weight: 600;
  font-size: clamp(26px, 2.6vw, 36px);
  line-height: 1;
  letter-spacing: 0.035em;
}

.footer-links {
  margin-top: 45px;
}

.footer-links a {
  color: #d8cdcf;
}

footer > p {
  margin-top: 75px;
  padding-top: 22px;
  border-top: 1px solid rgba(255, 255, 255, 0.18);
  color: #c7bbbd;
  font: 400 9px var(--latin);
  letter-spacing: 0.15em;
}

.back-to-top {
  position: fixed;
  z-index: 45;
  right: clamp(18px, 3vw, 46px);
  bottom: clamp(18px, 3vw, 42px);
  width: 62px;
  height: 62px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 50%;
  background: var(--wine);
  color: var(--white);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1px;
  box-shadow: 0 8px 30px rgba(45, 28, 32, 0.18);
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s;
}

.back-to-top.is-visible {
  opacity: 1;
  visibility: visible;
  transform: none;
}

.back-to-top span {
  font: 17px/1 var(--serif);
}

.back-to-top small {
  font: 600 8px/1 var(--latin);
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.back-to-top:hover {
  background: var(--wine-dark);
  transform: translateY(-3px);
}

.motion-ready [data-reveal] {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.75s ease, transform 0.75s cubic-bezier(0.22, 1, 0.36, 1);
}

.motion-ready [data-reveal].is-revealed {
  opacity: 1;
  transform: none;
}

.motion-ready .hero-reveal {
  opacity: 1;
  transform: none;
}

.motion-ready .reveal-step {
  opacity: 0;
  transform: translateY(11px);
  transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

.motion-ready .is-revealed .reveal-step {
  opacity: 1;
  transform: none;
}

.motion-ready .is-revealed .reveal-step:nth-child(2) {
  transition-delay: 0.1s;
}

.motion-ready .is-revealed .reveal-step:nth-child(3) {
  transition-delay: 0.2s;
}

.motion-ready .is-revealed .reveal-step:nth-child(4) {
  transition-delay: 0.3s;
}

.motion-ready .reveal-line {
  transform: scaleX(0);
  transition: transform 0.85s 0.42s cubic-bezier(0.22, 1, 0.36, 1);
}

.motion-ready .is-revealed .reveal-line {
  transform: scaleX(1);
}

.motion-ready .mask-reveal {
  opacity: 1;
  transform: none;
}

.motion-ready .mask-reveal::before {
  content: "";
  position: absolute;
  z-index: 3;
  inset: 0;
  background: var(--paper);
  transform-origin: right;
  transition: transform 0.9s cubic-bezier(0.22, 1, 0.36, 1);
}

.motion-ready .profile-photo.mask-reveal::before {
  background: var(--paper);
}

.motion-ready .mask-reveal.is-revealed::before {
  transform: translateX(101%);
}

.motion-ready .signature-line[data-reveal] {
  opacity: 0;
  transform: scaleY(0);
  transform-origin: top;
  transition: opacity 0.35s ease, transform 0.9s cubic-bezier(0.22, 1, 0.36, 1);
}

.motion-ready .signature-line[data-reveal].is-revealed {
  opacity: 0.24;
  transform: scaleY(1);
}

.motion-ready .service .signature-line[data-reveal].is-revealed {
  opacity: 0.42;
}

.motion-ready .service-row.is-revealed {
  opacity: 0.65;
}

.motion-ready .service-row.is-revealed:hover,
.motion-ready .service-row.is-revealed:focus-within {
  opacity: 1;
}

.service-row {
  transition-property: opacity, transform;
}

@media (max-width: 800px) {
  body.menu-open {
    overflow: hidden;
  }

  .site-header {
    height: 70px;
    padding: 0 20px;
    background: rgba(244, 241, 234, 0.95);
    backdrop-filter: blur(8px);
    transition: background-color 0.35s ease;
  }

  .admin-bar .site-header {
    top: 46px;
  }

  .site-header.is-menu-open {
    background: var(--wine-dark);
    backdrop-filter: none;
  }

  .logo {
    z-index: 52;
    width: 132px;
  }

  .logo img {
    width: 132px;
    transition: filter 0.35s ease;
  }

  .site-header.is-menu-open .logo img {
    filter: brightness(0) invert(1);
  }

  .menu-toggle {
    position: relative;
    z-index: 52;
    width: 46px;
    height: 46px;
    margin-right: -8px;
    border: 0;
    background: transparent;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    cursor: pointer;
  }

  .menu-toggle span {
    width: 25px;
    height: 1px;
    background: var(--ink);
    transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1), background-color 0.35s ease;
  }

  .site-header.is-menu-open .menu-toggle span {
    background: var(--white);
  }

  .menu-toggle.is-open span:first-child {
    transform: translateY(4.5px) rotate(45deg);
  }

  .menu-toggle.is-open span:last-child {
    transform: translateY(-4.5px) rotate(-45deg);
  }

  .site-header nav {
    position: fixed;
    z-index: 51;
    inset: 0;
    background: var(--wine-dark);
    color: var(--white);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 34px;
    font: 600 13px/1 var(--latin);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(-10px);
    transition:
      opacity 0.35s ease,
      transform 0.45s cubic-bezier(0.22, 1, 0.36, 1),
      visibility 0s linear 0.45s;
  }

  .site-header nav.is-open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: none;
    transition-delay: 0s;
  }

  .site-header nav a {
    padding: 10px;
    opacity: 0;
    transform: translateY(8px);
    transition:
      opacity 0.28s ease,
      transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
  }

  .site-header nav.is-open a {
    opacity: 1;
    transform: none;
  }

  .site-header nav.is-open a:nth-child(1) {
    transition-delay: 0.08s;
  }

  .site-header nav.is-open a:nth-child(2) {
    transition-delay: 0.13s;
  }

  .site-header nav.is-open a:nth-child(3) {
    transition-delay: 0.18s;
  }

  .site-header nav.is-open a:nth-child(4) {
    transition-delay: 0.23s;
  }

  .site-header nav a::after {
    bottom: 1px;
    background: var(--white);
  }

  .hero,
  .section {
    width: min(100% - 40px, 620px);
  }

  .hero {
    padding-top: 105px;
    grid-template-columns: 1fr;
    gap: 55px;
  }

  .hero-work {
    justify-self: center;
  }

  .section {
    padding: 90px 0;
  }

  .section.has-signature-line:not(.wine) {
    padding-left: 22px;
  }

  .intro,
  .career,
  .about,
  .contact {
    grid-template-columns: 1fr;
    gap: 50px;
  }

  .wine {
    width: 100%;
    max-width: none;
    padding-inline: 28px;
    grid-template-columns: 1fr;
    gap: 45px;
  }

  .signature-line {
    left: 4px;
    right: auto;
    top: 28px;
    bottom: 28px;
    width: 0;
    height: auto;
    border: 0;
    border-left: 1px solid currentColor;
    border-radius: 0;
    opacity: 0.16;
  }

  .line-service {
    left: 10px;
    color: #eadcdf;
  }

  .line-values,
  .line-contact {
    display: none;
  }

  .work-point {
    display: none;
  }

  .works-grid {
    gap: 50px 15px;
  }

  .work-card:nth-child(even) {
    margin-top: 55px;
  }

  .service-row {
    grid-template-columns: 40px 1fr;
    gap: 18px;
  }

  .service-row p {
    grid-column: 2;
  }

  .career-list article {
    grid-template-columns: 145px 1fr;
    gap: 24px;
  }

  .footer-links {
    flex-wrap: wrap;
  }

  .back-to-top {
    width: 54px;
    height: 54px;
    right: 16px;
    bottom: 16px;
  }
}

@media (max-width: 520px) {
  body {
    font-size: 14px;
  }

  .hero,
  .section {
    width: calc(100% - 32px);
  }

  .hero h1 {
    font-size: 9vw;
  }

  .lead {
    font-size: clamp(22px, 7vw, 25px);
  }

  .profile-content h2 {
    font-size: clamp(21px, 6.2vw, 25px);
  }

  .service-heading h2,
  .career h2,
  .contact h2 {
    font-size: clamp(27px, 8vw, 32px);
  }

  .works-grid {
    grid-template-columns: 1fr;
  }

  .work-card:nth-child(even) {
    margin-top: 0;
  }

  .work-number {
    display: none;
  }

  .work-meta {
    display: block;
  }

  .work-meta span {
    display: block;
    margin-top: 5px;
  }

  .service-row h3 {
    font-size: 22px;
  }

  .career-list article {
    grid-template-columns: 1fr;
    gap: 8px;
    padding: 25px 0;
  }

  .values-grid {
    grid-template-columns: 1fr;
  }

  .wine {
    padding-inline: 28px;
  }

  footer {
    padding-inline: 20px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition: none !important;
  }

  .motion-ready [data-reveal],
  .motion-ready .reveal-step,
  .motion-ready .mask-reveal,
  .motion-ready .signature-line[data-reveal],
  .motion-ready .service-row.is-revealed {
    opacity: 1;
    transform: none;
    clip-path: none;
  }

  .motion-ready .mask-reveal::before {
    display: none;
  }

  .back-to-top {
    transform: none;
  }
}

/* Inner pages and Work detail */
.wrap {
  width: min(1240px, calc(100% - 80px));
  margin-inline: auto;
}

.page-hero {
  padding: 190px 0 100px;
}

.page-hero.wine {
  display: block;
  width: 100%;
  padding-inline: max(40px, calc((100vw - 1240px) / 2));
}

.page-title {
  font-family: var(--latin);
  font-weight: 700;
  font-size: clamp(52px, 7vw, 96px);
  line-height: 1.2;
}

.page-intro {
  max-width: 700px;
  margin-top: 45px;
  font-family: var(--serif);
  font-size: clamp(22px, 2.6vw, 38px);
}

.detail-hero {
  padding-top: 150px;
}

.detail-title {
  max-width: 980px;
  font-size: clamp(38px, 5.3vw, 72px);
  line-height: 1.4;
}

.detail-meta {
  display: flex;
  gap: 30px;
  margin: 30px 0 65px;
  color: var(--muted);
  font-family: var(--latin);
  font-size: 11px;
}

.detail-visual {
  aspect-ratio: 16/9;
  overflow: hidden;
  background: var(--blush);
}

.detail-visual img {
  height: 100%;
  object-fit: cover;
}

.detail-body {
  display: grid;
  grid-template-columns: 28% 1fr;
  gap: 7vw;
  padding: 110px 0;
}

.facts {
  font-family: var(--latin);
  font-size: 12px;
}

.facts dt {
  margin-top: 18px;
  color: var(--muted);
}

.facts dd {
  margin: 0;
}

.work-site-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  margin-top: 34px;
  padding: 0 24px;
  border: 1px solid var(--wine);
  border-radius: 999px;
  color: var(--wine);
  font-family: var(--latin);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-decoration: none;
  transition: background-color 180ms ease, color 180ms ease;
}

.work-site-link:hover {
  background: var(--wine);
  color: var(--white);
}

.detail-copy h2 {
  margin-bottom: 35px;
  font-size: clamp(28px, 3vw, 43px);
  line-height: 1.75;
}

.detail-copy .text {
  color: var(--muted);
}

.gallery {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-top: 70px;
}

.gallery > div {
  aspect-ratio: 4/3;
  overflow: hidden;
  background: var(--blush);
}

.gallery img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.not-found {
  min-height: 70vh;
  padding: 200px 0;
}

.work-card:focus-visible,
.hero-work:focus-visible,
.text-link:focus-visible,
.work-site-link:focus-visible,
.site-header a:focus-visible,
.footer-links a:focus-visible,
.back-to-top:focus-visible {
  outline: 2px solid var(--wine);
  outline-offset: 4px;
}

.wine a:focus-visible,
.site-footer a:focus-visible {
  outline-color: var(--white);
}

@media (max-width: 800px) {
  .wrap {
    width: min(100% - 40px, 620px);
  }

  .page-hero {
    padding: 140px 0 65px;
  }

  .detail-meta {
    margin-bottom: 40px;
  }

  .detail-body {
    grid-template-columns: 1fr;
    gap: 45px;
    padding: 70px 0;
  }
}

@media (max-width: 520px) {
  .wrap {
    width: calc(100% - 32px);
  }

  .detail-meta {
    display: block;
  }

  .detail-meta span {
    display: block;
  }

  .gallery {
    grid-template-columns: 1fr;
    margin-top: 45px;
  }
}

/* Top page redesign — v0.4.0 */
:root {
  --rd-ink: #08090b;
  --rd-paper: #fbfbfa;
  --rd-violet: #5b15d6;
  --rd-cyan: #39d7ee;
}

body.home {
  overflow-x: hidden;
}

.rd-hero,
.rd-statement {
  color: var(--rd-ink);
}

.rd-hero h1,
.rd-statement h2,
.rd-section-heading h2 {
  font-family: var(--latin);
  font-weight: 700;
  letter-spacing: -0.065em;
}

.rd-shell {
  width: min(1240px, calc(100% - 80px));
  margin-inline: auto;
}

.rd-hero {
  position: relative;
  min-height: 100svh;
  isolation: isolate;
  overflow: hidden;
  background:
    radial-gradient(circle at 13% 33%, rgba(255, 255, 255, 0.98) 0 21%, transparent 48%),
    #fdfdfc;
}

.rd-module-hero {
  position: relative;
  z-index: 0;
  min-height: 100svh;
  overflow: hidden;
  background: #000;
}

.rd-slider-module {
  position: relative;
  min-height: 100svh;
}

.rd-vapor,
.rd-vapor-fallback {
  position: absolute;
  inset: 0;
}

.rd-vapor {
  z-index: -1;
  pointer-events: none;
}

.rd-vapor-fallback {
  overflow: hidden;
  filter: saturate(1.12);
}

.rd-vapor-fallback::before,
.rd-vapor-fallback::after,
.rd-vapor-fallback span {
  content: "";
  position: absolute;
  border-radius: 48% 52% 38% 62%;
  filter: blur(34px);
  opacity: 0.72;
  mix-blend-mode: multiply;
  will-change: transform;
}

.rd-vapor-fallback::before {
  width: 75vw;
  height: 58vw;
  right: -13vw;
  top: -15vw;
  background: conic-gradient(from 120deg, #fff 0 12%, #54edff 24%, #075de6 38%, #771bdd 51%, #ff74e5 66%, #fff 85%);
  transform: rotate(-18deg);
  animation: rd-vapor-one 16s ease-in-out infinite alternate;
}

.rd-vapor-fallback::after {
  width: 60vw;
  height: 36vw;
  right: 1vw;
  bottom: -16vw;
  background: linear-gradient(135deg, #3511a5, #0bd6f0 45%, #fff 72%);
  transform: rotate(9deg);
  animation: rd-vapor-two 19s ease-in-out infinite alternate;
}

.rd-vapor-fallback span:nth-child(1) {
  width: 42vw;
  height: 15vw;
  left: 36vw;
  top: 6vw;
  background: linear-gradient(90deg, #fff, #22dcf5, #4423d8, #f28bef);
  transform: rotate(17deg);
}

.rd-vapor-fallback span:nth-child(2) {
  width: 34vw;
  height: 18vw;
  left: 42vw;
  top: 46%;
  background: linear-gradient(90deg, #ffb5e8, #6b17d9, #05dfeb);
  transform: rotate(-23deg);
  animation: rd-vapor-three 14s ease-in-out infinite alternate;
}

.rd-vapor-fallback span:nth-child(3) {
  width: 55vw;
  height: 30vw;
  right: -22vw;
  top: 31%;
  background: radial-gradient(circle, #fff 8%, #20e1f1 38%, #7040e4 62%, transparent 73%);
}

@keyframes rd-vapor-one {
  to { transform: translate3d(-3vw, 2vw, 0) rotate(-12deg) scale(1.04); }
}

@keyframes rd-vapor-two {
  to { transform: translate3d(4vw, -2vw, 0) rotate(14deg) scale(0.96); }
}

@keyframes rd-vapor-three {
  to { transform: translate3d(-2vw, 3vw, 0) rotate(-17deg) scale(1.08); }
}

.rd-hero-inner {
  position: relative;
  min-height: 100svh;
  padding: clamp(150px, 18vh, 220px) 0 90px;
  display: flex;
  align-items: flex-start;
}

.rd-hero-copy {
  width: min(680px, 63%);
}

.rd-kicker {
  margin: 0 0 24px;
  font: 700 11px/1.4 var(--latin);
  letter-spacing: 0.42em;
  text-transform: uppercase;
}

.rd-hero h1 {
  max-width: 680px;
  margin: 0;
  font-size: clamp(72px, 8.1vw, 132px);
  line-height: 0.86;
  text-wrap: balance;
}

.rd-japanese {
  margin-top: 30px;
  font-size: clamp(18px, 2vw, 27px);
  font-weight: 600;
  letter-spacing: 0.1em;
}

.rd-description {
  max-width: 520px;
  margin-top: 28px;
  font-size: 13px;
  line-height: 1.7;
  letter-spacing: 0.015em;
}

.rd-button {
  width: min(280px, 100%);
  margin-top: 35px;
  padding: 16px 22px;
  border: 1px solid rgba(8, 9, 11, 0.55);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font: 700 10px/1 var(--latin);
  letter-spacing: 0.19em;
  text-transform: uppercase;
  transition: 0.25s ease;
}

.rd-button:hover,
.rd-button:focus-visible {
  background: var(--rd-ink);
  color: #fff;
}

.rd-scroll {
  position: absolute;
  left: 50%;
  bottom: 28px;
  display: grid;
  justify-items: center;
  gap: 10px;
  font: 700 9px/1 var(--latin);
  letter-spacing: 0.25em;
  text-transform: uppercase;
}

.rd-scroll i {
  width: 18px;
  height: 18px;
  border-right: 1px solid;
  border-bottom: 1px solid;
  transform: rotate(45deg);
}

.rd-statement {
  padding: clamp(100px, 12vw, 180px) 0;
}

.rd-statement-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(300px, 0.75fr);
  gap: clamp(70px, 12vw, 170px);
  align-items: center;
}

.rd-statement h2 {
  margin: 0;
  font-size: clamp(62px, 7vw, 112px);
  line-height: 0.84;
}

.rd-dot {
  color: var(--rd-violet);
}

.rd-statement-copy {
  padding-left: clamp(30px, 5vw, 70px);
  border-left: 1px solid rgba(8, 9, 11, 0.3);
  font-size: 14px;
  font-weight: 500;
  line-height: 2.05;
}

.rd-philosophy {
  background: linear-gradient(112deg, #fff 0 58%, #edf3fa 100%);
}

.rd-works-intro {
  position: relative;
  color: #f8fbff;
  background: #04101e;
  overflow: hidden;
}

.rd-works-intro::before {
  content: "";
  position: absolute;
  inset: -60% -10%;
  background:
    radial-gradient(ellipse at 68% 40%, rgba(23, 218, 255, 0.84), transparent 19%),
    radial-gradient(ellipse at 45% 58%, rgba(119, 30, 238, 0.78), transparent 28%),
    radial-gradient(ellipse at 64% 72%, rgba(255, 44, 224, 0.55), transparent 21%);
  filter: blur(28px);
  transform: rotate(-8deg);
}

.rd-works-intro .rd-shell {
  position: relative;
}

.rd-works-intro .rd-statement-copy {
  border-color: rgba(255, 255, 255, 0.45);
}

.rd-works-intro .rd-dot {
  color: #77e6ff;
}

.rd-section-heading {
  margin-bottom: 65px;
  display: flex;
  align-items: baseline;
  gap: 25px;
}

.rd-section-heading h2 {
  font-size: clamp(46px, 5vw, 76px);
  line-height: 1;
}

.rd-section-heading span {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.1em;
}

@media (max-width: 800px) {
  .rd-shell {
    width: min(100% - 40px, 620px);
  }

  .rd-hero,
  .rd-hero-inner {
    min-height: 760px;
  }

  .rd-hero-inner {
    padding-top: 135px;
  }

  .rd-hero-copy {
    width: 100%;
  }

  .rd-hero h1 {
    max-width: 560px;
    font-size: clamp(58px, 15vw, 96px);
  }

  .rd-vapor-fallback::before {
    width: 110vw;
    height: 92vw;
    right: -52vw;
    top: 5vw;
  }

  .rd-vapor-fallback::after {
    width: 105vw;
    height: 70vw;
    right: -35vw;
    bottom: -5vw;
  }

  .rd-vapor-fallback span:nth-child(1) {
    width: 80vw;
    height: 30vw;
    left: 32vw;
    top: 22vw;
  }

  .rd-statement-grid {
    grid-template-columns: 1fr;
    gap: 55px;
  }

  .rd-statement-copy {
    max-width: 520px;
  }

  .rd-statement h2 {
    font-size: clamp(56px, 15vw, 88px);
  }

  .rd-section-heading {
    margin-bottom: 48px;
  }
}

@media (max-width: 520px) {
  .rd-shell {
    width: calc(100% - 32px);
  }

  .rd-hero,
  .rd-hero-inner {
    min-height: 700px;
  }

  .rd-hero-inner {
    padding: 120px 0 70px;
  }

  .rd-hero h1 {
    font-size: clamp(52px, 17vw, 78px);
    line-height: 0.9;
  }

  .rd-description {
    max-width: 82%;
    font-size: 11px;
  }

  .rd-scroll {
    left: auto;
    right: 8px;
  }

  .rd-statement {
    padding: 88px 0;
  }

  .rd-statement h2 {
    font-size: clamp(49px, 15.5vw, 74px);
  }

  .rd-statement-copy {
    padding-left: 22px;
    font-size: 13px;
  }

  .rd-section-heading {
    display: block;
  }

  .rd-section-heading h2 {
    font-size: 46px;
  }

  .rd-section-heading span {
    display: block;
    margin-top: 12px;
  }

  .about > * {
    min-width: 0;
  }

  .about .fixed-heading > span {
    white-space: normal;
  }
}

@media (prefers-reduced-motion: reduce) {
  .rd-vapor-fallback::before,
  .rd-vapor-fallback::after,
  .rd-vapor-fallback span {
    animation: none !important;
  }
}

/* Works index and Midnight Editorial Footer — v0.5.0 */
.works-index-link {
  margin-top: 72px;
  display: flex;
  justify-content: flex-end;
}

.works-index-link a {
  min-width: 225px;
  padding: 14px 0;
  border-bottom: 1px solid rgba(23, 26, 56, 0.55);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  color: var(--wine);
  font: 700 10px/1.4 var(--latin);
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.works-index-link a span:last-child {
  font-size: 17px;
  transition: transform 0.25s ease;
}

.works-index-link a:hover span:last-child,
.works-index-link a:focus-visible span:last-child {
  transform: translateX(5px);
}

.works-page-hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 87% 22%, rgba(75, 211, 235, 0.13), transparent 18%),
    radial-gradient(circle at 92% 28%, rgba(126, 65, 215, 0.09), transparent 22%);
}

.works-page-hero .eyebrow,
.works-archive-heading {
  font: 700 10px/1.4 var(--latin);
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.works-page-hero .page-title {
  color: var(--wine);
  letter-spacing: -0.06em;
}

.works-page-hero .page-intro {
  font-family: var(--sans);
  font-weight: 500;
  line-height: 1.75;
}

.works-archive {
  width: 100%;
  max-width: none;
  padding: clamp(90px, 10vw, 150px) 0 clamp(120px, 13vw, 190px);
}

.works-archive-heading {
  margin-bottom: 70px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  color: var(--muted);
}

.works-archive-grid {
  gap: 90px 35px;
}

.works-archive-grid .work-card {
  display: block;
}

.works-archive-grid .work-image {
  background: #e8e7e5;
}

.works-archive-grid .work-meta {
  align-items: baseline;
}

.works-pagination {
  margin-top: 110px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  font: 600 11px/1 var(--latin);
  letter-spacing: 0.1em;
}

.works-pagination .page-numbers {
  min-width: 38px;
  height: 38px;
  padding: 0 11px;
  border: 1px solid transparent;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.works-pagination .page-numbers.current,
.works-pagination a:hover,
.works-pagination a:focus-visible {
  border-color: var(--wine);
}

.works-empty {
  padding: 80px 0;
  color: var(--muted);
}

.site-footer {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: 0;
  background: #171a38;
  color: #fff;
}

.site-footer::after {
  content: "";
  position: absolute;
  z-index: -1;
  right: -12vw;
  bottom: -25vw;
  width: min(720px, 72vw);
  aspect-ratio: 1;
  border-radius: 50%;
  background:
    radial-gradient(circle at 26% 38%, rgba(56, 220, 239, 0.22), transparent 28%),
    radial-gradient(circle at 52% 48%, rgba(111, 62, 222, 0.24), transparent 36%),
    radial-gradient(circle at 64% 65%, rgba(239, 55, 192, 0.2), transparent 38%);
  filter: blur(52px);
  pointer-events: none;
}

.midnight-footer-shell {
  width: min(1240px, calc(100% - 80px));
  margin-inline: auto;
  padding: clamp(70px, 7vw, 105px) 0 34px;
}

.midnight-footer-topline {
  min-height: 48px;
  padding-bottom: 22px;
  border-bottom: 1px solid #414562;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 40px;
}

.midnight-footer-topline p,
.midnight-footer-top,
.midnight-footer-nav p,
.midnight-footer-bottom {
  color: #bcc5dd;
  font: 600 9px/1.5 var(--latin);
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.midnight-footer-geometry {
  position: relative;
  width: 74px;
  height: 28px;
  border-top: 1px solid #65708c;
  border-right: 1px solid #65708c;
  opacity: 0.75;
}

.midnight-footer-geometry::before,
.midnight-footer-geometry::after {
  content: "";
  position: absolute;
  border: 1px solid #65708c;
}

.midnight-footer-geometry::before {
  top: 7px;
  right: 18px;
  width: 16px;
  height: 16px;
  transform: rotate(45deg);
}

.midnight-footer-geometry::after {
  top: -5px;
  right: -5px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
}

.midnight-footer-hero {
  padding: clamp(85px, 10vw, 145px) 0 clamp(95px, 11vw, 155px);
  display: grid;
  grid-template-columns: minmax(0, 1fr) 276px;
  gap: clamp(65px, 7vw, 100px);
  align-items: end;
}

.midnight-footer-copy h2 {
  max-width: 900px;
  color: #fff;
  font-family: var(--latin);
  font-size: clamp(70px, 7.5vw, 108px);
  font-weight: 700;
  line-height: 0.86;
  letter-spacing: -0.07em;
}

.midnight-footer-copy h2 span {
  display: block;
  white-space: nowrap;
}

.midnight-footer-copy p {
  margin-top: 38px;
  color: #bcc5dd;
  font-family: var(--sans);
  font-size: clamp(16px, 1.7vw, 23px);
  font-weight: 500;
  letter-spacing: 0.08em;
}

.midnight-footer-actions {
  display: grid;
  gap: 28px;
  justify-items: stretch;
}

.midnight-footer-cta {
  min-height: 78px;
  padding: 0 30px;
  border: 1px solid #bcc5dd;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 35px;
  color: #fff;
  font: 600 17px/1 var(--latin);
  letter-spacing: -0.01em;
  transition: color 0.25s ease, background-color 0.25s ease, border-color 0.25s ease;
}

.midnight-footer-cta span:last-child {
  font-size: 20px;
}

.midnight-footer-cta:hover,
.midnight-footer-cta:focus-visible {
  border-color: #fff;
  background: #fff;
  color: #171a38;
}

.midnight-footer-top {
  justify-self: end;
  padding: 8px 0;
}

.midnight-footer-info {
  padding: 62px 0;
  border-top: 1px solid #414562;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 70px;
  align-items: start;
}

.midnight-footer-brand > a {
  color: #fff;
  font: 600 clamp(25px, 2.5vw, 36px)/1 var(--latin);
  letter-spacing: -0.035em;
}

.midnight-footer-brand p {
  margin-top: 17px;
  color: #bcc5dd;
  font: 400 11px/1.8 var(--latin);
  letter-spacing: 0.04em;
}

.midnight-footer-nav {
  min-width: 260px;
  display: grid;
  grid-template-columns: repeat(2, minmax(90px, 1fr));
  gap: 16px 38px;
  font: 600 12px/1.4 var(--latin);
}

.midnight-footer-nav p {
  grid-column: 1 / -1;
  margin-bottom: 9px;
}

.midnight-footer-nav a {
  color: #fff;
}

.midnight-footer-nav a:hover,
.midnight-footer-nav a:focus-visible,
.midnight-footer-top:hover,
.midnight-footer-top:focus-visible {
  color: #7de7f3;
}

.midnight-footer-bottom {
  padding-top: 27px;
  border-top: 1px solid #414562;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
}

.site-footer a:focus-visible,
.works-index-link a:focus-visible,
.works-pagination a:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 4px;
}

.home .contact {
  padding-bottom: clamp(110px, 12vw, 170px);
}

@media (max-width: 800px) {
  .works-index-link {
    margin-top: 55px;
  }

  .works-page-hero {
    padding-bottom: 80px;
  }

  .works-archive-heading {
    margin-bottom: 55px;
  }

  .works-archive-grid {
    gap: 60px 20px;
  }

  .midnight-footer-shell {
    width: min(100% - 48px, 620px);
    padding-top: 58px;
  }

  .midnight-footer-hero {
    grid-template-columns: 1fr;
    gap: 58px;
    padding: 78px 0 92px;
  }

  .midnight-footer-copy h2 {
    font-size: clamp(62px, 15vw, 92px);
  }

  .midnight-footer-copy h2 span {
    white-space: normal;
  }

  .midnight-footer-actions {
    width: min(100%, 340px);
  }

  .midnight-footer-top {
    justify-self: start;
  }

  .midnight-footer-info {
    grid-template-columns: 1fr;
    gap: 55px;
  }

  .midnight-footer-nav {
    min-width: 0;
    max-width: 340px;
  }
}

@media (max-width: 520px) {
  .works-index-link {
    justify-content: stretch;
  }

  .works-index-link a {
    width: 100%;
  }

  .works-page-hero .page-intro {
    font-size: 19px;
  }

  .works-archive-heading {
    align-items: flex-start;
    font-size: 8px;
  }

  .works-archive-grid {
    gap: 64px;
  }

  .works-pagination {
    margin-top: 75px;
  }

  .midnight-footer-shell {
    width: calc(100% - 40px);
    padding-bottom: 25px;
  }

  .midnight-footer-topline {
    gap: 18px;
  }

  .midnight-footer-topline p {
    max-width: 220px;
    font-size: 8px;
  }

  .midnight-footer-geometry {
    width: 52px;
    flex: 0 0 52px;
  }

  .midnight-footer-hero {
    gap: 48px;
    padding: 72px 0 80px;
  }

  .midnight-footer-copy h2 {
    font-size: clamp(52px, 16vw, 72px);
    line-height: 0.9;
  }

  .midnight-footer-copy p {
    margin-top: 28px;
    font-size: 15px;
  }

  .midnight-footer-cta {
    min-height: 66px;
    padding: 0 24px;
    font-size: 15px;
  }

  .midnight-footer-info {
    padding: 50px 0;
  }

  .midnight-footer-brand p {
    max-width: 270px;
  }

  .midnight-footer-nav {
    gap: 15px 24px;
  }

  .midnight-footer-bottom {
    align-items: flex-start;
    flex-direction: column;
    gap: 9px;
    font-size: 8px;
  }
}

/* Page transition */
html.js body {
  opacity: 0;
  transition: opacity 0.32s ease;
}

html.js body.page-ready {
  opacity: 1;
}

html.js body.page-leaving {
  opacity: 0;
  pointer-events: none;
}

@media (prefers-reduced-motion: reduce) {
  html.js body,
  html.js body.page-ready,
  html.js body.page-leaving {
    opacity: 1;
    transition: none;
  }
}


/* Full-page work screenshots */
.gallery > .gallery-item--fullpage {
  grid-column: 1 / -1;
  aspect-ratio: auto;
  overflow: visible;
  background: transparent;
}

.gallery > .gallery-item--fullpage img {
  display: block;
  height: auto;
  object-fit: contain;
}
