/* Shared content, hero, form and reveal foundations.
   poster.css composes the chapters; hero.css and PS2 components stay intact. */
.p-refined { background: var(--color-bg-white); }
.r-section, .p-service-overview { padding: clamp(72px, 9vw, 128px) 0; }
.r-section--tinted { background: var(--color-bg-light); }
.r-section--ink { background: #171b1b; color: var(--color-bg-white); }
.r-label { display: flex; align-items: center; gap: 12px; font: 700 1.2rem/1.5 var(--font-family-en); letter-spacing: .14em; text-transform: uppercase; margin-bottom: 28px; }
.r-label::before { content: ''; width: 9px; height: 9px; flex: 0 0 9px; background: var(--color-accent); }
.r-title { font-size: clamp(3rem, 4.6vw, 5.8rem); font-weight: 900; line-height: 1.5; letter-spacing: -.045em; overflow-wrap: anywhere; }
.r-title--large { font-size: clamp(3.8rem, 5.1vw, 6.6rem); line-height: 1.4; }
.r-line { display: block; }
.r-accent { color: #007c80; }
.r-lead { font-size: clamp(1.6rem, 1.6vw, 1.9rem); line-height: 2; max-width: 640px; }
.r-note { font-size: 1.35rem; line-height: 1.9; color: #585b56; }
.r-copy { font-size: 1.6rem; line-height: 2; }
.r-copy p + p { margin-top: 20px; }
.r-marker { position: relative; isolation: isolate; white-space: nowrap; }
.r-marker::after { content: ''; position: absolute; z-index: -1; left: 0; right: 0; bottom: .08em; height: .21em; background: var(--color-accent); opacity: .65; transform-origin: left; }
.r-heading { display: grid; grid-template-columns: 1.2fr 1fr; gap: 48px; align-items: end; margin-bottom: 52px; }
.r-heading .r-label { grid-column: 1 / -1; margin-bottom: -30px; }
.r-heading p { max-width: 480px; line-height: 2; }
.r-link { display: inline-flex; align-items: center; justify-content: space-between; gap: 32px; min-height: 48px; padding: 12px 0; font-size: 1.4rem; font-weight: 700; border-bottom: 1px solid currentColor; }
.r-link span[aria-hidden] { color: var(--color-accent); transition: transform .25s ease; }
.r-link:hover span[aria-hidden] { transform: translate(4px, -3px); }
.r-button { display: inline-flex; justify-content: space-between; align-items: center; gap: 36px; padding: 22px 28px; background: #111; color: var(--color-bg-white); font-weight: 700; font-size: 1.5rem; border: 2px solid #111; box-shadow: 5px 5px 0 rgba(17,17,17,.13); transition: background .25s, transform .25s, box-shadow .25s; }
.r-button:hover { background: var(--color-accent); transform: translate(-2px,-2px); box-shadow: 7px 7px 0 rgba(17,17,17,.13); }
.r-button span[aria-hidden] { font-size: 2rem; }
.r-tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 20px 0 28px; }
.r-tags li { font-size: 1.15rem; line-height: 1.6; padding: 5px 10px; border: 1px solid #a7a597; }
.r-meta { font: 700 1.1rem/1.7 var(--font-family-en); letter-spacing: .1em; text-transform: uppercase; }
.r-rule { height: 1px; background: currentColor; transform-origin: left; }
.r-anchor, .r-section[id], .r-service-detail { scroll-margin-top: 100px; }
.p-refined :focus-visible, .p-service-overview :focus-visible { outline: 3px solid #007c80; outline-offset: 5px; }

/* TOP: readable service descriptions with a strong Japanese headline. */
.p-service-overview { background: var(--color-bg-white); border-top: 1px solid rgba(17,17,17,.18); }
.r-overview-head { display: grid; grid-template-columns: 1.3fr 1fr; gap: 64px; align-items: end; margin-bottom: 56px; }
.r-overview-head .r-copy { max-width: 430px; margin-left: auto; }
.r-service-row { display: grid; grid-template-columns: 64px 1fr 1.1fr 48px; gap: 32px; align-items: start; padding: 36px 0; border-bottom: 1px solid #9d9b8f; position: relative; }
.r-service-row:first-child { border-top: 2px solid #111; }
.r-service-row::before { content: ''; position: absolute; inset: 0 -16px; background: rgba(3,163,168,.065); transform: scaleY(0); transform-origin: top; transition: transform .35s ease; pointer-events: none; }
.r-service-row:hover::before, .r-service-row:focus-visible::before { transform: scaleY(1); }
.r-service-row > * { position: relative; }
.r-service-num { font: 700 1.5rem/2 var(--font-family-en); color: #a33b1e; }
.r-service-row h3 { font-size: clamp(2rem, 2.3vw, 2.8rem); font-weight: 700; line-height: 1.5; }
.r-service-row .r-meta { display: block; color: #66655e; margin-top: 10px; }
.r-service-row p { font-size: 1.5rem; line-height: 1.95; }
.r-service-examples { display: block; margin-top: 12px; font-size: 1.2rem; color: #65665f; }
.r-round-arrow { width: 44px; height: 44px; border: 1px solid #111; border-radius: 50%; display: grid; place-items: center; transition: background .3s, color .3s, transform .3s; }
.r-service-row:hover .r-round-arrow { background: #111; color: #fff; transform: rotate(-40deg); }
.r-overview-footer { display: flex; gap: 24px; justify-content: space-between; align-items: center; margin-top: 30px; }

/* Compact poster mastheads. The outlined word is decorative only. */
.r-hero { position: relative; padding: 34px 0 72px; overflow: hidden; border-bottom: 1px solid #111; }
.r-breadcrumb { display: flex; gap: 14px; align-items: center; font-size: 1.1rem; color: #62635d; margin-bottom: 48px; }
.r-breadcrumb a { text-decoration: underline; text-underline-offset: 4px; }
.r-hero-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 48px; align-items: end; }
.r-hero .r-lead { margin-top: 28px; font-size: 1.6rem; }
.r-hero-word { font: 900 clamp(6rem, 10vw, 13rem)/.95 var(--font-family-en); letter-spacing: -.07em; color: transparent; -webkit-text-stroke: 1px #88877b; text-align: right; user-select: none; padding: 8px; }
.r-hero-side { padding-bottom: 12px; }
.r-hero-side .r-note { margin: 28px 0 0 auto; max-width: 300px; }
.r-hero--compact .r-title--large { font-size: clamp(3.2rem, 4.5vw, 5.6rem); }
.r-index { display: flex; flex-wrap: wrap; border-top: 1px solid #111; margin-top: 48px; }
.r-index a { display: flex; align-items: center; gap: 14px; padding: 18px 26px 0 0; margin-right: 30px; font-size: 1.3rem; font-weight: 700; }
.r-index a span { color: #a33b1e; font: 700 1.1rem var(--font-family-en); }
.r-index a::after { content: '↘'; margin-left: 10px; color: #a33b1e; }
.r-index a:hover { color: #007c80; }

/* Detailed service chapters. */
.r-service-detail { padding: 88px 0; border-bottom: 1px solid #acaa9d; }
.r-service-layout { display: grid; grid-template-columns: .8fr 1.3fr; gap: 88px; }
.r-service-intro .r-title { font-size: clamp(2.8rem, 3.2vw, 4.2rem); }
.r-service-intro .r-copy { margin-top: 24px; }
.r-service-intro .r-meta { color: #007c80; margin-bottom: 22px; }
.r-service-number { font: 700 9rem/1 var(--font-family-en); letter-spacing: -.07em; color: #007c80; margin-bottom: 32px; }
.r-deliverables { border-top: 2px solid #111; }
.r-deliverables > div { padding: 22px 0; border-bottom: 1px solid #acaa9d; }
.r-deliverables dt { font-size: 1.6rem; font-weight: 700; margin-bottom: 10px; }
.r-deliverables dd { font-size: 1.45rem; line-height: 1.9; color: #54574f; }
.r-service-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 20px; margin-top: 28px; }
.r-brief { border-left: 3px solid var(--color-accent); padding: 4px 0 4px 20px; margin: 28px 0; font-size: 1.45rem; line-height: 1.9; }
.r-flow { counter-reset: flow; margin-top: 48px; }
.r-flow li { display: grid; grid-template-columns: 60px 1fr 1.5fr; gap: 24px; border-top: 1px solid #858780; padding: 28px 0; align-items: baseline; }
.r-flow li::before { counter-increment: flow; content: '0' counter(flow); color: var(--color-accent); font: 700 1.3rem var(--font-family-en); }
.r-flow h3 { font-size: 1.7rem; font-weight: 700; }
.r-flow p { font-size: 1.45rem; line-height: 1.9; color: #d0cfc3; }
.r-section--ink .r-label { color: #c9c9bd; }
.r-section--ink .r-accent { color: #4dc2bb; }
.r-faq { border-top: 2px solid #111; }
.r-faq details { border-bottom: 1px solid #acaa9d; }
.r-faq summary { cursor: pointer; list-style: none; display: flex; align-items: center; gap: 18px; padding: 25px 0; font-weight: 700; font-size: 1.55rem; }
.r-faq summary::-webkit-details-marker { display: none; }
.r-faq summary::before { content: 'Q'; font: 700 1.6rem var(--font-family-en); color: #007c80; }
.r-faq summary::after { content: '+'; font: 400 2.5rem var(--font-family-en); margin-left: auto; }
.r-faq details[open] summary::after { content: '−'; }
.r-faq details > p { padding: 0 40px 28px; font-size: 1.5rem; line-height: 2; max-width: 960px; }

/* About: evidence, career, and an honest sole-proprietor profile. */
.r-about-intro { display: grid; grid-template-columns: 1fr 1fr; gap: 72px; align-items: center; }
.r-about-art { background: var(--color-bg-light); padding: 56px; border: 1px solid #111; position: relative; }
.r-about-art img { width: 100%; max-height: 340px; }
.r-about-art .r-meta { margin-top: 32px; }
.r-about-intro .r-copy { margin-top: 30px; }
.r-strengths { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; }
.r-strength { border-top: 2px solid #111; padding-top: 24px; }
.r-strength h3 { font-size: 2rem; font-weight: 700; line-height: 1.6; margin: 18px 0; }
.r-strength p { font-size: 1.5rem; line-height: 2; }
.r-history { max-width: 850px; margin-left: auto; }
.r-history > div { display: grid; grid-template-columns: 150px 1fr; gap: 36px; padding: 32px 0; border-top: 1px solid #929386; }
.r-history dt { font: 700 1.4rem/1.8 var(--font-family-en); color: #007c80; }
.r-history dd { font-size: 1.5rem; line-height: 2; }
.r-history strong { display: block; margin-bottom: 12px; font-size: 1.7rem; }
.r-profile { max-width: 850px; margin: 40px 0 0 auto; }
.r-profile > div { display: grid; grid-template-columns: 170px 1fr; gap: 28px; padding: 20px 0; border-bottom: 1px solid #acaa9d; font-size: 1.5rem; line-height: 1.8; }
.r-profile dt { font-weight: 700; }
.r-profile a { text-decoration: underline; text-underline-offset: 4px; overflow-wrap: anywhere; }

/* Supplementary work notes: no selectors modify the PS2 package design. */
.r-work-notes { margin-top: 90px; }
.r-work-note { display: grid; grid-template-columns: 1fr 1.25fr; gap: 56px; padding: 40px 0; border-top: 1px solid #aaa798; }
.r-work-note h3 { font-size: 2.8rem; font-weight: 700; margin: 12px 0; }
.r-work-note p { font-size: 1.5rem; line-height: 2; }
.r-work-note .r-tags { margin: 18px 0; }
.r-work-product { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; margin-top: 40px; }
.r-work-product img { width: 100%; }
.r-work-product h3 { font-size: 3.2rem; font-weight: 700; margin: 24px 0; }
.r-work-product p { font-size: 1.5rem; line-height: 2; margin-bottom: 24px; }

/* Shared closing invitation. */
.r-cta { background: var(--color-primary); padding: 80px 0; color: #111; overflow: hidden; }
.r-cta-grid { display: grid; grid-template-columns: 1.25fr 1fr; gap: 56px; align-items: end; }
.r-cta .r-title { font-size: clamp(3rem, 4.2vw, 5.2rem); }
.r-cta p { font-size: 1.5rem; line-height: 2; margin-bottom: 26px; }
.r-cta .r-label::before { background: #111; }
.r-cta .r-meta { margin-top: 22px; }
.r-cta a[href^="mailto:"] { text-decoration: underline; text-underline-offset: 5px; }

/* Forms and policy remain straightforward reading surfaces. */
.p-refined .r-form-section { padding: 64px 0 100px; }
.p-refined .p-form { margin: 0 auto; background: transparent; border-radius: 0; box-shadow: none; padding: 0; max-width: 760px; }
.p-refined .p-form__label { color: #111; font-size: 1.4rem; }
.p-refined .p-form__input, .p-refined .p-form__textarea, .p-refined .p-form__select { border-radius: 0; background: #f7f3e9; }
.p-refined .p-form__item { margin-bottom: 32px; }
.p-refined .p-form__submit button { background: #111; border-radius: 0; min-height: 64px; width: 100%; }
.p-refined .p-form__submit button:disabled { background: #777; }
.p-refined .p-form__submit button:hover:not(:disabled) { background: var(--color-accent); }
.p-refined .p-form__success { max-width: 760px; margin: 0 auto; border: 1px solid #111; border-radius: 0; background: var(--color-bg-white); box-shadow: 6px 6px 0 rgba(17,17,17,.13); }
.r-form-intro { max-width: 760px; margin: 0 auto 40px; padding: 0 0 28px; border-bottom: 1px solid #111; }
.r-form-intro p { font-size: 1.5rem; line-height: 2; }
.r-form-privacy { margin-top: 26px; font-size: 1.3rem; line-height: 1.9; }
.r-form-privacy a, .r-form-help a { text-decoration: underline; text-underline-offset: 4px; }
.r-form-help { margin: 10px 0 0; font-size: 1.2rem; line-height: 1.8; color: #55574f; }
.p-refined .p-privacy { max-width: 850px; margin: 0 auto; padding: 0; background: transparent; border-radius: 0; box-shadow: none; }
.p-refined .p-privacy h2 { color: #111; font-size: clamp(1.9rem, 2vw, 2.3rem); line-height: 1.7; }
.p-refined .p-privacy th { background: var(--color-bg-light); }
.p-refined .p-privacy a { text-decoration: underline; text-underline-offset: 3px; }

/* Motion is progressively enhanced: content is visible without JavaScript.
   Characters slide through masks; emphasized words receive a delayed marker. */
.r-char { display: inline-block; vertical-align: top; white-space: pre; }
.r-char > span { display: inline-block; }
.r-motion-ready [data-reveal] { opacity: 0; transform: translateY(24px); transition: opacity .75s ease, transform .85s cubic-bezier(.22,1,.36,1); }
.r-motion-ready [data-reveal].is-revealed { opacity: 1; transform: none; }
.r-motion-ready [data-title] .r-char { overflow: clip; overflow-clip-margin: .12em; }
.r-motion-ready [data-title] .r-char > span { transform: translateY(112%); opacity: 0; transition: transform .78s cubic-bezier(.16,1,.3,1), opacity .5s ease; transition-delay: var(--char-delay, 0ms); }
.r-motion-ready [data-title].is-revealed .r-char > span { transform: none; opacity: 1; }
.r-motion-ready [data-title] .r-marker::after { transform: scaleX(0); transition: transform .8s cubic-bezier(.22,1,.36,1) .45s; }
.r-motion-ready [data-title].is-revealed .r-marker::after { transform: scaleX(1); }
.r-motion-ready [data-rule] { transform: scaleX(0); transition: transform 1.1s cubic-bezier(.22,1,.36,1); }
.r-motion-ready [data-rule].is-revealed { transform: scaleX(1); }
.p-refined:not(.r-motion-ready) .js-fade-in { opacity: 1; transform: none; }

@media (max-width: 900px) {
  .r-overview-head, .r-heading, .r-service-layout, .r-about-intro, .r-cta-grid { grid-template-columns: 1fr; gap: 28px; }
  .r-overview-head .r-copy { max-width: 600px; margin-left: 0; }
  .r-heading .r-label { margin-bottom: 0; }
  .r-service-row { grid-template-columns: 40px 1fr 40px; gap: 18px; }
  .r-service-row > p { grid-column: 2; }
  .r-service-row .r-round-arrow { grid-column: 3; grid-row: 1; }
  .r-hero-grid { grid-template-columns: 1fr; gap: 30px; }
  .r-hero-side { display: none; }
  .r-hero { padding-bottom: 48px; }
  .r-service-detail { padding: 64px 0; }
  .r-service-number { font-size: 6rem; margin-bottom: 20px; }
  .r-strengths { gap: 24px; }
  .r-work-note { gap: 32px; }
  .r-flow li { grid-template-columns: 40px 1fr; gap: 12px 20px; }
  .r-flow li p { grid-column: 2; }
  .r-work-product { gap: 32px; }
}
@media (max-width: 600px) {
  .r-title--large, .r-hero--compact .r-title--large { font-size: clamp(2.8rem, 8.4vw, 3.8rem); }
  .r-title { letter-spacing: -.045em; }
  .r-overview-head { margin-bottom: 36px; }
  .r-service-row { padding: 28px 0; gap: 12px; grid-template-columns: 26px 1fr 32px; }
  .r-service-row > p { grid-column: 2 / -1; }
  .r-service-row h3 { font-size: 2rem; }
  .r-service-row .r-round-arrow { width: 32px; height: 32px; font-size: 1.4rem; }
  .r-service-row::before { inset-inline: -8px; }
  .r-overview-footer { align-items: flex-start; flex-direction: column; }
  .r-breadcrumb { margin-bottom: 32px; }
  .r-index { flex-direction: column; margin-top: 32px; }
  .r-index a { margin: 0; padding: 16px 0; border-bottom: 1px solid #b3b09f; }
  .r-index a::after { margin-left: auto; }
  .r-strengths, .r-work-note, .r-work-product { grid-template-columns: 1fr; }
  .r-about-art { padding: 32px; }
  .r-history > div, .r-profile > div { grid-template-columns: 1fr; gap: 12px; }
  .r-history strong { font-size: 1.6rem; }
  .r-work-notes { margin-top: 64px; }
  .r-faq details > p { padding: 0 0 24px; }
  .r-cta { padding: 64px 0; }
  .r-button { width: 100%; padding: 19px 22px; }
  .r-tags { gap: 6px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .r-motion-ready [data-reveal], .r-motion-ready [data-rule], .r-motion-ready [data-title] .r-char > span,
  .r-motion-ready [data-title] .r-marker::after { opacity: 1; transform: none; transition: none; }
  .r-link span[aria-hidden], .r-button, .r-service-row::before, .r-round-arrow { transition: none; }
  .p-refined .js-fade-in { opacity: 1; transform: none; transition: none; }
}
