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

:root {
  --wine: #713f4a;
  --wine-dark: #58313a;
  --paper: #f4f1ea;
  --ink: #1d1b1b;
  --muted: #746d6e;
  --line: #d9d1cc;
  --blush: #e8ddde;
  --white: #f5efed;
  --serif: "Noto Serif JP", "Yu Mincho", YuMincho, serif;
  --sans: "Noto Sans JP", "Yu Gothic", 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: 11px/1 Arial, sans-serif;
  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: 10px/1 Arial, sans-serif;
  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: 11px/1.5 Arial, sans-serif;
  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 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-size: 19px;
}

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

.work-number {
  position: absolute;
  right: 0;
  top: -30px;
  color: var(--muted);
  font: 10px Arial, sans-serif;
}

.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: 10px Arial, sans-serif;
  letter-spacing: 0.15em;
}

.service-row h3 {
  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: 10px/1.5 Arial, sans-serif;
  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: 10px/1.6 Arial, sans-serif;
  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 {
  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: 500 11px/1 Arial, sans-serif;
  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: #30282a;
  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(--serif);
  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: 9px Arial, sans-serif;
  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: 8px/1 Arial, sans-serif;
  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: 13px/1 Arial, sans-serif;
    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-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-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-size: 12px;
}

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

.facts dd {
  margin: 0;
}

.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,
.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;
  }
}
