/* recruit page — builds on ../style.css tokens */

/* hero: scattered photos gather into one scene */
.r-hero { position: relative; height: 230vh; }
.r-hero-sticky { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; background: var(--paper); }
.r-photo { position: absolute; margin: 0; overflow: hidden; border-radius: 4px; box-shadow: 0 24px 60px rgba(16, 42, 73, .14); }
.r-photo img { width: 100%; height: 100%; object-fit: cover; }
.r-photo-main { inset: 0; border-radius: 0; box-shadow: none; clip-path: inset(18% 20% 26% 47% round 6px); }
.r-photo-main img { transform-origin: 50% 40%; }
.r-photo-a { top: 10%; right: 5%; width: 13vw; aspect-ratio: 4 / 5; }
.r-photo-b { top: 70%; right: 30%; width: 11vw; aspect-ratio: 1; }
.r-photo-c { top: 66%; right: 4%; width: 16vw; aspect-ratio: 3 / 2; }
.r-photo-d { top: 9%; left: 34%; width: 10vw; aspect-ratio: 3 / 4; }
.r-photo-a img { object-position: 30% 50%; }
.r-hero-shade { position: absolute; inset: 0; opacity: 0; background: linear-gradient(90deg, rgba(10, 22, 38, .8), rgba(10, 22, 38, .2) 70%); pointer-events: none; }
.r-hero-copy { position: absolute; z-index: 2; left: var(--gutter); bottom: clamp(80px, 14vh, 150px); }
.r-hero-title { margin: 0 0 22px; font-family: var(--serif); font-weight: 500; font-size: clamp(16px, 1.3vw, 20px); letter-spacing: .3em; color: var(--ink); }
.r-hero-catch { margin: 0; font-family: var(--serif); font-weight: 500; font-size: clamp(40px, 6.4vw, 110px); line-height: 1.25; color: var(--ink); }
.r-hero .scroll-cue { z-index: 3; }

/* culture statement */
.r-culture { position: relative; overflow: hidden; padding: clamp(140px, 22vh, 240px) 0 clamp(120px, 18vh, 200px); }
.r-culture-dial { position: absolute; top: 50%; right: -18vw; width: 70vw; max-width: 980px; aspect-ratio: 1; transform: translateY(-50%); overflow: visible; opacity: .9; }
.r-culture .wrap { z-index: 1; }
.r-culture-title { margin: 0 0 clamp(56px, 9vh, 96px); font-family: var(--serif); font-weight: 500; font-size: clamp(32px, 5.2vw, 88px); line-height: 1.4; }
.r-culture-body { display: grid; gap: 1.4em; max-width: 30em; margin-left: auto; }
.r-culture-body p { margin: 0; font-family: var(--serif); font-size: clamp(18px, 1.8vw, 28px); line-height: 2; }

/* what we do */
.r-what { padding: clamp(80px, 12vh, 140px) 0 clamp(120px, 18vh, 200px); }
.r-what-head { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); align-items: end; gap: 6vw; margin-bottom: clamp(48px, 8vh, 88px); }
.r-what h2 { margin: 0; font-family: var(--serif); font-weight: 500; font-size: clamp(28px, 3.6vw, 58px); line-height: 1.45; }
.r-what-lead { margin: 0; color: var(--ink-soft); }
.r-services { margin: 0 0 48px; padding: 0; list-style: none; border-top: 1px solid var(--line-light); }
.r-services li { border-bottom: 1px solid var(--line-light); }
.r-services a { position: relative; display: grid; grid-template-columns: minmax(160px, .62fr) minmax(0, 1.15fr) minmax(0, 1.2fr) 48px; align-items: center; gap: 3vw; padding: clamp(28px, 4.4vh, 44px) clamp(12px, 1.6vw, 24px); overflow: hidden; isolation: isolate; transition: color .5s var(--ease-out); }
.r-services a::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--ink); transform: scaleY(0); transform-origin: bottom; transition: transform .6s var(--ease-out); }
.r-services a:hover, .r-services a:focus-visible { color: #fff; }
.r-services a:hover::before, .r-services a:focus-visible::before { transform: scaleY(1); }
.r-svc-no { font-family: var(--latin); font-size: 13px; letter-spacing: .2em; color: var(--brass); font-variant-numeric: lining-nums; font-feature-settings: "lnum" 1; }
.r-svc-name { font-family: var(--latin); font-weight: 500; font-size: clamp(24px, 2.3vw, 36px); white-space: nowrap; line-height: 1.1; letter-spacing: .03em; }
.r-svc-name.ja { font-family: var(--serif); }
.r-svc-text { font-size: 14px; color: var(--ink-soft); transition: color .5s var(--ease-out); }
.r-services a:hover .r-svc-text, .r-services a:focus-visible .r-svc-text { color: rgba(255, 255, 255, .78); }
.r-svc-arrow { justify-self: end; display: grid; place-items: center; width: 48px; height: 48px; border: 1px solid currentColor; border-radius: 50%; transition: transform .5s var(--ease-out); }
.r-services a:hover .r-svc-arrow { transform: translateX(6px); }

/* values: cards stack as you read */
.r-values { position: relative; padding: clamp(120px, 18vh, 200px) 0 clamp(80px, 12vh, 120px); }
.r-values-head { margin-bottom: clamp(48px, 8vh, 80px); }
.r-values h2 { margin: 0; font-family: var(--serif); font-weight: 500; font-size: clamp(30px, 4vw, 64px); line-height: 1.35; color: #fff; }
.r-stack { margin: 0; padding: 0; list-style: none; }
.r-card { position: sticky; top: calc(14vh + var(--i, 0) * 28px); display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); align-items: center; gap: 4vw; min-height: min(66vh, 600px); margin-bottom: 8vh; padding: clamp(32px, 5vw, 72px); overflow: hidden; border: 1px solid var(--line-dark); border-radius: 6px; background: linear-gradient(140deg, #13304f, #0c1c30 60%); transform-origin: 50% 0; }
.r-card:nth-child(1) { --i: 0; }
.r-card:nth-child(2) { --i: 1; }
.r-card:nth-child(3) { --i: 2; }
.r-card-word { font-family: var(--latin); font-weight: 500; font-size: clamp(56px, 8.4vw, 150px); line-height: .9; letter-spacing: .02em; color: transparent; -webkit-text-stroke: 1px rgba(231, 211, 163, .7); }
.r-card-body { max-width: 26em; }
.r-icon { display: block; width: clamp(72px, 7vw, 104px); margin-bottom: 28px; overflow: visible; }
.r-icon .draw { fill: none; stroke: var(--brass-2); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 1; stroke-dashoffset: 1; }
.r-icon .dot { fill: var(--brass); }
.r-card-no { margin: 0 0 12px; font-family: var(--latin); font-size: 13px; letter-spacing: .24em; color: var(--brass); font-variant-numeric: lining-nums; font-feature-settings: "lnum" 1; }
.r-card h3 { margin: 0 0 16px; font-family: var(--serif); font-weight: 500; font-size: clamp(24px, 2.4vw, 38px); line-height: 1.4; color: #fff; }
.r-card-body > p:last-child { margin: 0; color: var(--on-dark-soft); }

/* gallery rows drift against each other */
.r-gallery { overflow: hidden; padding: clamp(40px, 6vh, 72px) 0; }
.r-row { display: flex; gap: clamp(12px, 1.4vw, 20px); width: max-content; will-change: transform; }
.r-row + .r-row { margin-top: clamp(12px, 1.4vw, 20px); }
.r-row img { height: clamp(160px, 28vh, 300px); width: auto; aspect-ratio: 3 / 2; object-fit: cover; border-radius: 4px; }
.r-row img:nth-child(3n + 2) { aspect-ratio: 4 / 5; }

/* open positions */
.r-open { position: relative; overflow: hidden; padding: clamp(100px, 16vh, 180px) 0; text-align: center; }
.r-open-marquee { position: absolute; top: 50%; left: 0; transform: translateY(-50%); color: transparent; -webkit-text-stroke: 1px rgba(231, 211, 163, .22); pointer-events: none; }
.r-open-inner { z-index: 1; }
.r-open h2 { margin: 0 0 24px; font-family: var(--serif); font-weight: 500; font-size: clamp(34px, 5vw, 84px); line-height: 1.3; color: #fff; }
.r-open-text { margin: 0; color: var(--on-dark-soft); }
.r-open .btn-orb { line-height: 1.6; text-align: center; background: rgba(10, 22, 38, .6); }
.r-open-note { margin: 40px 0 0; font-size: 12px; color: rgba(238, 243, 248, .5); }

@media (max-width: 860px) {
  .r-photo-main { clip-path: inset(11% 6% 57% 6% round 6px); }
  .r-photo-a { top: auto; bottom: 5%; right: 6%; width: 30vw; }
  .r-photo-d { top: auto; bottom: 8%; left: 8%; width: 24vw; }
  .r-photo-b, .r-photo-c, .r-hero .scroll-cue { display: none; }
  .r-hero-copy { bottom: auto; top: 47vh; top: 47svh; }
  .r-hero-catch { font-size: 9vw; }
  .r-what-head { grid-template-columns: 1fr; gap: 24px; }
  .r-services a { grid-template-columns: 1fr 44px; gap: 10px 16px; }
  .r-svc-no, .r-svc-name, .r-svc-text { grid-column: 1; }
  .r-svc-arrow { grid-column: 2; grid-row: 1 / span 3; width: 44px; height: 44px; }
  .r-card { grid-template-columns: 1fr; gap: 20px; min-height: auto; top: calc(10vh + var(--i, 0) * 18px); }
  .r-card-word { font-size: 18vw; }
  .r-culture-dial { width: 120vw; right: -60vw; opacity: .5; }
}
/* reduced motion / no gsap */
.is-static .r-hero { height: auto; }
.is-static .r-hero-sticky { position: relative; min-height: 100vh; }
.is-static .r-photo-main { clip-path: none; }
.is-static .r-hero-shade { opacity: 1; }
.is-static .r-hero-title, .is-static .r-hero-catch { color: #fff; }
.is-static .r-icon .draw { stroke-dashoffset: 0; }
