.riko-story {
  --story-yellow: #efc45c;
  --story-ink: #243a30;
  --story-tint: var(--brand-soft);
  --story-space: clamp(44px, 6vw, 86px);
  color: var(--story-ink);
}
.riko-story .wrap { max-width: 1280px; }
body.responsive .riko-story :is(h1,h2,h3) {
  font-weight: 600;
  letter-spacing: -.038em;
  line-height: 1.09;
  margin: 0;
  text-wrap: balance;
}
.riko-story h1 { font-size: clamp(39px, 4.3vw, 66px); }
.riko-story h2 { font-size: clamp(30px, 3.25vw, 46px); }
.riko-story h3 { font-size: clamp(23px, 2.1vw, 30px); }
.riko-story p { font-size: clamp(16px, 1.25vw, 19px); line-height: 1.55; text-wrap: pretty; }
.story-copy { min-width: 0; max-width: 48ch; }
.story-copy > p { margin: 18px 0 0; }
.story-intro,.story-step,.story-work-intro {
  display: grid; align-items: center;
  grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr);
  gap: clamp(32px, 5vw, 80px);
}
.story-intro {padding-block:clamp(12px,2.4vw,36px) var(--story-space)}

body:has(.company-photo-view[open]) { overflow:hidden; }
.company-photo-view[open] {
  display:grid;place-items:center;position:fixed;inset:0;margin:auto;
  width:100%;height:100%;max-width:none;max-height:none;
  padding:clamp(12px,3vw,48px);border:0;background:transparent;
}
.company-photo-view::backdrop {background:rgb(8 15 12 / 94%)}
.company-photo-view img {display:block;width:auto;height:auto;max-width:100%;max-height:88vh;max-height:88dvh;object-fit:contain}
.company-photo-view button {
  position:absolute;top:max(10px,env(safe-area-inset-top));right:max(10px,env(safe-area-inset-right));
  width:46px;height:46px;border:0;border-radius:50%;background:#19372c;color:#fff;
  font:normal 28px/1 Arial,sans-serif;cursor:pointer;
}
.company-photo-view button:focus-visible {outline:2px solid white;outline-offset:2px}
.riko-story img[src$="sauna-buckets-24.webp"] {filter:brightness(1.22) contrast(.91) saturate(1.08)}
.story-step,.story-work { padding-block:var(--story-space); }
.story-pair { display:grid; grid-template-columns:minmax(0,1.45fr) minmax(0,1fr); grid-template-rows:minmax(0,1fr); gap:12px; aspect-ratio:1.95; }
.story-pair img { height:100%; }

.story-links { display:flex; flex-wrap:wrap; gap:0 22px; margin-top:14px; }
.story-links a {
  display:inline-flex; align-items:center; min-height:44px;
  color:#135b3c; font-weight:500; text-decoration:underline; text-decoration-color:#a8bbaf; text-underline-offset:.25em;
}
.story-links a:hover { text-decoration-color:currentColor; }
.story-work-intro { align-items:start; }
.story-work-intro p { max-width:54ch; }
.company-portfolio {
  display:grid;
  grid-template-columns:minmax(0,1.2fr) minmax(0,1fr);
  gap:12px;
  padding-bottom:var(--story-space);
}
.company-portfolio section {
  padding:clamp(24px,3.5vw,52px);
  border-radius:18px;
  background:var(--story-tint);
}
.company-portfolio section:last-child {background:var(--story-yellow)}
.company-portfolio p {margin:18px 0 0;max-width:48ch}
.company-portfolio h2 a {color:inherit;text-decoration:underline;text-decoration-thickness:1px;text-underline-offset:.14em}
@media(max-width:760px) {
  .company-portfolio {grid-template-columns:minmax(0,1fr);gap:8px}
  .company-portfolio section {border-radius:12px;padding:22px}
  .company-portfolio p {margin-top:12px}
}

.story-invite { display:flex; align-items:center; justify-content:space-between; gap:24px; padding-block:var(--story-space); }
.story-invite .btn { flex:none; }
@media(max-width:760px) {
  .riko-story h1 { font-size:clamp(33px,7.9vw,46px); }
  .riko-story h2 { font-size:clamp(28px,6.5vw,34px); }
  .story-intro,.story-step,.story-work-intro { grid-template-columns:minmax(0,1fr); gap:22px; }

  .story-copy { max-width:55ch; }
  .story-copy > p { margin-top:13px; }

  .story-links { margin-top:8px; }
  .story-pair { gap:8px; aspect-ratio:1.85; }
  .story-work-intro { gap:14px; }
  .story-invite { align-items:flex-start; flex-direction:column; }

}

/* Company introduction: four photographs stay visible at every viewport. */
.company-bento {
  display:grid; grid-template-columns:repeat(3,minmax(0,1fr));
  grid-auto-rows:clamp(159.5px,15.4vw,235.4px); gap:12px;
}
.company-bento a {
  display:block; position:relative; overflow:hidden;
  min-width:0; border-radius:12px; color:white; background:#294137;
}
.company-bento a:nth-child(2),.company-bento a:nth-child(3) {grid-column:span 2}
.company-bento img {display:block;width:100%;height:100%;object-fit:cover}
.company-bento a:first-child img {object-position:58% 57%}
.company-bento a:nth-child(2) img {object-position:50% 20%}
.company-bento a:nth-child(3) img {object-position:50% 60%}
.company-bento a:last-child img {object-position:34% 63%}
.company-facts {
  display:inline-block;margin:24px 0 0;padding:18px 22px;
  background:var(--story-tint);border-radius:12px;
  white-space:nowrap;color:#075435;font:600 clamp(32px,3.5vw,48px)/1.15 Manrope,Arial,sans-serif;letter-spacing:-.05em;
}
.company-facts small {font-size:.37em;letter-spacing:0}
.company-life {
  display:grid;
  grid-template-columns:minmax(0,1fr) minmax(0,1.15fr);
  align-items:center;
  overflow:hidden;
  border-radius:18px;
  background:var(--story-tint);
}
.riko-story .company-life p {
  margin:0;
  padding:clamp(24px,4vw,64px);
  font:500 clamp(26px,3.2vw,48px)/1.14 Manrope,Arial,sans-serif;
  letter-spacing:-.035em;
  text-wrap:balance;
}
.company-life img {display:block;width:100%;height:auto;aspect-ratio:1.8;object-fit:cover;object-position:center 58%}
@media(max-width:760px) {
  .company-life {grid-template-columns:1fr;border-radius:12px}
  .company-life img {aspect-ratio:4/3}
}

.company-team {padding-block:var(--story-space)}
.company-team > p {max-width:64ch;margin:clamp(28px,3vw,44px) 0 0}
.company-people {display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:clamp(14px,2vw,28px);margin-top:26px}
.company-people img {display:block;width:100%;height:auto;aspect-ratio:3/4;object-fit:cover;object-position:center;border-radius:12px}
.company-people figcaption {margin-top:12px}
.company-people strong {display:block;font:600 clamp(18px,1.8vw,25px)/1.25 Manrope,Arial,sans-serif}
.company-people figcaption span {display:block;margin-top:3px;font-size:15px;line-height:1.35}
.company-approach .story-pair a {display:block;overflow:hidden;border-radius:12px}
.company-approach .story-pair img {display:block;width:100%;object-fit:cover}
.company-approach .story-pair {grid-template-columns:repeat(2,minmax(0,1fr));aspect-ratio:auto}
.company-approach .story-pair img {aspect-ratio:4/3;height:auto}
@media(max-width:600px) {
  .company-approach .story-pair {grid-template-columns:minmax(0,1fr);grid-template-rows:auto auto}
}
.company-after {display:grid;grid-template-columns:minmax(0,.85fr) minmax(0,1.15fr);gap:clamp(24px,5vw,80px);padding-block:var(--story-space)}
.company-after .story-copy>p {margin-top:0}
.company-guarantee {padding-bottom:var(--story-space)}
.company-terms {
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:12px;
  margin-top:24px;
}
.company-terms > section {
  display:flex;
  flex-direction:column;
  padding:clamp(22px,2.5vw,38px);
  border-radius:18px;
  background:#075435;
  color:#fff;
}
.terms-structure {grid-column:1/-1}
.company-terms .terms-period {margin:auto 0 0;padding-top:18px;font:500 clamp(18px,1.6vw,24px)/1 Manrope,Arial,sans-serif}
.terms-period strong {font-size:clamp(42px,4.4vw,68px);font-weight:500;letter-spacing:-.05em}
.company-terms .terms-scope {margin:6px 0 0}
.company-guarantee > p {max-width:72ch;margin:20px 0 0}
@media(max-width:760px){
  .company-bento {gap:8px;grid-auto-rows:clamp(114.4px,35.2vw,182.6px)}
  .company-bento a {border-radius:9px}
  .company-facts {max-width:420px;margin-top:20px;padding:15px 16px}
  .company-people {grid-template-columns:repeat(2,minmax(0,1fr));gap:22px 12px;margin-top:20px}
  .company-people figure {min-width:0;margin:0}
  .company-people figcaption {margin-top:8px}
  .company-after {grid-template-columns:1fr;gap:16px}
  .company-terms {grid-template-columns:1fr;gap:8px;margin-top:18px}
  .company-terms > section {padding:22px;border-radius:12px}
}

@media (min-width:1280px) {
  .story-intro {
    --story-intro-gap:clamp(32px, 5vw, 80px);
    grid-template-columns:minmax(0, calc((var(--story-base-width) - var(--story-intro-gap)) * .425 + var(--story-left-shift))) minmax(0, 1fr);
    gap:var(--story-intro-gap);
    padding-block-end:calc(var(--story-space) + clamp(32px, 3vw, 48px));
  }
  .story-intro .story-copy {max-width:none}
  .story-intro .story-copy > p {max-width:510px}
  .story-intro h1 {width:calc(100% + var(--story-intro-gap) - 4px);text-wrap:wrap}
  .story-intro h1 span {display:block;white-space:nowrap}
}


@media (min-width:1280px) {
  .company-bento { --bento-bleed: clamp(0px, calc((100vw - 1296px) / 2), 192px); }
  .company-bento a:nth-child(2),
  .company-bento a:last-child { margin-inline-end:calc(-1 * var(--bento-bleed)); }
  .company-bento a:nth-child(2) { margin-block-start:calc(-.18 * var(--bento-row)); }
  .company-bento a:nth-child(2) img { object-position:50% top; }
  .company-bento a:last-child { margin-block-end:calc(-1 * min(var(--story-space), .39 * var(--bento-row))); }
}

.company-numbers {
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:10px;
  max-width:520px;
  margin-top:28px;
  color:#075435;
}
.company-numbers > div {
  display:flex;
  align-items:center;
  justify-content:center;
  gap:7px;
  min-width:0;
  padding:14px clamp(10px,1.2vw,20px);
  border-radius:28px;
  background:var(--story-tint);
}
.company-numbers strong {
  font:600 clamp(42px,4.2vw,66px)/1 Manrope,Arial,sans-serif;
  letter-spacing:-.055em;
  white-space:nowrap;
}
.company-numbers span { font-size:clamp(14px,1.1vw,17px); line-height:1.24; }
.company-numbers .company-year { align-items:baseline; align-content:center; flex-wrap:wrap; gap:2px 4px; }
.company-year strong { font-size:clamp(48px,4.8vw,76px); }
.company-numbers .company-geo { flex-direction:column; gap:4px; background:#075435; color:white; text-align:center; }
.company-numbers > div:last-child { grid-column:1/-1; justify-content:flex-start; gap:18px; background:var(--story-yellow); }
@media(max-width:760px) {
  .company-numbers { gap:8px; }
  .company-numbers > div { padding:13px 10px; border-radius:22px; }
  .company-numbers > div:last-child { padding-inline:16px; }
}
.company-bento { --bento-row:clamp(159.5px,15.4vw,235.4px); }
.company-bento a:first-child img { object-position:35% 50%; }
.company-bento a:nth-child(2) img { object-position:50% 54%; }
.company-bento a:last-child img { object-position:59% 50%; }
.company-manifest {
  display:grid;
  justify-items:center;
  align-content:center;
  row-gap:clamp(12px,1.5vw,22px);
  padding-block:clamp(32px,4vw,68px);
  container-type:inline-size;
  background:var(--story-tint);
  border-radius:18px;
  text-align:center;
}
body.responsive .company-manifest .manifest-title {
  margin:0;
  font:inherit;
  font-size:clamp(23px,2.45cqw,35px);
  line-height:1.22;
  letter-spacing:-.025em;
  text-wrap:balance;
  color:var(--story-ink);
}
.company-manifest img {
  grid-row:1;
  display:block;
  width:clamp(170px,20vw,294px);
  height:auto;
}
@media(min-width:761px) {
  .company-manifest {
    grid-template-columns:minmax(0,30%) minmax(0,56%);
    align-items:center;
    justify-content:center;
    column-gap:clamp(16px,3vw,54px);
    text-align:left;
  }
  .company-manifest img { grid-column:1; width:100%; max-width:420px; }
  .company-manifest .manifest-title { grid-column:2; grid-row:1; justify-self:start; }
}
@media(min-width:761px) and (max-width:1024px) {
  .company-manifest { grid-template-columns:minmax(0,1fr) max(490px,56%); }
}
@media(max-width:760px) {
  .story-intro { padding-bottom:calc(var(--story-space) / 4); }
  .company-manifest {
    padding:8px 16px 12.8px;
    row-gap:6px;
    border-radius:12px;
  }
  .company-manifest + .company-approach { padding-top:calc(var(--story-space) / 2.5); }
  .company-manifest img { aspect-ratio:900 / 518; object-fit:cover; }
}
